Repository navigation
xpu: validate the Qwen4 causal DFlash2 checkpoint offline - #6423
Merged
ashhart merged 3 commits intoDec 5, 2026
Merged
Conversation
Owner
|
READY to land on this head. Reviewed as host-only tooling: it inspects Qwen4 FP8/PLE checkpoints and the causal DFlash2 tensor and config bindings without loading a model for inference, and no serving, kernel, sampling or cache path changes. No device run is needed for this scope.
|
Refs ashhart#6317. Add host-only checkpoint and rank planning checks for the official Qwen4-35B-A3B FP8 model.
ashhart
force-pushed
the
xpu/review-qwen4-dflash2-checkpoint
branch
from
December 5, 2026 08:00
36478f2 to
ff4146d
Compare
Owner
|
Thank you @supernovae. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Refs #6376. This is the checkpoint half the maintainer cleared. It reads the pinned target and drafter headers offline and checks the causal draft geometry, the five target tap positions and the BF16 embedding and output head borrowed from the target. It introduces no serving switch and ships code only.
Stacked on the host geometry change in #6372. Incremental diff
Validation
On Linux x86-64 with Zig 0.17.0,
zig build qwen4-dflash2-inspect test-qwen27-dflash-config-host test-flashnext-xpu-host -Dfixed-cpupassed 57/57 tests. The inspector read all 81 BF16 tensors (790,317,568 bytes), 5 GQA layers, 16 query heads, 2 KV heads, width 8 and taps 19/23/27/31/35. Negative cases exercise dtype, attention mode, KV-head and layer-count mismatches. This executable reads metadata and does not generate tokens, so TTFT and decode do not apply.The target is Qwen/Qwen4-35B-A3B-FP8 at
4d35041fcd017a5608bd83bb65388757919d029c. The RadixArk draft is supplied by the operator. Its pinned model card and repository omit redistribution terms. The runtime is a separate follow-up gated by #6317 and the terms requested in #6376.Issue #6376. Review parent #6372.
Checks on this head
36478f2842584caf88fa066f9a9040fee56f71b2, upstream merge base86ccfdca108765227cb098cd693924b0cbc3501f. Public checks runpython3 tools/pr_check.py --base origin/main --pr 6423. Lean recorded 88 findings on base and head, zero new. Zig format and diff whitespace checks passed.zig build qwen4-dflash2-inspect test-qwen27-dflash-config-host test-flashnext-xpu-host -Dfixed-cpu. Counts and tested devices are above. CI: Passed changes, fast-gate, verify, fmt, pytest, zig.Receipt
The executable reads checkpoint headers on Linux x86-64. The change has no serving entry point, so the inference, switch, throughput, cold TTFT, speed-receipt and runtime exactness fields are n/a. The tests cover only the named host or GPU, and this PR distributes no weights.
Checklist