Repository navigation
Conversation
|
@ashhart, this draft is anchored at main commit I also asked on #3460 whether GB10 is suitable for the CUDA identity and timing checks you offered to run. If you agree, could those checks use GB10? Otherwise, please name the CUDA target you prefer. The final post-rebase CPU smoke passed 47/47 tests; CUDA exactness and performance remain pending. |
2f9d4d7 to
ce809b7
Compare
ce809b7 to
7917bb0
Compare
|
Merge-order note: a complete filename scan found 34 other open PRs sharing changed paths; the description lists every PR by path. These are path overlaps, not all confirmed conflicts. ATC's simulation is incomplete: it flags #2982 against the current worktree, and #2020, #2926, and #2960 against the old PR head. Local worktree conflict IDs are 3, 4, 8, and 13; IDs 9, 12, 14, and 15 were clean (ATC does not map those IDs to paths). Please establish the PR merge order and commits to wait for; we can resolve conflicts and rebase once that order is known. |
What this changes
Qwen3.5 CUDA draft frames currently choose one head width for the whole batch. If any context is wide, narrow proposal rows also use the full 248,320-column head instead of the 98,592-column narrow spans. This keeps the shared draft body batched, then projects, selects top-k, packs table inputs, and scatters results by width group while preserving stream order and narrow token-ID remapping. It covers the shared DFlash2 and DSpine CUDA frame paths.
The audit also found that affine-4 projection sums (
xs) must be rebuilt after mixed-width rows are compacted. DFlash2 and both DSpine planes now refresh those sums before projection; EXL3 does not consumexs.7917bb05d3ad362c6dcf3fe8dba2af3529a530ea, one commit on anchora15c7b0603dbcc5143b0dea701bc492bbd1ed7bc.ef4d6429fc873fe34cf37379f69921a791b04ab3. This draft stays on the stablea15c7b0anchor while Ash identifies the intended PR merge order and commits to wait for. Main moves quickly; we can resolve overlaps and conflicts and do the final rebase once that order is clear.Detected path overlaps
A paginated filename scan checked all 385 open PRs with no fetch failures. It found 34 other PRs sharing at least one changed path. Shared paths do not by themselves mean a textual conflict.
docs/optimization-ledger.md: prompt cache: Qwen3.8-27B on Metal keeps states at message starts behind TF_QWEN27_MESSAGE_STARTS (#3617) #4932, train 1124163433: #4075 (CI only) #4920, train 1124145037: #4529 #728 (CI only) #4906, GLM CUDA: pipeline four-bit EXL3 prompt expert tiles on SM121 #4701, GLM CUDA: gather and sample shared verification windows together #4698, GLM CUDA: skip native MTP prompt history with DFlash2 #4695, cuda: skip unused sample probability outputs for GLM and MiniMax #4665, CUDA: pair Qwen3.8 FP8 GDN QKV and Z projections #4664, flashnext cuda: opt-in cache-only MTP work during prefill #4529, attention: guarded identity online-softmax rescale skip on CUDA and Metal #4520, qwen27 metal: opt-in INT8 ANE FFN slices for SenseNova-Loop #4416, DeepSeek Flash 1017 affine weights on native Metal #4368, Metal: experimental Inkling 2 Mini text, vision and bundled DSpark #4337, DeepSeek-V4.1 EXL3 Metal: the indexer row scorer uses all four simdgroups #3736, DeepSeek-V4.1 EXL3 Metal: faster sparse-attention prompt scan, bit-identical #3735, DeepSeek-V4.1 EXL3 Metal: the indexer's one-shot select covers prefill chunks past 4096 keys #3734, dsv41 metal: TF_DSV41_CHUNK_SOLO solo prompt chunk widening (stacked on #2950) #3671, DeepSeek-V4.1 EXL3 Metal follow-up to #2373: exact tiled decode, fused chains, prefill chunking, last-row and Sinkhorn fixes #3382, Native SAM3/SAM3.1 segmentation on Metal #3372, dory cuda: decode rows run q, k, v and g as one grouped NVFP4 launch, and gate and up as another #3131, tp ranks: every byte after the key proof crosses the bootstrap, fate and plan links in sealed records #3101, flashnext cuda: the opt-in --tp 2 decode graph takes the dense split and keeps its graph across drafted verifies #2982, qwen27 Metal (M5): fused norm and RoPE write K and V into the cache and Q into qa directly (#2940 step 2b) #2960, qwen27 Metal: one q27_qk_norm_rope dispatch for Q and K head norm and RoPE (#2940 step 2a) #2955, qwen27 Metal: K and V read in place from the mixed projection, no unstack copies (#2940 step 1) #2945, qwen27 Metal prompt attention: threadgroups past the causal edge exit early (#2912) #2926.zig/qwen35_draft_frame_host.zig: tp ranks: every byte after the key proof crosses the bootstrap, fate and plan links in sealed records #3101, qwen3_5 cuda: a pool lane's state as pieces on any whole pages of its lease, no run (#2444 P3, Q3) #2939, qwen3_5 cuda: the GDN kernels read the state, its rollback copy and the log through a stream's state table (#2444 P3) #2620.zig/qwen35_draft_frame_mixed_host.zig: none.zig/src/families/qwen3_5/cuda.zig: SenseNova Loop CUDA: MTP drafting with the checkpoint's own head (--drafter mtp) #3867, qwen3_5 cuda: SenseNova-Loop-9B (sensenova_loop) in BF16, text only #3723, tp ranks: every byte after the key proof crosses the bootstrap, fate and plan links in sealed records #3101, qwen3_5 cuda: a pool lane's state as pieces on any whole pages of its lease, no run (#2444 P3, Q3) #2939, qwen3_5 cuda: the GDN kernels read the state, its rollback copy and the log through a stream's state table (#2444 P3) #2620, qwen35: dense BF16 loading and native prompt logprobs #2020, CUDA: #1764's BF16 prompt tile for Qwen ModelOpt, Nemotron and Dory, plus two exact Qwen prompt kernels (#1762) #2008.zig/src/families/qwen3_5/cuda_draft_frame.zig: CUDA: native TFQ3 (3/4/5-bit 2D-FWHT) runtime + drafters for Qwen3.8-27B, GLM-5.3-Flash, and Flash Next #4986, fix(cuda): cut a DFlash2 hold into frames an NVFP4 head accepts #4682.zig/src/families/qwen3_5/cuda_dspine_frame.zig: none.The ATC overlap simulation is incomplete because it hit pull/file/time limits. Its current worktree comparison reports #2982 conflicting and #2008, #2020, #2926, #2945, #2955, and #2960 clean. Its comparison against the older remote PR head
ce809b7reports conflicts with #2020, #2926, and #2960; the other simulated results are unknown. ATC also found local worktree overlaps: IDs 3 (1 conflict file), 4 (2), 8 (1), and 13 (2); IDs 9, 12, 14, and 15 were clean. ATC does not map those numeric IDs to paths.Ash, please identify the intended merge order and the main commits/PRs to wait for. We can resolve the known overlaps and refresh checks once that order is clear.
Checks on this head
expected 2, found 0;expected 4, found 0).zig build -j2 -Dfixed-cpu test-qwen35-draft-frame-host test-qwen35-draft-trees-host test-qwen35-dspine-host --summary all— 48/48 passed.zig fmt --check build.zig zigandgit diff --checkpass.CUDA qualification requested from Ash
Ash confirmed GB10 is a suitable target. After review has no open asks, he plans to run drafted-versus-plain token identity for single-stream and mixed-width concurrent requests, plus mixed versus all-narrow/all-wide head and served-decode timings. Those receipts remain pending.
Receipt
"draft": falseremains pending.Checklist