Skip to content

spark-model: serve active QSA verify past the bound by default on NVIDIA (#70) - #84

Merged
AzeezIsh merged 2 commits into
mainfrom
perf/qsa-verify-active-default
Sep 27, 2026
Merged

AzeezIsh merged 2 commits into
mainfrom
perf/qsa-verify-active-default

Conversation

@AzeezIsh

Copy link
Copy Markdown
Contributor

Maintainer decision on #70: make ATLAS_QSA_VERIFY_ACTIVE the default once a task-level gate stays within noise.

Change

  • verify_active_enabled() now resolves through a pure verify_active_decision():
    • 1/true → on;
    • 0/false → off;
    • unset or anything else → on for NVIDIA, off on gfx1151 (unmeasured there).
  • One OnceLock feeds both the dispatch-time guard and the scheduler's verify_context_limit(), so the two views cannot disagree.
  • =0 restores the old inert-bound refusal.
  • Table test added.

Evidence so far (GB10)

  • Job 250: MTP K=2 + verify-active at 5.1k context runs at 28.7 tok/s, vs 18.4 serial.
  • Job 257:
    • needles 10/12 = 10/12 vs serial;
    • M vs M2 deterministic (top-1 100 %, JSD 0);
    • not output-identical to serial on long generations (top-1 43.7 %), the same class as the existing MTP divergence.

Gate (running on reiner; numbers will be posted here)

Both arms use the same binary (merge-train tree 53f4a3d3a); only ATLAS_QSA_VERIFY_ACTIVE differs.

  • ST-995 A/B: job 275 (off) vs job 277 (on). Pass means within noise, where BFCL n=995 has SE ≈ 1.1 pt per run.
  • Agentic perf leg: job 276 (off) vs job 278 (on), 1007 turns each. Pass means 0 dropped turns, plus the wall/decode gain.
  • Fill in the TODO(#70) doc line with those numbers before merge.

Merges after the GB10 merge train (#78, #67, #68, #82, #83), on top of it.

…DIA (#70)

ATLAS_QSA_VERIFY_ACTIVE now defaults ON for NVIDIA, so MTP speculative
verify runs past the 2051-token QSA inert bound instead of falling back to
serial decode. On GB10, job 250 measured 28.7 vs 18.4 tok/s at 5.1k context.
Job 257 found needles unchanged vs serial and deterministic output (M vs M2
top-1 100 %), but not output-identical to serial on long generations; that is
the same class as the existing MTP divergence. Per the maintainer's decision,
the default is gated on the task-level ST-995 A/B (on vs off, same binary) and
the agentic perf leg.

One pure helper, verify_active_decision(), answers both the dispatch guard and
the scheduler's verify_context_limit. =0/=false restores the old refusal.
gfx1151 keeps default OFF because it has not been measured there.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@AzeezIsh

Copy link
Copy Markdown
Contributor Author

Triage (2026-09-26). This is the vehicle that closes #70. MTP K=2 + verify-active is 28.7–29.7 tok/s (jobs 250/257), which already meets #70's ≥ 28 bar, but only while opt-in.

  • Please post the results of the gate jobs listed in the body: ST-995 off/on (275/277) and the reruns 385/386 from the GB10 handoff.
  • Merge state is UNKNOWN, so it probably needs a rebase onto current main.
  • Decision rule, as in the body: if the ST-995 A/B is within noise (paired McNemar, bfcl_paired.py), flip the default and close [job] Qwen3.8-Flash-Next: decode speed — MTP past the QSA bound, draft-vocab slicing, decode graphs #70.
  • Decode graphs and MTP determinism become their own small follow-ups, only if someone needs them.

@AzeezIsh

Copy link
Copy Markdown
Contributor Author

A/B half 1 of 2: ST-995 with ATLAS_QSA_VERIFY_ACTIVE=1 (reiner job 464). PASS, 84.92 / 84.93. Bars are 82.72 / 81.65. The tree (53f4a3d3a), binary and serve are the same as the default-env job 280, which scored 84.72 / 84.68; TC2 was engaged in both.

  • Paired per item (harness-checker re-score, exact McNemar): both pass 842, both fail 149, default-only 1, verify-active-only 3. That's 4 discordant items, net +2 for verify-active, p = 0.625, so there's no measurable accuracy effect.
  • RssAnon stayed flat, ~1.76 GB at the end as in job 280.
  • The agentic perf leg with verify-active (job 465) is running now; the merge decision follows its result.

…DO (#70)

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@AzeezIsh

Copy link
Copy Markdown
Contributor Author

A/B half 2 of 2: agentic perf leg with verify-active (reiner job 465). VALID. Endpoints agentic-coding-perf-2.5h, same tree 53f4a3d3a, same binary, same recipe serve as the default-env job 298 (reasoning off, MTP K=2, prefix caching on). One run per arm:

default (job 298) verify-active (job 465)
turns completed / failed / missing 1007 / 0 / 0 1007 / 0 / 0
wall 89.3 min 73.3 min (−18 %)
TTFT median 1.161 s 1.089 s
TPOT median 63.0 ms 48.9 ms (−22 %)
score 0.4899 0.491

Temperature, seed, single-stream and no-dropped-turns all pass. The only failing check is the known all_turns_observed defect, which fails identically in both runs.

Verdict:

  • Accuracy: neutral. Paired McNemar gives p = 0.625, net +2 items for verify-active.
  • Speed: TPOT is 22 % lower on the external leg.
  • Change since the last review: 20588c077 replaces the TODO in the doc comment with these numbers. Merging.

@AzeezIsh
AzeezIsh marked this pull request as ready for review September 27, 2026 04:37
@AzeezIsh
AzeezIsh merged commit d511a57 into main Sep 27, 2026
19 of 20 checks passed
AzeezIsh added a commit that referenced this pull request Sep 27, 2026
docs(status): #84/#103 merged, release 3fcf8ff verified, reiner queue
@AzeezIsh
AzeezIsh deleted the perf/qsa-verify-active-default branch September 29, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant