- BS-D-1.0-Flash
BS-D-1.0-Flash
BS-D-1.0-Flash (balllvin/BS-D-1.0-Flash) is a calibrated multimodal decision, trajectory-verification, and UI/3D visual-critique model built on perplexity-ai/pplx-decider-flash-v1.3 (Qwen/Qwen3.5-4B, Apache-2.0).
It preserves the base pplx-decider chunked joint readout protocol (version: 4, mode="isolated" / mode="separate", max_pixels=786432, fast=False, noncausal full attention + causal linear-attention layers, BF16 [255, hidden_size] readout.safetensors) while retraining and calibrating the active readout rows w[2:21] and per-type temperatures (calibration.json, decision_config.json) on a leak-free, shortcut-stripped agent-training monitor suite, leaving binary verification rows w[0:2] and tail rows w[21:] exact.
What BS-D-1.0-Flash Is For
Use BS-D-1.0-Flash as an automated judge, reward model, and run monitor inside SFT, LoRA, DPO, GRPO, and AutoRL loops:
- Trajectory Verification & GRPO/DPO Reward Scoring (Text / Code / Security / Benign Twins)
- Scores ungraded execution traces (tool calls, edits, test outputs, final assistant message) on
is_solution_verified(noul),trajectory_quality_score(0โ4),reasoning_efficiency_score(0โ4), anddominant_failure_mode(8-classchoice) without relying on leaked harness summaries or verdict headers. - Handles benign-twin security audits (repositories where existing defenses are already intact and any unrequested edit fails), separating clean read-only audits (
87.61mean trajectory quality score) from failing or over-edited runs (53.62mean failing score).
- Scores ungraded execution traces (tool calls, edits, test outputs, final assistant message) on
- Pairwise Checkpoint & Rollout Comparison
- Compares Checkpoint A vs Checkpoint B across blinded within-suite rollout mixtures (
coding,cyber,twin,arete), evaluated under strict(A,B)/(B,A)order-swap symmetry (86.67%swap-consistent pairwise accuracy).
- Compares Checkpoint A vs Checkpoint B across blinded within-suite rollout mixtures (
- Training-Loop Monitor & Failure-Mode Triage
- Estimates empirical checkpoint pass rates across multi-episode trace batches (
blind_bench_predict_v4), ranks capability vs remediation urgency (capability_and_urgency_rank_v4), and classifies the dominant failure mode (5active non-zero failure classes,0.3199macro-F1).
- Estimates empirical checkpoint pass rates across multi-episode trace batches (
- 3-Tier UI & 3D Multimodal Vision Judge (
max_pixels=786432,mode="isolated")- Accepts multi-view screenshots (
desktop_fold,desktop_full,mobile_foldfor UI; multi-angle views for 3D WebGL/Three.js scenes) alongside the brief and scores four 0โ4 craft dimensions (visual_simplicity,information_hierarchy,anti_slop_taste_or_3d_craft,user_focus_completeness),has_hard_visual_defect(noul), andprimary_improvement_target(8-way actionable target selection).
- Accepts multi-view screenshots (
How the SFT / LoRA / RL Monitor Workflow Runs
A single shared checkpoint serves both offline training-loop monitoring and live visual feedback:
[1] Coding / RL Agent Rollouts (SFT / LoRA / DPO / GRPO)
โ
โโโโบ Strip verdict headers & format [ep_XX] raw trace block
โ โโโโบ BS-D-1.0-Flash (Metal INT8 / CUDA BF16, mode="isolated")
โ โโ is_solution_verified (noul) + trajectory_quality_score (0โ4)
โ โโ dominant_failure_mode (8-class) + blind_pass_rate_21 (5% bins)
โ โโ Outputs: scalar GRPO advantages, DPO preference pairs,
โ checkpoint triage & stop/continue decisions
โ
[2] Rendered UI / 3D Artifacts (Headless Chromium multi-viewport / multi-angle PNGs)
โ
โโโโบ Deterministic Layer-A checks + BS-D-1.0-Flash (PyTorch MPS/CUDA BF16, mode="isolated")
โโ Inputs: [images] + Brief + Archetype (no ground-truth hints)
โโ Outputs: 4 craft scores (0โ4), has_hard_visual_defect,
and primary_improvement_target -> targeted revision pass
Leak-Free v4 Benchmark Results (Text & Readout Suite)
Evaluated in Metal INT8 (mode="isolated", max_length=65536) on the locked test_v4 split (363 requests, zero family/task/episode/state overlap with train_v4 or val_v4, and all grader summary headers stripped). BS-D-1.0-Flash passes 4/4 hard release gates and raises Total Composite Index from 51.96 to 54.49:
| Model / Baseline | Total Index (v4_composite) |
blind_verify_ood AUC |
blind_bench Score (MAE% / rho / within-1) |
pairwise Swap Acc |
cap_urg Score (Urg rho / Top-1) |
meta_eval_v4 Top-1 |
binary_tf AUC |
Fail Classes / Macro-F1 | Twin Pass Traj (mean_pass / mean_fail) |
|---|---|---|---|---|---|---|---|---|---|
| Baseline: Majority / Area Prior | 11.13 | 0.5000 | 20.72 (27.7% / +0.00 / 33.3%) | 0.0% | 1.88 (+0.000 / 6.3%) | 11.4% | 0.4684 | 0 / 0.0000 | 89.62 (89.62 / 89.62) |
| Baseline: Keyword Ridge Probe | 21.50 | 0.6254 | 48.72 (24.6% / +0.74 / 33.3%) | 0.0% | 6.66 (-0.003 / 12.5%) | 12.3% | 0.6490 | 3 / 0.3401 | 56.61 (52.14 / 49.78) |
Base pplx-decider-flash-v1.3 |
51.96 | 0.7248 | 37.54 (22.9% / +0.613 / 8.3%) | 86.7% | 20.31 (+0.281 / 31.3%) | 51.6% | 0.9187 | 5 / 0.2811 | 85.35 (71.30 / 54.87) |
BS-D-1.0-Flash |
54.49 | 0.7248 | 53.07 (20.9% / +0.655 / 52.8%) | 86.7% | 37.48 (+0.363 / 56.3%) | 51.6% | 0.9187 | 5 / 0.3199 | 87.61 (74.02 / 53.62) |
All 4 release gates pass (test_v4):
- Gate 1 (
failure_mode_diversity_and_f1): PASS โ5non-zero classes ([1, 3, 4, 5, 6]), macro-F10.3199vs base0.2811(+0.0388). - Gate 2 (
trajectory_quality_and_twin): PASS โmean_passing = 74.02vsmean_failing = 53.62,mean_passing_twin = 87.61(> 50.0). - Gate 3 (
blind_verify_oodAUC): PASS โ0.7248(==base0.7248,+0.0994above Header/Keyword Ridge Probe0.6254). - Gate 4 (
arm_flip_and_composite): PASS โall_wrong_flipped = Trueon monitor arm counterfactuals; Total Index54.49 > 51.96 > 21.50 > 11.13.
Blinded 36-Fixture Vision Calibration Gate (PyTorch MPS bfloat16)
Evaluated strictly blind (zero tier_hint or Layer-A pass/fail summaries in state, max_pixels=786432, mode="isolated", fast=False) across 36 rendered PNG fixtures (24 UI across 8 product archetypes ร 3 tiers + 12 3D scenes across 4 engineering domains ร 3 tiers):
Tier (n = 12 each) |
Mean Quality Score (0โ4) |
Mean Hard Defect Prob (0โ1) |
Monotonic Ordering vs Higher Tiers |
|---|---|---|---|
broken |
1.6743 | 0.5483 | Baseline |
good_but_improvable |
2.5191 | 0.3018 | +0.8448 vs broken |
complete |
2.7442 | 0.2080 | 12/12 (100.0%) > broken, 11/12 (91.7%) > good_but_improvable |
Summary diagnostics:
complete > broken:12 / 12(100.0%) โ8/8UI triplets,4/43D triplets.complete > good_but_improvable:11 / 12(91.7%) โ7/8UI triplets (sql_consolescored2.9855vs3.0037),4/43D triplets (gantry_crane,heat_exchanger,sat_dish,turbine_rotorall strictly ordered).- Non-collapsed improvement targets (
5distinct classes on non-complete fixtures):surface_missing_user_context_or_controls,sharpen_above_fold_hierarchy,fix_3d_geometry_clipping_or_proportions,improve_3d_lighting_materials_or_framing,none_ship_ready. nan_count:0.
Real Before / After Monitor Examples (Observed Outputs)
Example 1: UI Critique & Revision Loop (ui_product_launch, 3 viewports)
- Before (
brokenrender input:desktop_fold.png,desktop_full.png,mobile_fold.png):- Mean score:
1.8044(visual_simplicity=2.26,information_hierarchy=2.09,anti_slop_taste_or_3d_craft=1.49,user_focus_completeness=1.38) - Hard visual defect probability:
0.3434 primary_improvement_target:sharpen_above_fold_hierarchy
- Mean score:
- Intermediate (
good_but_improvable):- Mean score:
2.9705, hard defect probability:0.215
- Mean score:
- After (
completerender input):- Mean score:
3.1949(visual_simplicity=3.43,information_hierarchy=3.29,anti_slop_taste_or_3d_craft=2.62,user_focus_completeness=3.44) - Hard visual defect probability:
0.0758 primary_improvement_target:none_ship_ready
- Mean score:
Example 2: Multi-Angle 3D Scene Critique (3d_heat_exchanger)
- Before (
brokengeometry/render):- Mean score:
1.4140(visual_simplicity=2.68,information_hierarchy=1.34,anti_slop_taste_or_3d_craft=1.08,user_focus_completeness=0.56) - Hard visual defect probability:
0.7955 primary_improvement_target:fix_3d_geometry_clipping_or_proportions
- Mean score:
- Intermediate (
good_but_improvable):- Mean score:
1.8702, hard defect probability:0.664, target:improve_3d_lighting_materials_or_framing
- Mean score:
- After (
completerender):- Mean score:
2.6088(visual_simplicity=2.96,information_hierarchy=2.60,anti_slop_taste_or_3d_craft=2.19,user_focus_completeness=2.68) - Hard visual defect probability:
0.2419,primary_improvement_target:none_ship_ready
- Mean score:
Example 3: Text Trajectory Monitor (test_v4 blind_verify_ood)
- On blind execution trace batches (
within1_accon 5%-binned checkpoint pass-rate estimation),BS-D-1.0-Flashimproves within-1-bin calibration from8.33%โ52.78%(mae_pct:22.92%โ20.91%, Spearmanrho:+0.6132โ+0.6554) and raisescapability_and_urgency_rank_v4worst-area top-1 identification from31.25%โ56.25%. - On benign-twin security audits where existing defenses hold and no edit should be applied, clean read-only traces score
87.61mean trajectory quality vs53.62on failing/over-edited traces.
Agent Setup & Usage
1. PyTorch bfloat16 (CUDA or Apple Silicon MPS, Text + Vision)
Install Python dependencies (requirements.txt: torch, transformers, safetensors, pillow, torchvision, huggingface-hub) and load with mode="isolated" and max_pixels=786432:
import json, sys, torch
from pathlib import Path
from huggingface_hub import snapshot_download
ckpt = Path(snapshot_download("balllvin/BS-D-1.0-Flash"))
sys.path.insert(0, str(ckpt / "source" / "src"))
from pplx_decider import Decider
# Important on Apple Silicon MPS: load in bfloat16 (upstream defaults to float32 ~18 GB on non-CUDA)
decider = Decider.from_pretrained(
ckpt,
device="cuda" if torch.cuda.is_available() else "mps",
dtype=torch.bfloat16,
mode="isolated",
max_pixels=786_432,
max_length=32_768,
)
cal = json.loads((ckpt / "calibration.json").read_text())
t_noul = cal["per_type_temperature"]["noul"]
resp = decider.decide(
{
"images": ["desktop_fold.png", "desktop_full.png", "mobile_fold.png"],
"state": "Surface: ui\nUser Brief: Incident triage queue with SEV-1 emphasis and Acknowledge action.",
"questions": {
"has_hard_visual_defect": {
"type": "noul",
"instructions": "True if the render has a hard visual defect (broken layout, contrast failure, or missing primary control).",
},
"anti_slop_taste_or_3d_craft": {
"type": "score",
"instructions": "Score anti-slop product taste (0-4).",
"criteria": ["0: Slop/broken", "1: Generic/wireframe", "2: Acceptable", "3: Tasteful", "4: Bespoke high-taste"],
},
},
},
temperature=t_noul,
)
print(resp["answers"])
2. Text / Trajectory Verification on Apple Silicon (bs-decider-metal, INT8)
import json
from pathlib import Path
from huggingface_hub import snapshot_download
from bs_decider_metal import Decider as NativeDecider
ckpt = Path(snapshot_download("balllvin/BS-D-1.0-Flash"))
dec = NativeDecider.from_pretrained(ckpt, mode="isolated", quant="int8", max_length=65536)
out = dec.decide({
"state": "[ep_00 | domain=coding]\nTask: fix-pagination\n [01] run_code(pytest -q) -> status=completed\n out: 14 passed in 0.42s\nFINAL_MSG: Fixed off-by-one cursor offset and verified pytest passes.",
"questions": {
"is_solution_verified": {"type": "noul", "instructions": "Did the agent cleanly solve and verify the task?"},
"trajectory_quality_score": {"type": "score", "criteria": ["0: failed", "1: poor", "2: partial", "3: solid", "4: clean verified pass"]},
},
})
print(out["answers"])
dec.close()
Note on calibration: apply per-question-type temperatures from calibration.json (noul, choice, score) when converting raw decider.logits(...) into probabilities, just as our eval harnesses do.
Checkpoint Layout & Lineage
- Base Model:
perplexity-ai/pplx-decider-flash-v1.3(Qwen/Qwen3.5-4B, Apache-2.0) - Updated Artifacts:
readout.safetensors([255, 2560]BF16,w[0:2]andw[21:]preserved exact,w[2:21]updated under per-row L2 sphere bounds),calibration.json,decision_config.json,evolution_manifest.json, andeval_reports/(bsd_v4_report.json,BSD_BENCH_V4.md,vision_calib_gate_report.json). - License: Apache-2.0 (see
LICENSEandNOTICE).
- Downloads last month
- 26
Model tree for balllvin/BS-D-1.0-Flash
Base model
Qwen/Qwen3.5-4B-Base