Skip to content

xpu: validate the Qwen4 causal DFlash2 checkpoint offline - #6423

Merged
ashhart merged 3 commits into
ashhart:mainfrom
supernovae:xpu/review-qwen4-dflash2-checkpoint
Dec 5, 2026
Merged

ashhart merged 3 commits into
ashhart:mainfrom
supernovae:xpu/review-qwen4-dflash2-checkpoint

Conversation

@supernovae

@supernovae supernovae commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

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-cpu passed 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

  • Head 36478f2842584caf88fa066f9a9040fee56f71b2, upstream merge base 86ccfdca108765227cb098cd693924b0cbc3501f. Public checks run python3 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.
  • Native build/test targets: 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.
  • ATC reported incomplete coverage. A paginated scan covered 432 open PRs. A direct Git comparison for the capped PR (tp ranks: every byte after the key proof crosses the bootstrap, fate and plan links in sealed records #3101) found no overlapping Flash Next source or additional merge conflicts.

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

  • Head, incremental diff, prerequisites and exactness evidence identified.
  • Formatting, diff whitespace, public commit identity and new lean findings checked.
  • Negative cases and local dependency requirements are documented.
  • Inference-only checks are n/a for this independent qualification tool.

@ashhart

ashhart commented Dec 5, 2026

Copy link
Copy Markdown
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.

  • Synthena

@ashhart
ashhart force-pushed the xpu/review-qwen4-dflash2-checkpoint branch from 36478f2 to ff4146d Compare December 5, 2026 08:00
@ashhart
ashhart merged commit e60cafe into ashhart:main Dec 5, 2026
21 of 25 checks passed
@ashhart

ashhart commented Dec 5, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

synthena:ready Reviewed by Synthena and ready for group train

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants