Skip to content

[job] Qwen3.8-Flash-Next: decode speed — MTP past the QSA bound, draft-vocab slicing, decode graphs #70

Closed

Description

@AzeezIsh

Kind

Feature for a model we already support

Model

nvidia/Qwen3.8-Flash-Next-NVFP4

What's the job?

Flash-Next decode from ~18.5 tok/s serial toward SGLang's 47.9 (code). Levers: (1) MTP K=2 with per-row QSA verify past the 2051-token bound (#51, ATLAS_QSA_VERIFY_ACTIVE=1, opt-in); (2) draft-head vocab slicing (--mtp-vocab; hasso5703 measured +14-25 % with a 65,536-row map) — A/B queued as job 246; (3) decode CUDA graphs now that the QSA/PLE host vetoes are removable. Note MTP needs util ≥0.93 on this pack (pre-KV 104.6 GB, job 244). Done = code-prompt decode ≥ 28 tok/s at C=1, BFCL within noise.

Impact radius

Shared code, other models could change

What else could it touch?

MTP proposer / verify paths, decode graph capture, the active.len()-gated scheduler arms.

Who's waiting or willing to test?

@AzeezIsh (GB10)

Activity

  1. added
    job
    on Sep 25, 2026
  2. changed the title [-][job] Qwen3.8-Flash-Next: fast multi-turn TTFT with prefix caching[/-] [+][job] Qwen3.8-Flash-Next: decode speed — MTP past the QSA bound, draft-vocab slicing, decode graphs[/+] on Sep 25, 2026
  3. AzeezIsh commented on Sep 25, 2026

    @AzeezIsh
    ContributorAuthor

    Measured (job 250, GB10, main66 5b07b953, nvidia pack, util 0.93, 256-token greedy, 3 reps)

    prompt serial MTP K=2 + ATLAS_QSA_VERIFY_ACTIVE=1 + --mtp-vocab 65536 + --mtp-vocab 131072
    code — 29.6 tok/s (accept 0.94) 29.6 (0.93) 29.2 (0.94)
    JSON — 29.7 (0.98) 29.8 (0.96) 29.4 (0.98)
    prose — 25.1 (0.70) 24.9 (0.68) 24.8 (0.70)
    code @ 5.1k ctx (past the 2051 QSA bound) 18.4 (job 244) 28.7 (0.98) 28.5 28.5

    Remaining on this job: default-on verify-active (after 257), decode CUDA graphs, MTP determinism.

  4. AzeezIsh commented on Sep 25, 2026

    @AzeezIsh
    ContributorAuthor

    MTP + per-row QSA verify: quality gate (reiner job 257).

    • Setup: main66, util 0.93, lc_subset 12k-24k prompts.
    • Arms: S = serial; M = --speculative --num-drafts 1 + ATLAS_QSA_VERIFY_ACTIVE=1; M2 = M repeated.
    check result
    needles, M vs S 10/12 = 10/12: no case lost a needle
    short greedy probes (40 / 1,400 / 5,500 words) S == M == M2 byte-identical
    M vs M2 determinism, long generations 100 % top-1, JSD 0: deterministic
    kl_drift M vs S, long generations top-1 43.7 %, 190 greedy flips with margin > 0.02

    Reading:

    • MTP past the QSA bound is deterministic and keeps retrieval, but it is not output-preserving against serial on long generations.
    • The cause is the verify pass. It scores K+1 rows in one forward, a different reduction shape than one-token decode, and QSA's chaotic top-k amplifies the rounding difference; see the QSA-chaos notes on [job] Qwen3.8-Flash-Next: long-context cold prefill to SGLang parity (stage 1 = #68) #74.
    • This is the same class as the existing short-context MTP divergence, not something new that verify-active introduced.

    Not ready to make ATLAS_QSA_VERIFY_ACTIVE the default on this evidence alone. It is safe to offer (needles equal, deterministic, +56 % decode at 5k). Making it the default depends on the product call: is a numerically-different-but-equivalent long generation acceptable? If yes, the gate is a task-level check (BFCL / long-context QA with MTP on vs off), not bit-identity.

    Side note on short-prose nondeterminism (jobs 250, winbox): the serve log shows regime_reprobes. MTP's adaptive serial/MTP regime switch is timing-driven, so which regime a token decodes in can vary run to run. Hypothesis, not yet tested: pinning the regime should make short prose deterministic too.

  5. AzeezIsh commented on Sep 26, 2026

    @AzeezIsh
    ContributorAuthor

    Triage (2026-09-26). The done bar (code decode ≥ 28 tok/s at C=1) is met behind a flag: MTP K=2 + ATLAS_QSA_VERIFY_ACTIVE=1 gives 29.6 tok/s on code and 28.7 at 5.1k context (job 250).

    For comparison, #100 reports EXL3 + MTP at 30.8 tok/s on current main.

  6. added 2 commits that reference this issue on Sep 27, 2026
  7. AzeezIsh commented on Sep 27, 2026

    @AzeezIsh
    ContributorAuthor

    Verify-active is now the default on NVIDIA: #84 is merged (main d511a573f).

    • ST-995 (job 464 vs job 280): accuracy-neutral, paired McNemar p = 0.625.
    • Agentic perf leg (job 465 vs job 298): TPOT median 63.0 → 48.9 ms and wall 89.3 → 73.3 min at an equal score.
    • Recipe: the Flash-Next recipe records this (sparkrun-recipes#16).
    • Rollback: ATLAS_QSA_VERIFY_ACTIVE=0.
    • Strix (gfx1151) stays off; it hasn't been measured there.
  8. AzeezIsh commented on Sep 27, 2026

    @AzeezIsh
    ContributorAuthor

    Closing: the done bar is met on main, by default. Code-prompt decode ≥ 28 tok/s at C=1 → 29.6 tok/s (job 250) with MTP K=2 + per-row QSA verify, which is now the NVIDIA default via #84.

    • Gated: ST-995 accuracy-neutral (job 464 vs 280, paired McNemar p = 0.625). Perf leg TPOT median 63.0 → 48.9 ms, wall 89.3 → 73.3 min at an equal score (job 465 vs 298). Rollback: ATLAS_QSA_VERIFY_ACTIVE=0.
    • Dropped: draft-vocab slicing, measured as a wash at K=2.
    • Not carried as open work: decode CUDA graphs for qwen4_exp, and MTP long-generation output drift vs serial (deterministic run to run; top-1 43.7 % vs serial on long generations, job 257). Each becomes its own narrowly scoped [job] only when a user needs it.
    • Next absolute numbers: they shift once qwen4_exp: no final RMSNorm after the hyper-connection mixer (split from #91) #111 (final-norm fix) lands; decode speed is unaffected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    job

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions