Skip to content

Volta (sm_70) follow-ups to #264: NVFP4 checkpoints, Qwen3.6 MoE, two and four ranks #313

Closed as not planned

Description

@gilby

#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):

  1. 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's mma.m8n8k4 decode 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.
  2. Qwen3.6 MoE NVFP4 experts on sm_70 (VoltaExperts, for nvidia/Qwen3.6-35B-A3B-NVFP4 and
    ornith-ai/Ornith-1.5-35B-A3B-NVFP4 with their own MTP heads): a (row, slot) pair's bits depend only on its row and
    expert. Needs the CUDA ModelOpt NVFP4 loader for qwen3_5_moe (a separate pull request on main).
  3. NVFP4 at --tp 2 on sm_70: VoltaLinear shards 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
    on main, since any two GPUs without P2P can use it).
  4. --tp 4 for 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.
  5. 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:

#292 (Nemotron 3.5 on V100, also on #264) touches different families; we would keep the two stacks independent.

Questions:

Activity

  1. ashhart commented on Oct 6, 2026

    @ashhart
    Owner

    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.

  2. ashhart commented on Oct 7, 2026

    @ashhart
    Owner

    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.

  3. RoscoeTT commented on Oct 7, 2026

    @RoscoeTT

    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.m8n8k4 takes 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.

  4. ashhart commented on Oct 10, 2026

    @ashhart
    Owner

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions