Skip to content

Export mixed rounds with speculation again - #211

Closed
Raydius wants to merge 2 commits into
NVIDIA:mainfrom
Raydius:pr/mixed-speculative-export
Closed

Raydius wants to merge 2 commits into
NVIDIA:mainfrom
Raydius:pr/mixed-speculative-export

Conversation

@Raydius

@Raydius Raydius commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Two regressions stop every mixed speculative export since the verification-mode aliasing (317c1ecc) and the depth-keyed mixed selection (bce032c0):

  1. Build the packed mixed decoder without verification aliasing. The mixed round built its packed target in verification mode only to skip the decoder's own sampler; that mode now aliases the sample rows to the hidden rows and rejects a scratch whose shapes differ, so the first mixed graph fails to construct. PreparedDecoder(..., sampler=False) (default True keeps every other caller unchanged) and the mixed factory builds the packed decoder with verification off; the role states keep gathering the packed hidden rows into the b·w+1 sample rows the round's own samplers read.
  2. Emit the proposal depth of mixed rounds with speculation. The package binding requires draft_tokens on every mixed graph that runs a speculative round and Helios selects mixed rounds by it, but GraphSignature forbade the field on mixed kinds. One depth derivation now covers every proposing round (speculative, or mixed with speculation): width − 1 unless explicit, Int32-bounded, zero at width one, and an explicit mixed depth must equal width − 1 since that is what the embedded round draws; the manifest emits it with verify_tokens and draft_source; the printed catalog keeps mixed graphs at depth 0 (what the mixed step runs at); helios/manifest.md and helios/model-contract.md describe the mixed depth as the selection key.

Validation: on 0009b89d, tests/recipes/test_qwen38_mixed.py 35 passed, tests/preparation/test_execution.py 48 passed, tests/cli/test_progress.py 8 passed on CPU; the four new cases (test_mixed_packed_decoder_keeps_its_sample_rows_and_brings_no_sampler, test_mixed_manifest_preserves_both_capacities_and_decode_mode[64-1-True] and [512-8-True], test_mixed_signature_depth_follows_the_speculative_rules) fail on 0009b89d without the change. A containerized Qwen3.8 Flash Next export with mixed speculative rounds loaded and served on SM120 (RTX PRO 6000) at 585159c9; the rebase onto 0009b89d touched no line near d68ed8f5's decoder changes and was validated on CPU only. Not run: a Qwen3.8 MTP mixed export on this host (the fork serves the DFlash2 draft).

Observation outside this PR's scope (from review): runtime_package/selection.rs retains mixed graphs by depth <= drafts, but the maximum that bounds drafts surveys only speculative graphs and nothing checks that an enabled mixed graph survives — a package captured without a width-1 mixed graph, served at --mtp-draft-tokens 0, silently loses its mixed rounds.

Related: #210 (the fork's DFlash2 questions; this PR is independent of its answer).

🤖 Generated with Claude Code

Raydius and others added 2 commits November 4, 2026 18:48
The mixed round built its packed target in verification mode only to skip
the decoder's own sampler. Since 317c1ec that mode aliases the sample rows
to the hidden rows and rejects a scratch whose shapes differ, so every
mixed export with speculation, Qwen3.8 MTP included, fails while
constructing its first mixed graph. PreparedDecoder takes sampler=False
(default True keeps every other caller unchanged), and the mixed factory
builds the packed decoder with verification off: the role states keep
gathering the packed hidden rows into the b*w+1 sample rows the round's
own samplers read.

Validation: tests/recipes/test_qwen38_mixed.py, 35 passed on CPU; the new
case binds the mixed factory's call to the real decoder signature and
fails on the parent commit (verification on, no sampler flag). The
decoder itself is exercised by the containerized export of a mixed
speculative package and the requests served through it on SM120; no CPU
test constructs the real decoder.

Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Ray Dollete <ray@raydollete.com>
Since bce032c the package binding requires draft_tokens on every mixed
graph that runs a speculative round, and Helios selects mixed rounds by
that depth (runtime_package/selection.rs rejects a speculating graph whose
depth is absent), but GraphSignature forbade the field on mixed kinds, so
no package with mixed speculative rounds could export. The depth
derivation (width - 1 unless explicit, Int32-bounded, zero at width one)
now covers every proposing round, speculative or mixed with speculation,
in one place; a mixed round's embedded round always proposes width - 1
tokens, so an explicit mixed depth must say so; the packed-capacity and
prefix-limit rules stay speculative-only, and a round that proposes
nothing still rejects an explicit depth. The manifest emits the depth with
the verify width and draft source; the printed graph catalog keeps mixed
graphs at the depth their step runs at (zero), and the manifest and
model-contract documents describe the mixed depth as the selection key.

Validation: tests/preparation/test_execution.py, 48 passed on CPU; the
extended manifest case fails on the parent commit (depth absent) and a
new case covers the explicit, mismatched, out-of-range, and non-proposing
mixed signatures. tests/cli/test_progress.py passes. A containerized
export of a mixed speculative package loaded and served on SM120.

(cherry picked and reworked from the fork's cf4a71a)

Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Ray Dollete <ray@raydollete.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 5, 2026
Records the audit and opening of the first upstream set: owner issue NVIDIA#210,
Flare PR NVIDIA#211 (mixed speculative export, DCO-signed, on 0009b89) and
FlashInfer PR NVIDIA#67 refreshed to 95334c3e on 1f8ed8a3; the MoE guard PR is
dropped because FlashInfer NVIDIA#71 supersedes it. verification.md is PASS. Also
sweeps the untracked preclear handoff note .claude/handoff.md.

Validation: documentation and workflow records only; radflow-lint clean on the
change before archiving. No code, GPU, or package behavior changes.

Design-Signed-Off-By: Claude Sonnet 5.5 (claude-sonnet-5-5); design-review=a38f
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@original-el8 original-el8 added area:preparation Ignition checkpoint loading, tuning, compilation, capture, and export. bug Something isn't working priority:P1 High attention: unresolved correctness, serving failure, or model-data deletion risk. triage:review Proposed change needs code review; this does not imply merge readiness. labels Nov 5, 2026
@original-el8 original-el8 added the model:qwen3.8-flash-next Affected recipe or documented reproducer: qwen3.8-flash-next. Impact may be broader. label Nov 8, 2026
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 10, 2026
Records the audit and opening of the first upstream set: owner issue NVIDIA#210,
Flare PR NVIDIA#211 (mixed speculative export, DCO-signed, on 0009b89) and
FlashInfer PR NVIDIA#67 refreshed to 95334c3e on 1f8ed8a3; the MoE guard PR is
dropped because FlashInfer NVIDIA#71 supersedes it. verification.md is PASS. Also
sweeps the untracked preclear handoff note .claude/handoff.md.

Validation: documentation and workflow records only; radflow-lint clean on the
change before archiving. No code, GPU, or package behavior changes.

Design-Signed-Off-By: Claude Sonnet 5.5 (claude-sonnet-5-5); design-review=a38f
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 10, 2026
…till lacks

The deploy README listed only the five patch/NN branches, but deploy also
carries the merged DFlash2 work. The Active table now has 13 rows with a
"Still needed" verdict against upstream 0009b89: the five patches plus the
qwen38_dflash recipe (only mixed prefill and yarn4 stay fork-only once
upstream d68ed8f is folded in), history drafts on parallel-draft rounds,
copy-depth acceptance attribution, the mixed speculative export fixes
(PR NVIDIA#211), the opaque-write copy rule (probably retireable after a
re-export), --recipe/--draft-model, the FlashInfer pin (until FlashInfer
NVIDIA#67 merges), and the qualify/ DFlash2 tools. The warmup-retention fix
moves to Retired. Includes the archived change record
fork-readme-patch-inventory (Tier 1, verification PASS).

Validation: documentation only; radflow-lint clean; README claims
spot-checked against git (upstream cli --speculative-method dflash2,
upstream qwen38 copy_offered_mask, qwen38_dflash draft revision). No tests run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 10, 2026
FORK.md still described deploy as the patch stack plus one README commit,
said the design-review hook stays disabled, and named upstream without its
GitHub redirect. deploy now also carries the merged DFlash2 work (no
patch/NN branches; inventoried in README's Active patches), the local
.git/config sets core.hooksPath=.githooks so every commit needs a
Design-Signed-Off-By acknowledgment, the upstream URL redirects to
NVIDIA/spark-local-inference, and proven patches go upstream as PRs from
pr/* branches (NVIDIA#211, NVIDIA#212). The operator's 2026-10-20 scope decision and
the overruled-gates sentence are unchanged. Includes the archived hotfix
change record fork-md-current-topology.

Validation: documentation only; radflow-lint clean; grep finds no
remaining "hook stays disabled" or "one commit above the topmost patch".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 10, 2026
…kages

Archive yarn4-mtp-passkey-evidence: a passkey probe (qualify/long_context_passkey.py,
CPU tests with fakes) and its results on the MTP qwen3.8-flash-yarn4 package exported
from pr/rope-scaling (12/12 cells at 200k-1,000k tokens), the DFlash2 yarn4 package
(12/12), and the native 262k MTP package (3/3 at 200k); the long-context-passkey-retrieval
spec; the docs/TODO.md yarn4 item records the measurement. Evidence posted on
NVIDIA#212.

Validation: tests/reference/test_long_context_passkey.py and
tests/reference/test_dflash2_long_context.py, 13 passed; the three grids were served
through `flare run` on an RTX PRO 6000 (raw per-cell requests under
~/.cache/yarn4-passkey/). Limitations: the MTP yarn4 package was exported without
--mixed-prefill because upstream 0009b89 + the rope PR cannot write a mixed-prefill
speculative package (the defect PR NVIDIA#211 fixes); the probe measures retrieval only and
sets no acceptance threshold.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 11, 2026
The README patch notes on deploy judged each patch's "Still needed" verdict
against upstream e774a46, the stack base. Upstream main has since moved to
cbf21a1, and qualify/results/dflash2-paths-c16/ gained a measurement of A16
decode on the MXFP8-draft DFlash2 path that the patch notes did not mention.

The "Still needed" line now names cbf21a1 and states that its two commits
above the stack base (NVIDIA#261, WinUI model metadata; NVIDIA#260, RTX Spark revision
detection and failed-download cleanup) change no file a fork patch changes;
the only file both sides edit is docs/TODO.txt. The stack base stays
e774a46 because the fork has not been rebased. The DFlash2 qualification
tools entry now reports that A16 decode lowers code_edit on that path from
555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from
1,231.2 to 1,152.0 tok/s, so the fork serves the path with A16 decode off.

Result: every active patch remains needed against cbf21a1, and the notes
record the served configuration's A16 decision with its numbers.

Evidence: the intersection of files changed in e774a46..upstream/main and
e774a46..deploy contains only docs/TODO.txt. The pull requests that would
retire patches, NVIDIA/spark-local-inference NVIDIA#211, NVIDIA#212 and NVIDIA#229 and
local-inference-lab/flashinfer NVIDIA#67, are open as of 2026-11-11. The A16
figures are copied from qualify/results/dflash2-paths-c16/README.md (arm Q
against arm QA, three trials per setting, recorded in e3ff125). No code
changes; no tests run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=cfcf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@original-el8

Copy link
Copy Markdown
Collaborator

@Raydius GitHub reports merge conflicts with main, confirmed locally with git merge-tree for PR head a5e1a20fd881 against main 97cfeb0001f1. Conflicting paths:

  • helios/manifest.md
  • ignition/preparation/execution.py
  • tests/recipes/test_qwen38_mixed.py

Please reconcile the branch with main and rerun the checks affected by the resolution.

@original-el8 original-el8 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend closing this PR as superseded by main at a5b3b2b.

The verification buffer alias is already conditional on equal hidden/sample shapes, introduced by d68ed8f, and that condition is present even in this PR's base. Main also derives and exports mixed speculative draft depth, introduced by 4a24d78. The additional sampler switch therefore does not address a remaining demonstrated defect. The proposed requirement that mixed draft depth equal width minus one would also conflict with main's explicit support and test for independent draft depth (width 8, depth 15).

Validation on the inspected main revision: tests/preparation/test_execution.py, tests/recipes/test_qwen38_mixed.py, and tests/cli/test_progress.py passed, 112 tests total. This is CPU validation; I did not run a GPU mixed export or native serving.

The branch also conflicts with that main revision in helios/manifest.md, ignition/preparation/execution.py, and tests/recipes/test_qwen38_mixed.py. Closing as superseded is preferable to rebasing this implementation without a remaining reproducer.

Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 16, 2026
Records the audit and opening of the first upstream set: owner issue NVIDIA#210,
Flare PR NVIDIA#211 (mixed speculative export, DCO-signed, on 0009b89) and
FlashInfer PR NVIDIA#67 refreshed to 95334c3e on 1f8ed8a3; the MoE guard PR is
dropped because FlashInfer NVIDIA#71 supersedes it. verification.md is PASS. Also
sweeps the untracked preclear handoff note .claude/handoff.md.

Validation: documentation and workflow records only; radflow-lint clean on the
change before archiving. No code, GPU, or package behavior changes.

Design-Signed-Off-By: Claude Sonnet 5.5 (claude-sonnet-5-5); design-review=a38f
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 16, 2026
…till lacks

The deploy README listed only the five patch/NN branches, but deploy also
carries the merged DFlash2 work. The Active table now has 13 rows with a
"Still needed" verdict against upstream 0009b89: the five patches plus the
qwen38_dflash recipe (only mixed prefill and yarn4 stay fork-only once
upstream d68ed8f is folded in), history drafts on parallel-draft rounds,
copy-depth acceptance attribution, the mixed speculative export fixes
(PR NVIDIA#211), the opaque-write copy rule (probably retireable after a
re-export), --recipe/--draft-model, the FlashInfer pin (until FlashInfer
NVIDIA#67 merges), and the qualify/ DFlash2 tools. The warmup-retention fix
moves to Retired. Includes the archived change record
fork-readme-patch-inventory (Tier 1, verification PASS).

Validation: documentation only; radflow-lint clean; README claims
spot-checked against git (upstream cli --speculative-method dflash2,
upstream qwen38 copy_offered_mask, qwen38_dflash draft revision). No tests run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 16, 2026
FORK.md still described deploy as the patch stack plus one README commit,
said the design-review hook stays disabled, and named upstream without its
GitHub redirect. deploy now also carries the merged DFlash2 work (no
patch/NN branches; inventoried in README's Active patches), the local
.git/config sets core.hooksPath=.githooks so every commit needs a
Design-Signed-Off-By acknowledgment, the upstream URL redirects to
NVIDIA/spark-local-inference, and proven patches go upstream as PRs from
pr/* branches (NVIDIA#211, NVIDIA#212). The operator's 2026-10-20 scope decision and
the overruled-gates sentence are unchanged. Includes the archived hotfix
change record fork-md-current-topology.

Validation: documentation only; radflow-lint clean; grep finds no
remaining "hook stays disabled" or "one commit above the topmost patch".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 16, 2026
…kages

Archive yarn4-mtp-passkey-evidence: a passkey probe (qualify/long_context_passkey.py,
CPU tests with fakes) and its results on the MTP qwen3.8-flash-yarn4 package exported
from pr/rope-scaling (12/12 cells at 200k-1,000k tokens), the DFlash2 yarn4 package
(12/12), and the native 262k MTP package (3/3 at 200k); the long-context-passkey-retrieval
spec; the docs/TODO.md yarn4 item records the measurement. Evidence posted on
NVIDIA#212.

Validation: tests/reference/test_long_context_passkey.py and
tests/reference/test_dflash2_long_context.py, 13 passed; the three grids were served
through `flare run` on an RTX PRO 6000 (raw per-cell requests under
~/.cache/yarn4-passkey/). Limitations: the MTP yarn4 package was exported without
--mixed-prefill because upstream 0009b89 + the rope PR cannot write a mixed-prefill
speculative package (the defect PR NVIDIA#211 fixes); the probe measures retrieval only and
sets no acceptance threshold.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 16, 2026
The README patch notes on deploy judged each patch's "Still needed" verdict
against upstream e774a46, the stack base. Upstream main has since moved to
cbf21a1, and qualify/results/dflash2-paths-c16/ gained a measurement of A16
decode on the MXFP8-draft DFlash2 path that the patch notes did not mention.

The "Still needed" line now names cbf21a1 and states that its two commits
above the stack base (NVIDIA#261, WinUI model metadata; NVIDIA#260, RTX Spark revision
detection and failed-download cleanup) change no file a fork patch changes;
the only file both sides edit is docs/TODO.txt. The stack base stays
e774a46 because the fork has not been rebased. The DFlash2 qualification
tools entry now reports that A16 decode lowers code_edit on that path from
555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from
1,231.2 to 1,152.0 tok/s, so the fork serves the path with A16 decode off.

Result: every active patch remains needed against cbf21a1, and the notes
record the served configuration's A16 decision with its numbers.

Evidence: the intersection of files changed in e774a46..upstream/main and
e774a46..deploy contains only docs/TODO.txt. The pull requests that would
retire patches, NVIDIA/spark-local-inference NVIDIA#211, NVIDIA#212 and NVIDIA#229 and
local-inference-lab/flashinfer NVIDIA#67, are open as of 2026-11-11. The A16
figures are copied from qualify/results/dflash2-paths-c16/README.md (arm Q
against arm QA, three trials per setting, recorded in e3ff125). No code
changes; no tests run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=cfcf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yatesdr

yatesdr commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Closing as superseded. This PR identified both regressions in #115, and main has since fixed them: d68ed8f makes the verification alias conditional on equal shapes (ignition/recipes/qwen38/decoder.py:252-253), and 4a24d78 derives the draft depth for speculative mixed graphs (ignition/preparation/execution.py:69). The branch no longer applies to main, and it would reject the independent draft depth that tests/preparation/test_execution.py:275 now covers. If the wording change to helios/manifest.md is still wanted, please send it as a separate docs PR.

@yatesdr yatesdr closed this Nov 18, 2026
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
Records the audit and opening of the first upstream set: owner issue NVIDIA#210,
Flare PR NVIDIA#211 (mixed speculative export, DCO-signed, on 0009b89) and
FlashInfer PR NVIDIA#67 refreshed to 95334c3e on 1f8ed8a3; the MoE guard PR is
dropped because FlashInfer NVIDIA#71 supersedes it. verification.md is PASS. Also
sweeps the untracked preclear handoff note .claude/handoff.md.

Validation: documentation and workflow records only; radflow-lint clean on the
change before archiving. No code, GPU, or package behavior changes.

Design-Signed-Off-By: Claude Sonnet 5.5 (claude-sonnet-5-5); design-review=a38f
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…till lacks

The deploy README listed only the five patch/NN branches, but deploy also
carries the merged DFlash2 work. The Active table now has 13 rows with a
"Still needed" verdict against upstream 0009b89: the five patches plus the
qwen38_dflash recipe (only mixed prefill and yarn4 stay fork-only once
upstream d68ed8f is folded in), history drafts on parallel-draft rounds,
copy-depth acceptance attribution, the mixed speculative export fixes
(PR NVIDIA#211), the opaque-write copy rule (probably retireable after a
re-export), --recipe/--draft-model, the FlashInfer pin (until FlashInfer
NVIDIA#67 merges), and the qualify/ DFlash2 tools. The warmup-retention fix
moves to Retired. Includes the archived change record
fork-readme-patch-inventory (Tier 1, verification PASS).

Validation: documentation only; radflow-lint clean; README claims
spot-checked against git (upstream cli --speculative-method dflash2,
upstream qwen38 copy_offered_mask, qwen38_dflash draft revision). No tests run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
FORK.md still described deploy as the patch stack plus one README commit,
said the design-review hook stays disabled, and named upstream without its
GitHub redirect. deploy now also carries the merged DFlash2 work (no
patch/NN branches; inventoried in README's Active patches), the local
.git/config sets core.hooksPath=.githooks so every commit needs a
Design-Signed-Off-By acknowledgment, the upstream URL redirects to
NVIDIA/spark-local-inference, and proven patches go upstream as PRs from
pr/* branches (NVIDIA#211, NVIDIA#212). The operator's 2026-10-20 scope decision and
the overruled-gates sentence are unchanged. Includes the archived hotfix
change record fork-md-current-topology.

Validation: documentation only; radflow-lint clean; grep finds no
remaining "hook stays disabled" or "one commit above the topmost patch".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…kages

Archive yarn4-mtp-passkey-evidence: a passkey probe (qualify/long_context_passkey.py,
CPU tests with fakes) and its results on the MTP qwen3.8-flash-yarn4 package exported
from pr/rope-scaling (12/12 cells at 200k-1,000k tokens), the DFlash2 yarn4 package
(12/12), and the native 262k MTP package (3/3 at 200k); the long-context-passkey-retrieval
spec; the docs/TODO.md yarn4 item records the measurement. Evidence posted on
NVIDIA#212.

Validation: tests/reference/test_long_context_passkey.py and
tests/reference/test_dflash2_long_context.py, 13 passed; the three grids were served
through `flare run` on an RTX PRO 6000 (raw per-cell requests under
~/.cache/yarn4-passkey/). Limitations: the MTP yarn4 package was exported without
--mixed-prefill because upstream 0009b89 + the rope PR cannot write a mixed-prefill
speculative package (the defect PR NVIDIA#211 fixes); the probe measures retrieval only and
sets no acceptance threshold.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
The README patch notes on deploy judged each patch's "Still needed" verdict
against upstream e774a46, the stack base. Upstream main has since moved to
cbf21a1, and qualify/results/dflash2-paths-c16/ gained a measurement of A16
decode on the MXFP8-draft DFlash2 path that the patch notes did not mention.

The "Still needed" line now names cbf21a1 and states that its two commits
above the stack base (NVIDIA#261, WinUI model metadata; NVIDIA#260, RTX Spark revision
detection and failed-download cleanup) change no file a fork patch changes;
the only file both sides edit is docs/TODO.txt. The stack base stays
e774a46 because the fork has not been rebased. The DFlash2 qualification
tools entry now reports that A16 decode lowers code_edit on that path from
555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from
1,231.2 to 1,152.0 tok/s, so the fork serves the path with A16 decode off.

Result: every active patch remains needed against cbf21a1, and the notes
record the served configuration's A16 decision with its numbers.

Evidence: the intersection of files changed in e774a46..upstream/main and
e774a46..deploy contains only docs/TODO.txt. The pull requests that would
retire patches, NVIDIA/spark-local-inference NVIDIA#211, NVIDIA#212 and NVIDIA#229 and
local-inference-lab/flashinfer NVIDIA#67, are open as of 2026-11-11. The A16
figures are copied from qualify/results/dflash2-paths-c16/README.md (arm Q
against arm QA, three trials per setting, recorded in e3ff125). No code
changes; no tests run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=cfcf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
Records the audit and opening of the first upstream set: owner issue NVIDIA#210,
Flare PR NVIDIA#211 (mixed speculative export, DCO-signed, on 0009b89) and
FlashInfer PR NVIDIA#67 refreshed to 95334c3e on 1f8ed8a3; the MoE guard PR is
dropped because FlashInfer NVIDIA#71 supersedes it. verification.md is PASS. Also
sweeps the untracked preclear handoff note .claude/handoff.md.

Validation: documentation and workflow records only; radflow-lint clean on the
change before archiving. No code, GPU, or package behavior changes.

Design-Signed-Off-By: Claude Sonnet 5.5 (claude-sonnet-5-5); design-review=a38f
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…till lacks

The deploy README listed only the five patch/NN branches, but deploy also
carries the merged DFlash2 work. The Active table now has 13 rows with a
"Still needed" verdict against upstream 0009b89: the five patches plus the
qwen38_dflash recipe (only mixed prefill and yarn4 stay fork-only once
upstream d68ed8f is folded in), history drafts on parallel-draft rounds,
copy-depth acceptance attribution, the mixed speculative export fixes
(PR NVIDIA#211), the opaque-write copy rule (probably retireable after a
re-export), --recipe/--draft-model, the FlashInfer pin (until FlashInfer
NVIDIA#67 merges), and the qualify/ DFlash2 tools. The warmup-retention fix
moves to Retired. Includes the archived change record
fork-readme-patch-inventory (Tier 1, verification PASS).

Validation: documentation only; radflow-lint clean; README claims
spot-checked against git (upstream cli --speculative-method dflash2,
upstream qwen38 copy_offered_mask, qwen38_dflash draft revision). No tests run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
FORK.md still described deploy as the patch stack plus one README commit,
said the design-review hook stays disabled, and named upstream without its
GitHub redirect. deploy now also carries the merged DFlash2 work (no
patch/NN branches; inventoried in README's Active patches), the local
.git/config sets core.hooksPath=.githooks so every commit needs a
Design-Signed-Off-By acknowledgment, the upstream URL redirects to
NVIDIA/spark-local-inference, and proven patches go upstream as PRs from
pr/* branches (NVIDIA#211, NVIDIA#212). The operator's 2026-10-20 scope decision and
the overruled-gates sentence are unchanged. Includes the archived hotfix
change record fork-md-current-topology.

Validation: documentation only; radflow-lint clean; grep finds no
remaining "hook stays disabled" or "one commit above the topmost patch".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…kages

Archive yarn4-mtp-passkey-evidence: a passkey probe (qualify/long_context_passkey.py,
CPU tests with fakes) and its results on the MTP qwen3.8-flash-yarn4 package exported
from pr/rope-scaling (12/12 cells at 200k-1,000k tokens), the DFlash2 yarn4 package
(12/12), and the native 262k MTP package (3/3 at 200k); the long-context-passkey-retrieval
spec; the docs/TODO.md yarn4 item records the measurement. Evidence posted on
NVIDIA#212.

Validation: tests/reference/test_long_context_passkey.py and
tests/reference/test_dflash2_long_context.py, 13 passed; the three grids were served
through `flare run` on an RTX PRO 6000 (raw per-cell requests under
~/.cache/yarn4-passkey/). Limitations: the MTP yarn4 package was exported without
--mixed-prefill because upstream 0009b89 + the rope PR cannot write a mixed-prefill
speculative package (the defect PR NVIDIA#211 fixes); the probe measures retrieval only and
sets no acceptance threshold.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
The README patch notes on deploy judged each patch's "Still needed" verdict
against upstream e774a46, the stack base. Upstream main has since moved to
cbf21a1, and qualify/results/dflash2-paths-c16/ gained a measurement of A16
decode on the MXFP8-draft DFlash2 path that the patch notes did not mention.

The "Still needed" line now names cbf21a1 and states that its two commits
above the stack base (NVIDIA#261, WinUI model metadata; NVIDIA#260, RTX Spark revision
detection and failed-download cleanup) change no file a fork patch changes;
the only file both sides edit is docs/TODO.txt. The stack base stays
e774a46 because the fork has not been rebased. The DFlash2 qualification
tools entry now reports that A16 decode lowers code_edit on that path from
555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from
1,231.2 to 1,152.0 tok/s, so the fork serves the path with A16 decode off.

Result: every active patch remains needed against cbf21a1, and the notes
record the served configuration's A16 decision with its numbers.

Evidence: the intersection of files changed in e774a46..upstream/main and
e774a46..deploy contains only docs/TODO.txt. The pull requests that would
retire patches, NVIDIA/spark-local-inference NVIDIA#211, NVIDIA#212 and NVIDIA#229 and
local-inference-lab/flashinfer NVIDIA#67, are open as of 2026-11-11. The A16
figures are copied from qualify/results/dflash2-paths-c16/README.md (arm Q
against arm QA, three trials per setting, recorded in e3ff125). No code
changes; no tests run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=cfcf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…s them

Upstream closed PR NVIDIA#211 on 2026-11-18 as superseded. d68ed8f aliases a
decoder's sample rows to its hidden rows only when the two shapes are
equal, which a mixed round's b*w+1 sample rows never are, so building the
packed mixed decoder in verification mode now aliases nothing and builds
no sampler: what the fork's sampler=False flag (18de969) did. 4a24d78
derives the draft depth of speculative mixed graphs, so 698f871's code
hunk had already folded into upstream's and only its test lines remained.

PreparedDecoder drops the sampler flag, PreparedMixedRound builds the
packed decoder with verification=True as upstream does, and
tests/preparation/test_execution.py returns to upstream's form. README
moves the row to Retired patches; FORK.md notes NVIDIA#211's close.

Validation: host CPU suites test_qwen38_mixed (55), test_execution (53),
test_qwen38_bootstrap (16), test_qwen38_speculative_state (13, 2 skipped),
test_dflash2 (13) and test_parallel_draft_metadata (2) pass. On GPU 1 in
local/flare-ignition:02e4f749, test_qwen38_mixed_cuda passes 24 of 24 and
test_packed_speculation_cuda matches unmodified ba42481 (one shared
failure under the 14 GiB container limit).

Design-Signed-Off-By: qLLM (qllm/qLLM); design-review=1af4
@Raydius
Raydius deleted the pr/mixed-speculative-export branch November 19, 2026 21:50
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 24, 2026
…s them

Upstream closed PR NVIDIA#211 on 2026-11-18 as superseded. d68ed8f aliases a
decoder's sample rows to its hidden rows only when the two shapes are
equal, which a mixed round's b*w+1 sample rows never are, so building the
packed mixed decoder in verification mode now aliases nothing and builds
no sampler: what the fork's sampler=False flag (18de969) did. 4a24d78
derives the draft depth of speculative mixed graphs, so 698f871's code
hunk had already folded into upstream's and only its test lines remained.

PreparedDecoder drops the sampler flag, PreparedMixedRound builds the
packed decoder with verification=True as upstream does, and
tests/preparation/test_execution.py returns to upstream's form. README
moves the row to Retired patches; FORK.md notes NVIDIA#211's close.

Validation: host CPU suites test_qwen38_mixed (55), test_execution (53),
test_qwen38_bootstrap (16), test_qwen38_speculative_state (13, 2 skipped),
test_dflash2 (13) and test_parallel_draft_metadata (2) pass. On GPU 1 in
local/flare-ignition:02e4f749, test_qwen38_mixed_cuda passes 24 of 24 and
test_packed_speculation_cuda matches unmodified ba42481 (one shared
failure under the 14 GiB container limit).

Design-Signed-Off-By: qLLM (qllm/qLLM); design-review=1af4
Split-From: c1a05dca61a8543d40a2788ad9784fd4ed6bb8a6
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
Records the audit and opening of the first upstream set: owner issue NVIDIA#210,
Flare PR NVIDIA#211 (mixed speculative export, DCO-signed, on 0009b89) and
FlashInfer PR NVIDIA#67 refreshed to 95334c3e on 1f8ed8a3; the MoE guard PR is
dropped because FlashInfer NVIDIA#71 supersedes it. verification.md is PASS. Also
sweeps the untracked preclear handoff note .claude/handoff.md.

Validation: documentation and workflow records only; radflow-lint clean on the
change before archiving. No code, GPU, or package behavior changes.

Design-Signed-Off-By: Claude Sonnet 5.5 (claude-sonnet-5-5); design-review=a38f
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
…till lacks

The deploy README listed only the five patch/NN branches, but deploy also
carries the merged DFlash2 work. The Active table now has 13 rows with a
"Still needed" verdict against upstream 0009b89: the five patches plus the
qwen38_dflash recipe (only mixed prefill and yarn4 stay fork-only once
upstream d68ed8f is folded in), history drafts on parallel-draft rounds,
copy-depth acceptance attribution, the mixed speculative export fixes
(PR NVIDIA#211), the opaque-write copy rule (probably retireable after a
re-export), --recipe/--draft-model, the FlashInfer pin (until FlashInfer
NVIDIA#67 merges), and the qualify/ DFlash2 tools. The warmup-retention fix
moves to Retired. Includes the archived change record
fork-readme-patch-inventory (Tier 1, verification PASS).

Validation: documentation only; radflow-lint clean; README claims
spot-checked against git (upstream cli --speculative-method dflash2,
upstream qwen38 copy_offered_mask, qwen38_dflash draft revision). No tests run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
FORK.md still described deploy as the patch stack plus one README commit,
said the design-review hook stays disabled, and named upstream without its
GitHub redirect. deploy now also carries the merged DFlash2 work (no
patch/NN branches; inventoried in README's Active patches), the local
.git/config sets core.hooksPath=.githooks so every commit needs a
Design-Signed-Off-By acknowledgment, the upstream URL redirects to
NVIDIA/spark-local-inference, and proven patches go upstream as PRs from
pr/* branches (NVIDIA#211, NVIDIA#212). The operator's 2026-10-20 scope decision and
the overruled-gates sentence are unchanged. Includes the archived hotfix
change record fork-md-current-topology.

Validation: documentation only; radflow-lint clean; grep finds no
remaining "hook stays disabled" or "one commit above the topmost patch".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
…kages

Archive yarn4-mtp-passkey-evidence: a passkey probe (qualify/long_context_passkey.py,
CPU tests with fakes) and its results on the MTP qwen3.8-flash-yarn4 package exported
from pr/rope-scaling (12/12 cells at 200k-1,000k tokens), the DFlash2 yarn4 package
(12/12), and the native 262k MTP package (3/3 at 200k); the long-context-passkey-retrieval
spec; the docs/TODO.md yarn4 item records the measurement. Evidence posted on
NVIDIA#212.

Validation: tests/reference/test_long_context_passkey.py and
tests/reference/test_dflash2_long_context.py, 13 passed; the three grids were served
through `flare run` on an RTX PRO 6000 (raw per-cell requests under
~/.cache/yarn4-passkey/). Limitations: the MTP yarn4 package was exported without
--mixed-prefill because upstream 0009b89 + the rope PR cannot write a mixed-prefill
speculative package (the defect PR NVIDIA#211 fixes); the probe measures retrieval only and
sets no acceptance threshold.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
The README patch notes on deploy judged each patch's "Still needed" verdict
against upstream e774a46, the stack base. Upstream main has since moved to
cbf21a1, and qualify/results/dflash2-paths-c16/ gained a measurement of A16
decode on the MXFP8-draft DFlash2 path that the patch notes did not mention.

The "Still needed" line now names cbf21a1 and states that its two commits
above the stack base (NVIDIA#261, WinUI model metadata; NVIDIA#260, RTX Spark revision
detection and failed-download cleanup) change no file a fork patch changes;
the only file both sides edit is docs/TODO.txt. The stack base stays
e774a46 because the fork has not been rebased. The DFlash2 qualification
tools entry now reports that A16 decode lowers code_edit on that path from
555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from
1,231.2 to 1,152.0 tok/s, so the fork serves the path with A16 decode off.

Result: every active patch remains needed against cbf21a1, and the notes
record the served configuration's A16 decision with its numbers.

Evidence: the intersection of files changed in e774a46..upstream/main and
e774a46..deploy contains only docs/TODO.txt. The pull requests that would
retire patches, NVIDIA/spark-local-inference NVIDIA#211, NVIDIA#212 and NVIDIA#229 and
local-inference-lab/flashinfer NVIDIA#67, are open as of 2026-11-11. The A16
figures are copied from qualify/results/dflash2-paths-c16/README.md (arm Q
against arm QA, three trials per setting, recorded in e3ff125). No code
changes; no tests run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=cfcf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
…s them

Upstream closed PR NVIDIA#211 on 2026-11-18 as superseded. d68ed8f aliases a
decoder's sample rows to its hidden rows only when the two shapes are
equal, which a mixed round's b*w+1 sample rows never are, so building the
packed mixed decoder in verification mode now aliases nothing and builds
no sampler: what the fork's sampler=False flag (18de969) did. 4a24d78
derives the draft depth of speculative mixed graphs, so 698f871's code
hunk had already folded into upstream's and only its test lines remained.

PreparedDecoder drops the sampler flag, PreparedMixedRound builds the
packed decoder with verification=True as upstream does, and
tests/preparation/test_execution.py returns to upstream's form. README
moves the row to Retired patches; FORK.md notes NVIDIA#211's close.

Validation: host CPU suites test_qwen38_mixed (55), test_execution (53),
test_qwen38_bootstrap (16), test_qwen38_speculative_state (13, 2 skipped),
test_dflash2 (13) and test_parallel_draft_metadata (2) pass. On GPU 1 in
local/flare-ignition:02e4f749, test_qwen38_mixed_cuda passes 24 of 24 and
test_packed_speculation_cuda matches unmodified ba42481 (one shared
failure under the 14 GiB container limit).

Design-Signed-Off-By: qLLM (qllm/qLLM); design-review=1af4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:preparation Ignition checkpoint loading, tuning, compilation, capture, and export. bug Something isn't working model:qwen3.8-flash-next Affected recipe or documented reproducer: qwen3.8-flash-next. Impact may be broader. priority:P1 High attention: unresolved correctness, serving failure, or model-data deletion risk. triage:review Proposed change needs code review; this does not imply merge readiness.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants