Repository navigation
Description
#264 brings the MLX 4-bit Qwen3.8-27B to Tesla V100s and refuses NVFP4 and EXL3 packs there by name.
We have run NVFP4 checkpoints on V100s on top of #264, under its contracts (fp32 sums, a K split chosen from the shape, rows
independent of the row count), and would like to know whether you want them upstream, in what order, and what a
receipt must contain given that you cannot rerun V100 hardware.
What we have, all as stacked pull requests on #264 (none opened yet):
- NVFP4 checkpoints of Qwen3.8-27B on sm_70 (
VoltaLinear): NVFP4, FP8 and bf16 projections expand in registers
to exact fp16 values on Qwen3.8-27B on Tesla V100 (sm_70): Volta kernels #264'smma.m8n8k4decode skeleton, one fp32 factor a column applied last (W4A16 / W8A16
with fp16 activations, the stored weights exactly). One kernel and one K split for every row count; prompts take a
dense fp16 copy through Qwen3.8-27B on Tesla V100 (sm_70): Volta kernels #264's pinned cuBLASLt GEMM. The bf16 embedding stays in page-locked host memory. EXL3 stays
refused on Volta. - Qwen3.6 MoE NVFP4 experts on sm_70 (
VoltaExperts, fornvidia/Qwen3.6-35B-A3B-NVFP4and
ornith-ai/Ornith-1.5-35B-A3B-NVFP4with their own MTP heads): a (row, slot) pair's bits depend only on its row and
expert. Needs the CUDA ModelOpt NVFP4 loader forqwen3_5_moe(a separate pull request onmain). - NVFP4 at
--tp 2on sm_70:VoltaLinearshards on whole 64-input groups and 32-output tiles, the stored codes
kept. V100s in PCIe without peer access cannot map each other, so the row-parallel sums go through one page-locked
host buffer that both GPUs map (a host-memory transport beside P2P and NCCL; that transport is its own pull request
onmain, since any two GPUs without P2P can use it). --tp 4for the 27B (rank sums for 2–8 ranks; the tree-verify CUDA graphs on at four ranks), and
Qwen3.8-Flash-Next NVFP4 on sm_70 at four ranks: the 47.7 GiB n-gram tables memory-mapped and locked in host
RAM, gathered per lookup; the routed experts split on whole 64-input groups; an sm_70 kernel for the chunked
attention partials.- Multi-stream CUDA graphs for Qwen3.6 MoE rounds (
--parallel): on V100s the eager rounds are bound by host
launch time. The graphs keep a width only where startup timing finds it faster, so GPU-bound chips are unchanged.
Measured on Tesla V100-PCIE-32GB cards (one host, a VM, 200 W cap), 512-token greedy replies, our own A/B script;
every row exact (drafted == "draft": false, N=2/N=4 == serial):
| checkpoint, drafter | GPUs | single tok/s | N=4 / N=8 agg | prefill ~6K |
|---|---|---|---|---|
RadixArk/Qwen3.8-27B-NVFP4-BF16-LMHead + z-lab/Qwen3.8-27B-DFlash2 |
1 | 73.5 (52–100) | 141 / 173–191 | 1,028 |
same, --tp 2, host-memory sums, --parallel 4 |
2 | 61–76 | 125–134 / 159–173 | 1,300 |
nvidia/Qwen3.6-35B-A3B-NVFP4, own MTP |
1 | 184.6 | 182–196 / 372–390 | 4,017 |
same, with item 5's multi-stream graphs, --parallel 8 |
1 | 183–187 | 303–331 / 457–475 | – |
ornith-ai/Ornith-1.5-35B-A3B-NVFP4, own MTP |
1 | 163–165 | noisy | 4,005 |
RadixArk/Qwen3.8-27B-NVFP4-BF16-LMHead + DFlash2, --tp 4, tree-verify graphs |
4 | 78.1 | 71.2 / 78.1 | 805 |
RadixArk/Qwen3.8-Flash-Next-NVFP4, own MTP, --tp 4 |
4 | 87.5 (65–107) | served one at a time | 1,208 |
Two things in 0.6.4 bear on this:
- test_packed_passes_keep_each_prompt_one_token_early fails on pristine v0.6.1 on Jetson AGX Thor (sm_110) #261 refuses Flash Next on CUDA below sm_120 at startup. Item 4 runs it on sm_70 at four ranks, so it would add
an explicit sm_70 exception torefuse_small_gpu, with its own kernels. Is that acceptable, or should Volta Flash
Next stay out of tree? - feat(flash next cuda): --parallel N on two ranks #141/Flash Next CUDA (0.6.1 port): the lone stream's graph slot keeps its rows, so its graphs are captured once #180 brought Flash Next
--parallelto two ranks. Four-rank Flash Next today serves concurrent requests
one at a time; we would extend feat(flash next cuda): --parallel N on two ranks #141's link and plan agreement from two ranks to N.
#292 (Nemotron 3.5 on V100, also on #264) touches different families; we would keep the two stacks independent.
Questions:
- You have taken Qwen3.8-27B on Tesla V100 (sm_70): Volta kernels #264 as community-supported and experimental, with correctness on the card resting on V100 users'
receipts. Would you take these on the same terms? We would keep every change in Volta-only files where possible
(kernels/qmmf_volta.{cu,py}) and gate the rest onbuild.volta(), as Qwen3.8-27B on Tesla V100 (sm_70): Volta kernels #264 does, and we run the receipts on our
own V100s. - Should they wait for Qwen3.8-27B on Tesla V100 (sm_70): Volta kernels #264 to land, or be reviewed as a stack on it now (each pull request saying which it sits on)?
- The
--tp 2work needs the NVFP4 two-rank split for sm_80+ first (pull requests onmain). Is a host-memory rank-sum
transport something you want next to feat(cuda): one communicator interface for two-rank engines (transports over NCCL) #219's communicator interface, or should it be a feat(cuda): one communicator interface for two-rank engines (transports over NCCL) #219 transport? - What receipt do you need for hardware you cannot rerun? We can run
tools/bench_concurrent.py --alone --serial,
tools/bench_openai.pyandtools/prefill_cold.pyon the V100s against Qwen3.8-27B on Tesla V100 (sm_70): Volta kernels #264's head (before) and the stack (after).
Activity
ashhart commentedon Oct 6, 2026
Thank you, @gilby. The V100 stack and its receipts are thorough. The Python engine is frozen (#286), so the Volta follow-ups won't land on 0.6.x, and neither will #264, which they sit on. Zig CUDA builds for the GB10 first, with sm_120 and sm_89 next, and it doesn't serve yet. When older cards come to the Zig engine, your
VoltaLinear, the Volta experts and the host-memory rank sums are the reference, with your credit and @RoscoeTT's for #264. The question of receipts for hardware we can't rerun gets its answer then.ashhart commentedon Oct 7, 2026
Thank you, @gilby. NVFP4 checkpoints, Qwen3.6 MoE, and two and four ranks on Volta are three follow-ups, and each of them needs a Volta CUDA backend we do not have. The Zig CUDA engine in this tree is the Nemotron command line. It is not an sm_70 stack, and there is no NVFP4 reader and no Qwen MoE family.
The decision comes first. If Volta stays in scope, bf16 on sm_70 is the first backend commit, and NVFP4 stays behind a GPU that can run it. We will not promise the three follow-ups ahead of that backend. Thank you for keeping them as follow-ups to the earlier Volta issue rather than three new projects.
RoscoeTT commentedon Oct 7, 2026
Thanks @ashhart, and thanks @gilby for replaying #264 onto 0.6.5 with the authorship kept.
One data point for the scope decision, since bf16 on sm_70 would be the first backend commit: Volta has no bf16 tensor path.
mma.m8n8k4takes fp16 only, so bf16 activations with fp32 accumulation would run as fp32 FMA on the CUDA cores (~14 TFLOPS on a V100-PCIe vs ~112 fp16 tensor). Decode is bandwidth-bound and should mostly hold up; prefill would not.If Volta stays in scope, I'm glad to run receipts on our V100-PCIe-32GB cards against the Zig sm_70 target when it exists. No expectation either way. Glad the kernels are useful as a reference.
ashhart commentedon Oct 10, 2026
Closing this one, since the answer above stands: Volta needs its own CUDA backend, and we have no V100 to qualify it on. The native CUDA engine now runs Nemotron on GB10 and on Ampere 8.6 cards (1.0.3). If you'd like to bring Volta to the native engine, an issue with the backend plan and your receipts is the place to start, and @RoscoeTT's point that sm_70 has no bf16 tensor path is the first design question. Thank you both, @gilby and @RoscoeTT.