Repository navigation
perf(qwen): prepare packed Flash Next DFlash2 verification - #233
shadownetX wants to merge 1 commit into
Conversation
|
Categorized as The PR reports 433 targeted CPU checks passing, with CUDA checks skipped and no GPU compilation/replay, exported-package serving or measured performance. Acceptance needs those GPU checks across differing request-prefix lengths, width-one continuation and the configured positive draft depth, including restored draft state. Existing packages retain their captured catalogs; a package using this layout requires export. No performance gain is established yet. |
|
GPU data point for this PR: two DGX Spark (GB10) nodes, TP2 over one direct 200G CX-7 link, driver 615.71.09, kernel 7.0.0-1019-nvidia. Build:
Baseline: Both used the same checkpoint (
The export completed on the first try in 68 min, including fresh tuning (59 kernel families vs 55 on the baseline). I benchmarked both packages back to back the same night with no other traffic, using llm_decode_bench at 8k context and 30 s per concurrency. Coding peak is 10 runs at C1.
Correctness on the new package:
The package has been serving our production traffic since 2026-11-09 03:50 UTC. Caveat: the baseline also lacks the 13 |
|
Thanks for the detailed testing and feedback, really appreciate it! |
|
Following my latest HyperFlare v0.1.0 benchmark campaign, I have switched my single-GB10 production setup to native MTP with mixed prefill. I am still interested in packed DFlash2 verification, but I do not currently plan another DFlash2 export for GPU validation. Given the recent upstream changes and the TP2 results reported above, I would appreciate maintainer feedback on whether this proposal remains relevant before rebasing it. |
|
Updated mergeability check: head 8da334e merges cleanly into main 5fd4070; the earlier conflicts are resolved. The reported GB10 TP1 campaign completes all requests but shows consistent warm C2 regression and costs 1.10 GiB of loaded memory / 5.6% of KV capacity. Keeping this in draft/validation is appropriate; those results do not support default enablement. They qualify the stated v0.1.0 backport, not a new main export. No GPU run was repeated during this update. |
f96fb13 to
3dd086b
Compare
Flash Next DFlash2's rectangular catalog pads target verification to the same width for each request even when logical prefixes differ. The shared parallel draft machinery supports independent physical target and logical sampling capacities, so reuse that contract rather than introducing a new graph operation. Declare method-specific preparation defaults, enumerate packed DFlash2 round shapes, and pass the physical row capacity to the shared DFlash2 preparation and graph signature. Preserve rectangular MTP, upstream MTP-only graph selection and functional forwards, and the shared tensor-parallel embedding path. Extend the capacity, planning, and target-state tests, adapting the metadata test to the functional target interface. Existing cores retain their captured catalogs; a different positive draft depth requires export. The packed catalog is intended to reduce target padding while retaining per-request proposal depth. No performance gain is established. The prior revision had 433 targeted CPU checks passing and four CUDA checks skipped; TP2 observations used additional changes and cannot isolate this contribution. The rebased revision still requires CPU execution, CUDA compilation/replay and serving qualification. Design-Signed-Off-By: ChatGPT (GPT-6); design-review=ed22 Signed-off-by: Codex <codex@openai.com> Signed-off-by: vonP <thomas@picollin.fr> Signed-off-by: ChatGPT <support@openai.com> Co-authored-by: Codex <codex@openai.com> Co-authored-by: ChatGPT <support@openai.com>
3dd086b to
8da334e
Compare
|
Thanks for pointing out the merge conflicts. The branch has been rebased onto CPU validation of the previous rebase (
Both runs exhibited the same three planning failures with identical errors. No additional CPU failures were observed. Validation of the latest rebase remains pending. The PR remains draft, and no new GPU validation or performance gain is claimed. |
GB10 TP1 — Validation resultsAfter spending most of the night exporting and benchmarking this change on my DGX Spark, I have to admit I'm disappointed. I expected packed verification to improve concurrent DFlash2 workloads, but the results are mixed. Configuration: HyperFlare v0.1.0 with the exporter patch backported, Qwen3.8 Flash Next FP4 Local, TP1, DFlash2 7 drafts, MXFP8, adaptive alpha 0.5. Three repetitions across 8K/32K/64K contexts, COLD/WARM. Both configurations completed 270/270 requests, with WARM cache reuse between 99.19% and 99.91%. PerformancePer-request decode throughput, using geometric means of context-level median cohort averages:
The two-request WARM regression is particularly consistent, with all nine cohorts slower. Conversely, eight-request COLD workloads improved in eight of nine cohorts, reaching +12.1% at 64K. Across the full benchmark, measured verification request rounds increased by 13.5%, while accepted drafts per round decreased from 1.86 to 1.78. Memory and execution
The packed core costs an additional 1.10 GiB and reduces KV capacity by 5.6%. Inspection confirmed 68 speculative graphs. Runtime counters recorded 54,743 width-eight speculative executions across all four batch sizes, although the counters do not distinguish individual packed physical capacities. ConclusionThe implementation works, but I cannot justify enabling it by default on GB10 TP1 based on these measurements. These are descriptive results from one A/B campaign on v0.1.0, with sampled outputs and slightly different memory conditions, rather than a definitive assessment on current main. I'm leaving this PR in draft. I wish the results were better, but hopefully the data will help identify where packed verification can actually deliver a benefit. |
|
Closing. Your GB10 TP1 measurements from 2026-11-15 settle it: packed verification was faster for eight cold concurrent requests (8 of 9 cohorts, up to +12.1% at 64K) but slower for two warm concurrent requests (-8.2%, all nine cohorts), and it costs 1.10 GiB of loaded memory and 5.6% of KV capacity on every deployment. That does not justify enabling it by default, and AGENTS.md does not allow carrying it as a configuration switch without a concrete requirement. Thanks for measuring it this thoroughly. If a version shows no regression at low concurrency, please reopen with that data. |
Flash Next DFlash2 prepares rectangular target verification, retaining padded rows when requests verify different prefix lengths. This uses the shared packed parallel-draft rounds and method-specific preparation defaults to capture physical target-row capacity independently of verification width.
MTP preparation stays rectangular. Packed exports capture width one and the configured positive draft depth; changing the positive runtime draft limit requires a separate export.
Validation: 433 targeted CPU checks passed; four CUDA checks were skipped. Four broader CLI failures reproduce on unmodified
972e28e. CUDA compilation/replay, native export/serving, and performance remain untested.Draft for maintainer feedback before GPU validation. No measured performance gain is claimed.