Two-GB10 tensor-parallel recipe for Flash-Next

My LLM BoxSep 5121 stars on GitHubWeek 36 final: #29

qwen38-flash-next recipe for tp=2 GB10

myllmbox/qwen38-flash-next-cluster-recipeReadme
# Qwen3.8-Flash-Next on two DGX Sparks

### Three checkpoints: `INT4-AutoRound`, the default and fastest — and `hibrid48` / `hibrid48-uncensored`. Switch with one line in `recipe.yaml`

[`INT4-AutoRound`](https://huggingface.co/azampatti/Qwen3.8-Flash-Next-125B-A5B-INT4-AutoRound) by
[@azampatti](https://github.com/azampatti) (default, every v5.2 number below): 5 of 512 experts per token, AutoRound int4
experts, fp8 side layers. [`hibrid48`](https://huggingface.co/myllmbox/Qwen3.8-Flash-Next-hibrid48) and
[`hibrid48-uncensored`](https://huggingface.co/myllmbox/Qwen3.8-Flash-Next-hibrid48-uncensored) (the full 10-expert body,
NVFP4; the uncensored one is gated, no guardrails): richer, more creative answers at a little less speed. To switch: in
`recipe.yaml` comment the active `model:` line and uncomment another, then `./run.sh` — the kit applies each checkpoint's
settings itself. Details in [Which checkpoint](#which-checkpoint).

Two boxes, one model, RDMA. **v5.2: 93 tok/s average and 177 peak on a thinking-on request, 1,008 tok/s at 64 streams, 3,939
tok/s prefill at 128k, 0.36 s to the first token.** Three commands.

**Side by side with every other stack:** [myllmbox.com](https://myllmbox.com)

## v5.2 (2026-10-06)

v4.1 stays available: `git checkout v4.1`. The version now matches the solo kit's (same stack generation).

**New**

1. **Default checkpoint: [INT4-AutoRound](https://huggingface.co/azampatti/Qwen3.8-Flash-Next-125B-A5B-INT4-AutoRound)** by
   [@azampatti](https://github.com/azampatti), as published, experts split whole across the two boxes (expert parallel). Its
   fp8 side layers load through his `vllm_fp8_hybrid` module (MIT, after [@Saren-Arterius](https://github.com/Saren-Arterius)'s
   [spark-dflash-hybrid-fp8](https://github.com/Saren-Arterius/qwen3.8-Flash-DGX-AutoRound)); its n-gram table is held on the
   GPUs, half per box, in the same 4-bit format as hibrid48's.
2. **The solo kit's stack, on two boxes:** RecoverSSM ([vllm-project/vllm#58863](https://github.com/vllm-project/vllm/pull/58863)
   by [@jschmied](https://github.com/jschmied), ported to 0.30) and dynamic draft depth up to 7 — now inside full CUDA graphs,
   which two boxes need (the per-step cross-box exchange stays in the graph).
3. **One-shot RoCE all-reduce** for the small per-step exchanges: RoCEnante from
   [b12x](https://github.com/local-inference-lab/b12x) (Apache-2.0), wired in as in eugr's vLLM; larger messages stay on NCCL.
   **Both halves of each ConnectX-7 port** carry NCCL traffic. Both suggested and measured by
   [@sethforprivacy](https://github.com/sethforprivacy) (#5).
4. **GB10 skinny-GEMM plans** for the small bf16 layers — [@sethforprivacy](https://github.com/sethforprivacy)'s TP=2 table (#4),
   on by default in this image.
5. Upstream vLLM fixes backported: fused hyper-connection down projection + SiLU
   ([#58957](https://github.com/vllm-project/vllm/pull/58957)), the hyper-connection up projection kept on the skinny path
   ([#60027](https://github.com/vllm-project/vllm/pull/60027)), the QSA profiling KV released
   ([#58961](https://github.com/vllm-project/vllm/pull/58961)), the QSA logits workspace
   ([#57105](https://github.com/vllm-project/vllm/pull/57105) by Thien Tran).

**Measured** (2× DGX Spark, RDMA, image v5.2, the shipped `recipe.yaml`, INT4-AutoRound)

| | v5.2 |
|---|---|
| thinking-on request (pasture), c=1 | **93.2** tok/s average · **176.8** peak |
| peak at c=1 / 2 / 4 / 8 / 16 / 32 / 64 | **177 / 252 / 357 / 506 / 684 / 885 / 1,174** |
| average at c=1 / 2 / 4 / 8 / 16 / 32 / 64 (thinking off, mixed) | 100 / 155 / 244 / 335 / 484 / 718 / 968 |
| prefill, 128k-token prompt | **3,939** tok/s |
| first token, 1k prompt | **0.36** s |
| KV pool | **1,829,182** tokens |

**Per prompt** (thinking off, aggregate tok/s of all streams, averages of 3 runs; c=1 = one full answer, c≥2 = 300 s with every
stream kept busy; **peak** = the best 10-s window measured at that concurrency)

| prompt | c=1 | c=2 | c=4 | c=6 | c=8 | c=12 | c=16 | c=24 | c=32 | c=48 | c=64 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| **peak** | **176.8** | **252.1** | **357.0** | **430.6** | **506.1** | **600.8** | **684.3** | **791.9** | **885.3** | **1,021.4** | **1,174.0** |
| mixed (code + explanation) | 100.4 | 155.3 | 244.2 | 289.2 | 335.2 | 413.2 | 483.9 | 603.5 | 718.0 | 881.1 | 968.4 |
| structured output (JSON schema) | 124.4 | 208.8 | 311.9 | 377.5 | 442.6 | 538.8 | 614.5 | 703.6 | 783.3 | 915.8 | 977.1 |
| long prose (7,000-word story) | 74.0 | 122.1 | 195.2 | 242.0 | 288.0 | 352.5 | 413.0 | 490.3 | 555.0 | 638.2 | 699.5 |
| code (TypeScript) | 133.6 | 210.5 | 318.2 | 384.4 | 456.0 | 546.4 | 620.4 | 736.5 | 808.7 | 937.8 | 1,007.5 |

## Quality (measured on this model, thinking on)

All three checkpoints, lm-evaluation-harness against a running serve, **thinking on**, temperature 0.6 / top-p 0.95 / top-k
20, a 32k-token budget per answer, HumanEval complete and a fixed 200-question subset (seed 123123123) of the others — the same
763 questions for every column. Qwen publishes no numbers for these four tests (its card reports LiveCodeBench v6 91.9, GPQA
Diamond 91.7, IFBench 81.3, SWE-bench Pro 62.5).

| task | questions | INT4-AutoRound (v5.2) | hibrid48 | hibrid48-uncensored |
|---|---|---|---|---|
| HumanEval pass@1 | 164 | **93.3** | **95.7** | **94.5** |
| GSM8K exact match | 200 | **99.0** | **98.0** | **97.5** |
| IFEval prompt-level strict / instruction-level strict | 200 | **91.5** / 94.0 | **91.5** / 93.4 | **94.5** / 96.2 |
| MMLU-Pro (14 subjects, sampled by size) | 200 | **82.9** | **84.9** | **82.9** |
| answers that ran into the 32k budget while thinking (count as wrong) | 763 | 6 | 11 | 6 |

Subsets of 200 carry about ±3 points of sampling noise; published leaderboard numbers use other prompts, few-shot counts and
full sets — a sanity band, not a column.

## What changed

**v5.2 (2026-10-06): the INT4-AutoRound checkpoint and the solo stack on two boxes.** See [v5.2](#v52-2026-10-06).
v4.1 stays available: `git checkout v4.1`.

**v4.1 (2026-09-27): FlashInfer GDN prefill.** `gdn-prefill-backend` back to 0.30's default: **+5 % prefill from 8k to
256k tokens** (3,300 vs 3,140 tok/s at 32k), the decode ladder unchanged at every rung from 1 to 64 streams. Measured as
two complete runs of the same kit, one per backend. Thanks to sethforprivacy for the finding.

**v4 (2026-09-24): vLLM 0.30, five draft tokens, a 2.45M-token pool and 64 seats.** The engine moved to upstream vLLM
0.30, and speculative decoding was retuned on it:

1. **Five draft tokens, sampled.** The drafter now proposes 5 tokens instead of 4 and *samples* them from its own
   distribution (`draft_sample_method: probabilistic`) instead of always taking its top guess; the model checks them with
   the exact probability-ratio test and block verification. Output quality cannot change — the text follows the model's
   own distribution either way — but more drafts survive: 5.1 accepted per step on code (v3: 4.2 of 5). +15 % single-stream,
   +16 % at 32 streams. Measured one knob at a time: the sampled draft is the gain; block verification is neutral on top.
2. **NCCL on four channels** (`NCCL_MAX_NCHANNELS=4`). NCCL builds 64 channels on this pair of boxes and splits every large
   message across all of them; the GB10 has no GPUDirect RDMA, so each piece is copied through host memory. Four channels
   made the per-layer all-reduce 3× faster at 32–64 streams: +10 % at 32 streams, +7 % at 64, nothing at one.
3. **Half the n-gram table per box.** On 0.30 splitting it across the two boxes costs nothing measurable (it did on 0.29),
   and the 13.4G it frees per box goes to the KV pool: 28G → 41G per box, 1.71M → **2,450,356 pooled tokens**, 9.35× the full
   262K window. 64 seats instead of 32.
4. **Boots in about four minutes instead of about seventeen:** 0.30 serves this model without torch.compile, so the
   per-boot model compilation is gone.

The image also carries the fused multi-step draft for this model's attention (proposed upstream as vllm-project/vllm#58449;
+1–3 % engine steps at 1–12 streams), and the kit reads each box's RoCE GID index at launch — the index moves after a
reboot or link flap, and a stale one fails NCCL with "unhandled system error". fp8 KV is not in the v4 image. v3 stays
available: `git checkout v3` (image `…-cluster-vllm:v5`, vLLM 0.29, full table per box, 28G pin, 32 seats, fp8 KV opt-in).

**v3 (2026-09-13): vLLM 0.29 and a 4-bit output head.** Two changes, one number: the serve moved from the vendor's SM121 vLLM
pin to upstream vLLM 0.29 (the model is upstream now), and the checkpoint's 1.18 GiB bf16 output head — read ~5.4 times per
decode step by speculative decoding, 27 % of the step — became 0.33 GiB of NVFP4 (`hibrid48`). Engine steps **17.7 → 22.0**
single-stream; same body, same table, same drafter. v2's single-stream **peak** was 80 tok/s — on v3, 80 is the **average** of a
whole thinking-on request, reasoning included (79.5 over 38k tokens), and the code phase peaks at 107. KV is bf16 by default (1.71M pooled tokens on
the 28G pin): fp8 KV still works (2.85M) but cost 0.3 accepted tokens per step on this stack, so it is one commented line
away, not the default. Quality, measured with lm-evaluation-harness against this serve with thinking on: HumanEval 95.7,
GSM8K 98.0, IFEval 91.5, MMLU-Pro 84.9. v2.1 stays available: `git checkout v2.1` (image `…-cluster-vllm:v4`, hibrid47, fp8 KV).

**v2.1 (2026-09-08): fp8 KV.** Same model, same speed, 1.66× the KV pool: **2.85M pooled tokens** on the same 28G pin
(bf16 held 1.71M), so every seat carries more context and one request can run the full 262K window 10.9 times over.
Upstream vLLM's fp8-KV port for this model's QSA attention (PR #54846) is image patch 04; the engine still steps at
17.3/s single-stream (74 tok/s writing code, 54 thinking, 39,487 tokens in 11 minutes in one request). v2 stays
available: `git checkout v2` (image `…-cluster-vllm:v3`, bf16 KV).

**v2 (2026-09-06)** serves [myllmbox/Qwen3.8-Flash-Next-hibrid47](https://huggingface.co/myllmbox/Qwen3.8-Flash-Next-hibrid47):
the hibrid46 body with its 95 GB n-gram (PLE) table re-quantized to NVFP4 and held **resident on the GPU** — no CPU
offload worker, no per-step detour — split tensor-parallel across **two NVIDIA DGX Sparks (GB10, 119G unified memory
each)** over their ConnectX link, NCCL on RDMA. Against v1 (the int3 table in a CPU worker, same boxes, same tests):
**+7–11 % engine steps on every concurrency** and a table that draws 26 of 32 boss scenes where int3 drew half.
v1 stays available: `git checkout v1` in this repo (image `…-cluster-vllm:v2`, checkpoint hibrid46).

## Quick start

```bash
git clone https://github.com/myllmbox/qwen38-flash-next-cluster-recipe.git
cd qwen38-flash-next-cluster-recipe
./run.sh        # first run: sets the cluster up (asks for the 2nd box), downloads ~99G, syncs it, serves on :8000
```

**Hugging Face token.** Anonymous downloads are rate-limited, and gated models (license-agreement repos, e.g. uncensored variants) refuse anonymous access. `run.sh` looks for `HF_TOKEN`, then `~/.cache/huggingface/token` (`hf auth login`), and asks for one when the repo is gated — after you accepted its agreement on the model page. Nothing is stored by the kit.

`./stop.sh` stops both boxes. `./view.sh` shows live stats plus the RDMA proof. Requirements: two DGX Sparks
with docker + the NVIDIA container runtime, connected by their ConnectX ports (a direct cable or a switch),
ssh from the head to the worker (a password once — `setup.sh` installs a key). With the weights on both boxes, a boot
reaches healthy in about four minutes (weights ~97 s, profile + KV + graph capture ~67 s).

**What `run.sh` does the first time:** no `cluster.env` yet → it runs [`setup.sh`](setup.sh), which asks for the
worker's ssh address, probes both boxes (interfaces, RDMA devices, GPU, docker), **discovers the interconnect**
(the interface pair
Preview of Two-GB10 tensor-parallel recipe for Flash-Next
See all
  1. Qwen3.8-Flash-Next on ONE DGX Spark (TP=1)

  2. recipe for running Qwen3.8-Flash-Next on a single DGX Spark

    blazuxGitHub409 stars
  3. Qwen3.8-Flash-Next-NVFP4-vLLM-Dual-DGX-Spark

  4. Qwen3.8 Flash Next on one DGX Spark (TensorFold)

The Monday email

  • The week's best AI builds and who made them
  • New model releases and what people built with them
  • No spam. One click to leave.

Sign in once and you're on the list.