Skip to content
Projets

aktor-lab/Qwen4-Basalt-NVFP4

Voir sur GitHub

À propos

Verified Qwen4-35B-A3B NVFP4 serving recipes & configs for Basalt — by Lasse (Maxrio9) & Niklas Lenz (Nipale-ai)

IA et apprentissage automatique

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
Historique en cours
in 7 days
Historique en cours
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Qwen4-35B-A3B NVFP4 on Basalt — Lasse (@lasse_ai) & Niklas Lenz (@niklaslenz_ai)

Qwen4-35B-A3B NVFP4 on Basalt (NVIDIA Blackwell sm_120 & sm_121)

Equal Collaborators: Lasse (Maxrio9 / @lasse_ai) & Niklas Lenz (Nipale-ai / @niklaslenz_ai)

Reproducible, stock-clock, bit-exact greedy parity-verified recipes for serving Qwen4-35B-A3B NVFP4 on Basalt across NVIDIA Blackwell GPUs — from 16 GB consumer cards (RTX 5060 Ti, 5070 Ti, 5080) and 24–32 GB workstation/flagship GPUs (RTX 5090, RTX PRO 4000/4500/5000) to 96 GB workstations (RTX PRO 6000) and 121 GiB unified-memory Arm64 (DGX Spark GB10).


Supported CUDA Hardware (Wide NVIDIA Blackwell Coverage)

Hardware Tier Supported GPUs / Platforms Public Maxrio9/basalt Branch tools/start.sh Tier Recommended Setup
16 GB Blackwell (sm_120, Linux & Windows x64) RTX 5060 Ti 16 GB, RTX 5070 Ti 16 GB, RTX 5080 16 GB qwen4-nvfp4-opt-candidates (6278d542) --tier 16gb (--mode dflash2 for 8K) --mmap-experts --ple-io direct --kv int8 --kv-resident 0: NEW 8K DFlash2 (--exp df2_max_t=8,a3b_down_stream_min=65) 127.65 tok/s c=1 (+35.4%) · 181.43 c=4 · 218.82 c=8 (+50.8%) decode, or built-in MTP (--spec 8) for 128K+ context (103.12 tok/s at 128K, <=14.4 GiB)
24–32 GB Blackwell (sm_120, Linux & Windows x64) RTX 5090 32 GB, RTX PRO 4000 / 4500 / 5000 Blackwell qwen4-nvfp4 (d3ddafb4, Unified RC2) --tier 32gb-5090 or --tier 32gb-pro4500 NEW official cold community-1 on stock 450 W RTX 5090, bundled-DF2 pack 85d2c8607e, zero extra flags (per workload): prose 454.2 / conv 531.2 / struct 1,190.9 tok/s vs upstream main 407.6 / 502.1 / 1,035.4 (+11.4% / +5.8% / +15.0%; struct-weighted overall 877.4 vs 791.3, ~75% of decoded tokens are greedy struct), 3,840/3,840 bit-exact. Built-in MTP still wins prose (502.8) and cold conv (539.3) — see per-workload note. All 10,240/10,240 experts resident + DFlash2 (--ple-io direct --kv int8, df2_max_t=40,df2_solo_policy=0,q80p_2048=1 on RTX 5090; df2_max_t=8,df2_solo_policy=0,q80p_2048=1 on PRO 4500), +9–12% c=1 decode (589.1 cal / 658.6 fixed-prompt; 607.83 prior 40b56029 pre-#1263 pack) on 5090 / 358.30 c=1 · 523.00 c=4 agg on PRO 4500, up to 512K context on 32 GB
48–96 GB Blackwell (sm_120, Linux & Windows x64) RTX PRO 6000 Blackwell 96 GB qwen4-nvfp4-pro6000 (d3ddafb4, Unified RC2) --tier 96gb Full residency, DFlash2 (--exp a3b_down_stream_min=65,df2_max_t=8,q80p_2048=0): Unified RC2 calibrated 8K: 2,392.28 tok/s c=64 · 606.84 tok/s c=1 DF2, 35,872/35,872 bit-exact · RC1 Tier-3 qualified — ~22.1K / ~21.6K tok/s 32K / 131K int8 QSA prefill · 493.03 tok/s c=1 · 957.52 c=4 · 1,215.40 c=8 (new PRO 6000 c=8 record) · 1,707.09 c=32 · 2,114.45 c=64 decode (37,306 MiB peak, 0 OOMs)
Unified-Memory Arm64 & Windows-on-Arm (sm_121) NVIDIA DGX Spark GB10 121 GiB; RTX Spark / N1X laptops (source build) qwen4-nvfp4-gb10 (cea5baa9) --tier spark Zero-copy --ple-io mapped + full-graph DFlash2 (--exp q80p_2048=1), 100.77 tok/s solo / 93.45 tok/s Tier-3 balanced, 90.75 tok/s at 128K, <=44 W
Multi-GPU Blackwell 2+ Blackwell GPUs (sm_120) qwen4-nvfp4 Add -- --gpu 0,1 --gpu-mode peer Peer expert tiering across multiple GPUs

[!IMPORTANT] Requirement: Basalt is built specifically for NVIDIA Blackwell (sm_120 / sm_121) + CUDA Toolkit 13.0+ (CMake 3.24+, Ninja, GCC 13+ on Linux or VS 2022 on Windows, Python 3.10+). Pre-Blackwell Ampere, Ada, and Hopper GPUs are not supported by Basalt.


Install & Run with Your Coding Agent (Fail-Safe Copy-Paste Prompt)

Paste this into Claude Code, Codex, Cursor, Antigravity, or OpenCode — it checks your GPU first, builds the right branch (Unified RC2 d3ddafb4 on every sm_120 card, cea5baa9 on DGX Spark GB10), reuses local weights (an existing pack is never re-downloaded) or downloads the ready-to-run official bundled-DFlash2 .basalt pack 85d2c8607e (no conversion, no separate drafter download), launches the server, and runs a live smoke test:

Set up and run Qwen4-35B-A3B NVFP4 on Basalt locally using https://github.com/Maxrio9/Qwen4-Basalt-NVFP4.
Follow every step in order and stop immediately with the exact error if any preflight or check fails — do NOT guess or improvise workarounds.

Safety guardrails (strict):
- NEVER modify system NVIDIA drivers or the CUDA toolkit.
- NEVER run sudo without asking me first.
- NEVER kill unrelated GPU processes.
- Keep all files inside a clean workspace directory (e.g. ./qwen4-basalt).

Step 1 — Hardware, CUDA & disk preflight (run first):
- Run:
  nvidia-smi --query-gpu=name,compute_cap,memory.total --format=csv,noheader
  nvcc --version
  cmake --version
  df -h .
  free -h
- If compute_cap < 12.0 or CUDA < 13.0, STOP immediately and explain that Basalt requires an NVIDIA Blackwell GPU (sm_120 / sm_121) and CUDA 13.0+.
- Verify >= 48 GB free disk space for the prebuilt `.basalt` pack fast-path (>= 90 GB if falling back to safetensors + convert.py), and >= 24 GB host RAM for 16 GB offload tiers. If insufficient, STOP and ask me before downloading. (Skip the disk check if a `Qwen4-35B-A3B-NVFP4.basalt` pack already exists — it will be reused.)

Step 2 — Auto-select the exact branch, CUDA arch, and launcher tier:
- compute_cap 12.1 (DGX Spark GB10 / N1X): branch=qwen4-nvfp4-gb10 (commit cea5baa9b1fa5a67bdb62815c7d23471f8fbaa72), arch=121, tier=spark, pack=4c3f4dbf3b, need_external_dflash2=yes
- compute_cap 12.0 and VRAM >= 80 GB (RTX PRO 6000): branch=qwen4-nvfp4-pro6000 (commit d3ddafb4cd75557d9fc17e2e5bcd7a6ae67aae3c), arch=120, tier=96gb, pack=85d2c8607e
- compute_cap 12.0 and VRAM 28-48 GB (RTX 5090 / PRO 4500 / PRO 5000): branch=qwen4-nvfp4 (commit d3ddafb4cd75557d9fc17e2e5bcd7a6ae67aae3c), arch=120, tier=32gb-5090 (use tier=32gb-pro4500 if this GPU is driving an active desktop display), pack=85d2c8607e
- compute_cap 12.0 and VRAM 15-24 GB (RTX 5060 Ti / 5070 Ti / 5080): branch=qwen4-nvfp4-opt-candidates (commit 6278d54247f615a6103b7b917b87d6d173cfa13d), arch=120, tier=16gb, pack=85d2c8607e (default MTP recipe serves up to 128K; `--mode dflash2` gives the faster 8K recipe)
- On every sm_120 tier, d3ddafb4 auto-selects the pack's bundled DFlash2 (`dflash2-nvfp4`) when the pack is 85d2c8607e, so NO external drafter is needed (need_external_dflash2=no) unless an existing legacy 4c3f4dbf3b pack is reused (see Step 4).

Step 3 — Clone & build Maxrio9/basalt:
- git clone -b <branch> https://github.com/Maxrio9/basalt.git
- cd basalt
- git checkout <commit> and verify `git rev-parse HEAD` equals the 40-char commit from Step 2 (STOP on mismatch).
- Install Python deps in a venv (pip install -r requirements.txt huggingface_hub)
- Configure & build:
  cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=<arch> -DBASALT_MODELS=qwen4exp
  cmake --build build --target basalt -j "$(nproc --ignore=2)"
- Verify bin/basalt exists and bin/basalt --help exits 0.

Step 4 — Discover existing local weights FIRST, then download ONLY what is missing (prebuilt pack fast-path):
- Before downloading anything from Hugging Face, search the machine for existing weights, drafters, or `.basalt` packs across:
  `~/.cache/huggingface/hub`, `$HF_HOME/hub`, `~/models`, `/data`, `/mnt`, and the current directory (or ask me where my local models live).
- Specifically check for:
  1. An existing `Qwen4-35B-A3B-NVFP4.basalt` pack (~42-43 GiB) — if found, reuse it directly and NEVER re-download it (zero-redownload upgrade rule). Identify it by exact byte size (`stat -c %s`):
     - 46176601478 bytes = bundled-DFlash2 pack 85d2c8607e (sha256 40f7b2c0449eef1bc0d4002776a88d307df57a3ed9e11b0bddf198e9a153dee9): on sm_120 launch WITHOUT `--dflash2` (d3ddafb4 auto-selects `dflash2-nvfp4`); on GB10 still pass the external `--dflash2` dir.
     - 45373384493 bytes = legacy pack 4c3f4dbf3b (sha256 1352133c16477d26e690421ec57fecb3e5a9423b1348fe4e3b1a36448e41d625): keep it, do NOT download the 46 GB 85d2c8607e pack; reuse or fetch only the ~754 MiB `RadixArk/Qwen4-35B-A3B-Dflash2` directory and pass `--dflash2 <dir>` (bit-exact with the bundled section, `3,840/3,840` tokens).
     - Any other size = self-converted pack: treat like the legacy pack (external `--dflash2`).
  2. Existing `RadixArk/Qwen4-35B-A3B-NVFP4` (or `Qwen/Qwen4-35B-A3B`) safetensors — if found locally, convert directly into `./models/Qwen4-35B-A3B-NVFP4.basalt` instead of downloading anything.
  3. An existing `RadixArk/Qwen4-35B-A3B-Dflash2` drafter directory (~754 MiB) — reuse it whenever an external drafter is needed (legacy/self-converted pack, or GB10).
- If neither a `.basalt` pack nor local safetensors exist, download the official prebuilt pack (RECOMMENDED fast-path, skips convert.py entirely). On sm_120 this is the ONLY download — DFlash2 is bundled inside it:
  hf download jesdga/Qwen4-35B-A3B-Basalt Qwen4-35B-A3B-NVFP4.basalt --revision 85d2c8607e --local-dir ./models
  echo "40f7b2c0449eef1bc0d4002776a88d307df57a3ed9e11b0bddf198e9a153dee9  ./models/Qwen4-35B-A3B-NVFP4.basalt" | sha256sum -c -
  (Apache-2.0, by Jesus Gulfo / jesdga; 46,176,601,478 bytes / ~43.0 GiB. The pack's HF README at this revision is stale and still says DFlash2 is not included — the file does carry the DFlash2 section. If sha256sum fails, delete the file, re-download once, and STOP if it fails again.)
  On DGX Spark GB10 (cea5baa9, no auto-default yet) download the legacy pack instead: `--revision 4c3f4dbf3b`, sha256 1352133c16477d26e690421ec57fecb3e5a9423b1348fe4e3b1a36448e41d625, plus the external drafter below.
- Fallback ONLY if the prebuilt pack is unavailable or I ask for it: download `RadixArk/Qwen4-35B-A3B-NVFP4` -> `./models/RadixArk--Qwen4-35B-A3B-NVFP4` and convert from inside the basalt repo:
  python3 tools/convert/convert.py \
    --checkpoint <local_or_downloaded_nvfp4_dir> \
    --out ./models/Qwen4-35B-A3B-NVFP4.basalt \
    --workers "$(nproc --ignore=2)" --force
- External DFlash2 drafter ONLY when `need_external_dflash2=yes` (GB10, or a reused legacy 4c3f4dbf3b / self-converted pack) and not already present: `hf download RadixArk/Qwen4-35B-A3B-Dflash2 --local-dir ./models/RadixArk--Qwen4-35B-A3B-Dflash2`
- Verify the resolved `.basalt` pack exists and is ~42-43 GiB. (`scripts/install.sh --download-weights` in the recipes repo applies all of these rules automatically.)

Step 5 — Clone recipes, dry-run, launch & smoke test:
- git clone https://github.com/Maxrio9/Qwen4-Basalt-NVFP4.git
- Run dry-run first and inspect the resolved command:
  ./Qwen4-Basalt-NVFP4/tools/start.sh --tier <tier> --basalt-bin ./basalt/bin/basalt --model ./models/Qwen4-35B-A3B-NVFP4.basalt [--dflash2 ./models/RadixArk--Qwen4-35B-A3B-Dflash2  # only if need_external_dflash2=yes] --host 127.0.0.1 --port 8080 --dry-run
  (start.sh detects the pack by size: bundled 85d2c8607e -> no --dflash2 on sm_120; legacy 4c3f4dbf3b -> auto-discovers ./models/RadixArk--Qwen4-35B-A3B-Dflash2 and prints a zero-redownload notice.)
- Start the server on 127.0.0.1:8080, poll http://127.0.0.1:8080/v1/models until ready, then send a real /v1/chat/completions smoke test ("Write a 2-sentence summary of why NVFP4 works well on NVIDIA Blackwell.").
- Report back: measured decode tok/s, GPU VRAM used (nvidia-smi), live API URL (http://127.0.0.1:8080/v1), and the exact one-line restart command.

4-Step Manual Install, Download & Run

1. Build Basalt

Requires CUDA Toolkit 13.0+, CMake >= 3.24, Ninja, GCC 13+ (Linux) or VS 2022 (Windows), and Python 3.10+.

# Pick the branch for your GPU:
#   RTX 5090 / RTX PRO 4500 (sm_120): -b qwen4-nvfp4            -DCMAKE_CUDA_ARCHITECTURES=120
#   RTX PRO 6000 96 GB (sm_120):      -b qwen4-nvfp4-pro6000    -DCMAKE_CUDA_ARCHITECTURES=120
#   DGX Spark GB10 (sm_121):          -b qwen4-nvfp4-gb10       -DCMAKE_CUDA_ARCHITECTURES=121
#   RTX 5060 Ti 16 GB (sm_120):       -b qwen4-nvfp4-opt-candidates -DCMAKE_CUDA_ARCHITECTURES=120

git clone -b qwen4-nvfp4 https://github.com/Maxrio9/basalt.git
cd basalt
git checkout d3ddafb4cd75557d9fc17e2e5bcd7a6ae67aae3c   # Unified RC2 (all sm_120 branches); GB10: cea5baa9b1fa5a67bdb62815c7d23471f8fbaa72
pip install -r requirements.txt huggingface_hub
cmake -S . -B build -G Ninja \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_CUDA_ARCHITECTURES=120 \
  -DBASALT_MODELS=qwen4exp
cmake --build build --target basalt -j "$(nproc --ignore=2)"
# Output binary: bin/basalt

2. Download the Prebuilt .basalt Pack (Recommended Fast-Path)

Already have Qwen4-35B-A3B-NVFP4.basalt or the RadixArk/Qwen4-35B-A3B-NVFP4 safetensors locally? Reuse them (scripts/install.sh searches ~/.cache/huggingface/hub, $HF_HOME/hub, ~/models, /data, /mnt first, and never re-downloads an existing pack). Otherwise download the official upstream single-file pack jesdga/Qwen4-35B-A3B-Basalt by Jesus Gulfo (jesdga, Apache-2.0) — ready to run, no conversion step, and since revision 85d2c8607e with RadixArk's DFlash2 drafter bundled inside the pack (one download less):

hf download jesdga/Qwen4-35B-A3B-Basalt Qwen4-35B-A3B-NVFP4.basalt \
  --revision 85d2c8607e --local-dir ./models
echo "40f7b2c0449eef1bc0d4002776a88d307df57a3ed9e11b0bddf198e9a153dee9  ./models/Qwen4-35B-A3B-NVFP4.basalt" | sha256sum -c -
# 46,176,601,478 bytes. On every sm_120 card, Unified RC2 d3ddafb4 auto-selects the bundled
# dflash2-nvfp4 drafter: no --dflash2 flag and no separate RadixArk download needed.

Fresh install vs. upgrade (zero 46 GB re-download):

What is on disk What scripts/install.sh / tools/start.sh do
Nothing (fresh sm_120 install) Download only 85d2c8607e (SHA-256 verified). DFlash2 is auto-enabled by d3ddafb4; RadixArk/Qwen4-35B-A3B-Dflash2 is not downloaded.
Bundled pack 85d2c8607e (46,176,601,478 B) Reused as-is; launched without --dflash2 on sm_120.
Legacy pack 4c3f4dbf3b (45,373,384,493 B, SHA-256 1352133c…e41d625) + external RadixArk DFlash2 Kept — no 46 GB re-download. The external drafter dir is detected (or only the ~754 MiB drafter is fetched) and wired via --dflash2 <dir>, with a one-line notice. Bit-exact with the bundled pack: 11/11 rows, 3,840/3,840 tokens, both equal to --spec 0 (Item #234).
DGX Spark GB10 (cea5baa9) Stays on legacy 4c3f4dbf3b + external --dflash2 until the GB10 Tier-3 --profile qualify of d3ddafb4 finishes.

Pack detection is an instant exact-size check; add scripts/install.sh --verify-pack for a full SHA-256 (cached in <weights-dir>/.pack-sha256-cache). Legacy pack, for reference or GB10:

hf download jesdga/Qwen4-35B-A3B-Basalt Qwen4-35B-A3B-NVFP4.basalt \
  --revision 4c3f4dbf3b --local-dir ./models
echo "1352133c16477d26e690421ec57fecb3e5a9423b1348fe4e3b1a36448e41d625  ./models/Qwen4-35B-A3B-NVFP4.basalt" | sha256sum -c -
hf download RadixArk/Qwen4-35B-A3B-Dflash2 --local-dir ./models/RadixArk--Qwen4-35B-A3B-Dflash2   # ~754 MiB

Pack quality vs BF16: KLD 0.0230 ± 0.0028, top-1 95.19%, PPL ratio 1.0015 (same model body in both revisions: main --spec 0 is 11/11 identical on 4c3f4dbf3b and 85d2c8607e). It bundles NVFP4 routed experts, Q6_K+int8 attention/GDN/shared-expert, Q8_0 embeddings/PLE/head, the BF16 vision tower, the native MTP drafter and (from 85d2c8607e) the RadixArk DFlash2 drafter. The pack's own HF README at 85d2c8607e is stale (old SHA, says DFlash2 "is not included"); the file does carry the DFlash2 section.

3. Alternative: Convert from RadixArk/Qwen4-35B-A3B-NVFP4 Safetensors

Skip this step if you downloaded the prebuilt pack. Run from the basalt repo root (standalone Qwen4-MoE NVFP4 conversion — no base .basalt pack required; produces a ~42 GiB file without a DFlash2 section, so pass --dflash2 <RadixArk dir> at launch or attach it with convert.py --drafter):

hf download RadixArk/Qwen4-35B-A3B-NVFP4 --local-dir ./models/RadixArk--Qwen4-35B-A3B-NVFP4
python3 tools/convert/convert.py \
  --checkpoint ./models/RadixArk--Qwen4-35B-A3B-NVFP4 \
  --out ./models/Qwen4-35B-A3B-NVFP4.basalt \
  --workers "$(nproc --ignore=2)" --force

4. Launch & Smoke Test

git clone https://github.com/Maxrio9/Qwen4-Basalt-NVFP4.git

# Preview the exact command first (--dry-run), then remove --dry-run to serve on 127.0.0.1:8080:
./Qwen4-Basalt-NVFP4/tools/start.sh \
  --tier 32gb-5090 \
  --basalt-bin ./bin/basalt \
  --model ./models/Qwen4-35B-A3B-NVFP4.basalt \
  --host 127.0.0.1 --port 8080 --dry-run
# Bundled pack 85d2c8607e: no --dflash2 needed on sm_120. Legacy 4c3f4dbf3b pack: start.sh auto-finds
# ./models/RadixArk--Qwen4-35B-A3B-Dflash2 (or pass --dflash2 <dir>; required on --tier spark).

Verify the running OpenAI-compatible server:

curl -s http://127.0.0.1:8080/v1/models
curl -s http://127.0.0.1:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"Qwen4-35B-A3B-NVFP4","messages":[{"role":"user","content":"Hello! Reply in one sentence."}],"max_tokens":64}'

Verified 5-Card Benchmark Summary (Stock Clocks, Bit-Exact Greedy Parity)

[!TIP] NEW — Unified RC2 + auto-default DFlash2 d3ddafb4 on every sm_120 branch (qwen4-nvfp4, qwen4-nvfp4-pro6000, qwen4-nvfp4-opt-candidates; GB10 stays on 6278d542 until its Tier-3 qualify finishes), by Lasse (Maxrio9 / @lasse_ai) & Niklas Lenz (Nipale-ai / @niklaslenz_ai): RC2 6278d542 (wide M=16/32/64 Q8_0 LM head + Neon Strike #1 c=1 decode fusion + slot-0 ple_prev fix + Linux MADV_RANDOM 16 GB fix) plus a host-only rule that selects dflash2-nvfp4 automatically on one-card servers loading a pack with a bundled DFlash2 section (--drafter, --dflash2 <dir> and --spec 0 still override). Zero kernel edits.

  • RTX 5090 32 GB, official cold community-1, stock 450 W, bundled-DF2 pack 85d2c8607e: with zero extra flags, per workload vs upstream main 9de6226b27: prose 454.2 vs 407.6 (+11.4%), conv 531.2 vs 502.1 (+5.8%), struct 1,190.9 vs 1,035.4 (+15.0%) (code is not part of community-1); the struct-weighted overall (~75% of decoded tokens are greedy T=0 struct, while conv and prose are sampled at T=0.6) is 877.4 vs 791.3 (+10.9%). default == --drafter dflash2-nvfp4 == --spec 0 on 11/11 rows / 3,840/3,840 tokens bit-exact (Item #244 receipt). Matched warm decode-only ABBA (--drafter dflash2-nvfp4): prose 451.5 (+5.4%), conv 565.9 (+19.6%), struct 1,197.5 vs 1,039.3 (+15.2%); struct-weighted overall 901.5 vs 789.2 (+14.2%); the legacy 4c3f4dbf3b pack + external DF2 reaches 889.6 overall and is bit-identical to the bundled pack (Item #234 receipt). Built-in MTP still beats DFlash2 on prose (502.8 vs 454.2/451.5) — see the per-workload note.
  • RTX PRO 6000 96 GB, Unified RC2 calibrated 8K: 2,392.28 tok/s c=64 DF2 decode (+10.06%), 606.84 tok/s c=1 DF2, 35,872/35,872 bit-exact (receipt).

Previous Champions — Qwen4 RC1 Unified 6278d542 (release/qwen4-rc1-unified) on PRO 6000; Wave-8 + upstream jesdga95/basalt main (9de6226b) unified champion 6fea4593 on 16 GB, Wave-8 6bd4e41480 (kBT=16/64 + A3B hc_fused router + zero_slot multi-request race fix) on 32 GB (Lasse Maxrio9 / @lasse_ai & Niklas Lenz Nipale-ai / @niklaslenz_ai):

  • RTX PRO 6000 96 GB (qwen4-nvfp4-pro6000 @ 6278d542 Qwen4 RC1 Unified, official #1263 pack, full Tier-3 qualification — receipt): 100% exact greedy parity (--deterministic-parity) — cold A/A 1024/1024 solo + 512/512 c=4 BGEN; 1024/1024 solo + zero_slot vs 1a4c7f07 --spec 0 across spec 0 / MTP / DFlash2; 32K int8 QSA 128/128; partial-residency c=64 (--expert-cache 4096 --mmap-experts) 4096/4096 IDs + 2048/2048 2-wave slot reuse with 33.62M CPU expert misses. Prefill: 32K / 131K int8 QSA 2-blocks/SM ~22.1K / ~21.6K tok/s (TTFT 1.48 s / 6.06 s). Decode (8K DFlash2 stream, Tier-3 cold ABBA): 493.02 / 227.66 / 151.50 tok/s c=1/4/8 at 23,126 MiB peak, neutral within ~1% vs 1a4c7f07 and speed-neutral vs 6fea4593 — so the 6fea4593 high-concurrency fields carry over: 1,215.40 tok/s c=8 agg decode, 1,707.09 c=32 and 2,114.45 tok/s c=64 agg decode (678.53 E2E) at 37,306 MiB with 0 OOMs (6fea4593 receipt).
  • RTX 5060 Ti 16 GB (qwen4-nvfp4-opt-candidates @ 6278d542, 8K DFlash2 breakthrough): 127.65 tok/s c=1 decode (94.26 → +35.4%, 73.86 E2E), 181.43 c=4 agg decode (100.37 E2E), 218.82 c=8 agg decode (145.15 → +50.8%, 109.79 E2E) with --kv int8 --kv-resident 0 --exp df2_max_t=8,a3b_down_stream_min=65; 384/384 solo + zero_slot exact parity and 512/512 c=4 DFlash2 A/A. The 128K MTP recipe (103.12 tok/s, <=14.4 GiB) stays the long-context choice.
  • RTX 5090 32 GB (qwen4-nvfp4 @ 6bd4e414, Wave-8 df2_max_t=40,q80p_2048=1): +9–12% c=1 decode over 40b56029 in same-session calibrated (589.14 c=1 decode / 344.24 E2E, 598.07 c=4 decode, 578.61 c=8 decode) and fixed-prompt bench_exact.py (658.56 c=1, 489.53 c=4, 543.78 c=8), zero_slot multi-request race fixed, 1024/1024 parity + 1280/1280 multi-request reset parity. (Earlier pre-#1263 pack 40b56029 receipt: 607.83 c=1 / 485.12 c=4 / 546.78 c=8 agg.)
  • RTX PRO 4500 32 GB (qwen4-nvfp4 @ 4e74c440, Wave-8 + zero_slot race fix): 358.30 tok/s 8k-c1 (354.73 pooled), 523.00 tok/s 8k-c4 agg, 356.69 tok/s 32k-c1 (355.54 pooled), and 491.33 tok/s 32k-c4 agg (480.60 pooled, q80p_2048=0 + --vram-reserve-mib 5600) at <=26.6 GiB peak VRAM (--kv int8 --ple-io direct --expert-cache 10240 --max-running 4 --exp df2_max_t=8,df2_solo_policy=0,q80p_2048=1), 512/512 (100%) parity + --deterministic-parity multi-request race fixed.
  • DGX Spark GB10 121 GiB (qwen4-nvfp4-gb10 @ cea5baa9, #1263 rebase, Tier-3 cold ABBA + 32K/128K): 93.45 tok/s c=1 8K stream balanced default (+16.3% vs 80.39 on #1263 MTP, --exp q80p_2048=1), 91.63 tok/s c=4 agg (+8.4%), 102.62 tok/s c=8 agg (+1.3%); 95.14 tok/s at 32K and 90.75 tok/s at 128K (up from 79.89; TTFT 35.74 s, >=56.9 GiB free, 0 memguard kills); 1536/1536 exact greedy token IDs vs upstream #1263 (af7153c7 --spec 0). Solo c=1 setting: 100.77 tok/s (--exp q80p_2048=1,a3b_down_stream_min=1000000).

Per-workload reporting: where MTP still beats DFlash2

[!IMPORTANT] We do not headline a bare community-1 overall. community-1 overall is token-weighted and ~75% of its decoded tokens are struct (greedy, T=0), where DFlash2 accepts ~92% of drafts; conv and prose are sampled at T=0.6 with a clock seed. A struct-heavy overall therefore hides the prose/conv picture. RTX 5090 32 GB, stock 450 W, Unified RC2 (6278d542 / d3ddafb4), community-1 fixtures (conv, struct, prose; code is not part of community-1):

Mode (RTX 5090, community-1) prose conv struct struct-weighted overall Harness / receipt
RC2 + built-in MTP (legacy 4c3f4dbf3b pack, no DF2 section) 502.8 539.3 691.0 638.8 cold community-1, single unbracketed leg P2 (Item #234)
RC2 + DFlash2, zero-flag default (bundled pack 85d2c8607e) 454.2 531.2 1,190.9 877.4 cold community-1 ABBA mean (Item #244)
RC2 + DFlash2, --drafter dflash2-nvfp4 451.5 565.9 1,197.5 901.5 warm decode-only ABBA Y2/Y3 (Item #234)
  • Prose: MTP wins — 502.8 vs DFlash2 454.2 cold (-9.7% for DF2) and 451.5 warm decode-only.
  • Conv: MTP wins on the like-for-like cold preset — 539.3 vs DF2 531.2; the warm decode-only harness reaches 565.9, but its absolute values are not interchangeable with cold community rows.
  • Struct: DFlash2 wins by ~1.7x — 1,190.9–1,197.5 vs MTP 691.0, which is what drives the overall.
  • The MTP leg is a single unbracketed run and conv/prose are sampled at T=0.6, so treat the prose/conv gaps as indicative. Until DFlash2 reaches prose/conv parity or adaptive drafter gating lands, prose- or chat-heavy single-user deployments may prefer built-in MTP (--drafter mtp; on the bundled pack, the auto default is DFlash2), and structured-output / agentic workloads should keep the DFlash2 default.

All results below are measured on stock factory clocks (0 MHz OC offsets), cold engine launches, exact token-ID prompt depths, --prompt-cache 0, --answer-room 0 (HTTP), and 100% bit-exact greedy token-ID parity (against upstream #1263 af7153c7 / 40b560297b --spec 0 for #1263 rebase & Wave-8 builds 6bd4e414 / 40b56029, 6bd4e41480 --spec 0 for the 6fea4593 Wave-8 + main champion, 1a4c7f07 --spec 0 for the 4e74c440 RC1 Unified build, and against pinned control 9e738488 for pre-rebase builds).

GPU Tier VRAM / Arch Public Engine Branch / Commit Speculative Mode & Placement 8K c=1 Decode 8K c=4 / c=8 Agg Long-Context c=1 Peak Memory Parity & Receipt
RTX 5090 32 GB — community-1 32 GB GDDR7 (sm_120), stock 450 W qwen4-nvfp4 (d3ddafb4 Unified RC2) Bundled-DF2 pack 85d2c8607e, no extra flags (auto dflash2-nvfp4); preset --max-context 66661 --kv int8 Default flags, cold: prose 454.2 (+11.4%) / conv 531.2 (+5.8%) / struct 1,190.9 (+15.0%) vs main; struct-weighted overall 877.4 (main 791.3) · decode-only --drafter dflash2-nvfp4: prose 451.5 / conv 565.9 / struct 1,197.5; overall 901.5 (main 789.2) · MTP prose 502.8 / conv 539.3 beats DF2 (note) — (c=1 only) prefill pp16K 17,789 / pp64K 18,528 tok/s (equal to main within noise) — 3,840/3,840 bit-exact vs --spec 0 · Item #244 · Item #234
RTX 5090 32 GB 32 GB GDDR7 (sm_120) qwen4-nvfp4 (6bd4e414) DFlash2 (df2_max_t=40,df2_solo_policy=0,q80p_2048=1 at 8K), 10,240/10,240 resident, --kv int8, --ple-io direct 589.1 tok/s calibrated decode (+9–12% vs 40b56029; 344.2 E2E) · 658.6 tok/s fixed-prompt bench_exact.py (prior 40b56029 pre-#1263 pack: 607.83) 598.1 (c=4) / 578.6 (c=8) cal decode (446.3 / 492.1 E2E) · 489.5 / 543.8 fixed-prompt (prior 40b56029: 485.12 / 546.78) 64K: 425.48 · 512K: 335.41 tok/s (Wave-4 receipt, df2_max_t=8) 21.4–21.7 GiB (8K) · 26.5 GiB (512K) 1024/1024 bit-exact + 1280/1280 zero_slot reset · Wave-8 Receipt · Prior 40b56029 receipt
RTX PRO 6000 96 GB 96 GB GDDR7 (sm_120) qwen4-nvfp4-pro6000 (6278d542 RC1 Unified; speed fields from 6fea4593, speed-neutral) Official #1263 pack: DFlash2 (--exp a3b_down_stream_min=65,df2_max_t=8,q80p_2048=0) or MTP (--drafter mtp), 10,240/10,240 resident, --kv int8, --ple-io direct 493.03 tok/s DFlash2 decode (329.32 E2E) · 481.31 MTP decode (323.24 E2E) (Tier-3 cold ABBA) 957.52 / 1,215.40 DFlash2 decode (485.78 / 551.71 E2E) · 1,707.09 c=32 / 2,114.45 c=64 decode (624.63 / 678.53 E2E) 131K: ~21.6K tok/s int8 QSA prefill (TTFT 6.06 s) · 32K: ~22.1K tok/s (TTFT 1.48 s) · c=32/64 at 16K ctx 23,126 MiB (8K) · 37,306 MiB (c=64, 0 OOMs) RC1: 1024/1024 solo + zero_slot, 512/512 c=4 BGEN, 32K QSA 128/128, c=64 partial-residency 4096/4096 + 2048/2048 slot reuse (spec=0, MTP, DFlash2) · RC1 receipt · 6fea4593 receipt · Prior 6bd4e414 receipt
RTX PRO 4500 32 GB 32 GB GDDR7 (sm_120) qwen4-nvfp4 (4e74c440) DFlash2 (df2_max_t=8,df2_solo_policy=0,q80p_2048=1; q80p_2048=0 for 32K c=4), 10,240/10,240 resident, --kv int8, --ple-io direct (<=26.6 GiB desktop cap) 358.30 tok/s (354.73 pooled) 523.00 tok/s (8k-c4 agg) 32K: 356.69 tok/s (c=1) · 491.33 tok/s (c=4 agg, q80p_2048=0) 24.7 GiB (8K) · 25.9 GiB (32K c=4, <=26.6 GiB) 512/512 bit-exact + zero_slot --deterministic-parity fix · Receipt
DGX Spark GB10 121 GiB 121 GiB LPDDR5X (sm_121) qwen4-nvfp4-gb10 (cea5baa9) Full-graph DFlash2, 10,240/10,240 resident, zero-copy --ple-io mapped, --exp q80p_2048=1 93.45 tok/s balanced default (Tier-3 cold ABBA, +16.3% vs 80.39 #1263 MTP; 61.81 agg) · 100.77 tok/s solo c=1 (a3b_down_stream_min=1000000) 91.63 (c=4, +8.4%) / 102.62 (c=8, +1.3%) tok/s 32K: 95.14 tok/s (TTFT 8.08 s, 4,062 tok/s prefill) · 128K: 90.75 tok/s (TTFT 35.74 s, 3,669 tok/s prefill; was 79.89) <=44.3 W · >=56.9 GiB free (128K) · 0 memguard kills 1536/1536 (3x512) exact greedy token IDs vs #1263 (af7153c7 --spec 0) · Tier-3 receipt · Solo receipt
RTX 5060 Ti 16 GB 16 GB GDDR7 (sm_120) qwen4-nvfp4-opt-candidates (6278d542 DFlash2 · 9e738488 MTP) 8K DFlash2 (--exp df2_max_t=8,a3b_down_stream_min=65, 6,300/6,200/5,600 slots for c=1/4/8) or built-in MTP (--spec 8); --mmap-experts, --kv int8 --kv-resident 0, --ple-io direct 127.65 tok/s DFlash2 (+35.4%, 73.86 E2E) · 82.36–142.69 tok/s MTP (70.10–73.74 plain, 400-tok cold runs) 181.43 / 218.82 tok/s DFlash2 c=4 / c=8 decode (100.37 / 109.79 E2E; c=8 +50.8%) · 128.88–135.88 tok/s (c=4 MTP) 32K: 82.61–139.20 tok/s (c=1), 115.94–133.60 (c=4) · 128K: 103.12 tok/s MTP (64.50 plain) <=14.4 GiB (14,766 MiB max) DFlash2: 384/384 solo + zero_slot exact, 512/512 c=4 A/A · DFlash2 receipt · MTP: 384/384 plain bit-exact · MTP receipt

[!NOTE] 16 GB DFlash2 status: 6278d542 inherits the upstream basalt main (9de6226b) 16 GB partial-residency fix, so 8K DFlash2 is now a verified 16 GB recipe (384/384 solo + zero_slot exact parity, 512/512 c=4 DFlash2 A/A, zero OOMs — receipt). At c=8 with df2_max_t=8, DFlash2 offers no drafts while all 8 streams are active. A pre-existing #1263-base c=4 --spec 0 batch drift on 16 GB partial residency is documented in the receipt. For 32K–128K context, keep the built-in MTP recipe (103.12 tok/s at 128K, <=14.4 GiB).


Upstream Credits & References

This work builds directly on the open-source ecosystem and would not exist without:

  • jesdga95/basalt main (9de6226b, rebased into our 6fea4593 champion, including the upstream 16 GB partial-residency fix) and PR #1263 (qwen4-35b) — upstream Qwen4-35B-A3B engine architecture and Blackwell kernel foundations:
    • 14ce5c12 — 2048-wide hc_fused_read
    • 828a8296 / a9e55be2 — GDN fused window & mid-chain
    • f6f13abe — split recurrence
    • fafc1e01 / 5612f23a — wide bf16 / Q6_K
    • 82e932df — side-by-side hc tiles
    • b26f3a34 — DFlash2 base integration
    • 57b47a91 / 053c9b92 — MTP draft vocabulary support
    • Upstream tiktoken tokenizer, vision, and chat protocol support
  • CallitaCrushes/blackwell-builder-lab (MIT License, Copyright (c) 2026 CallitaCrushes, commit 132aba88) — discovered the zero-compile --ple-io ram launch lever (recipe/launch_blackwell_5090_qwen4_nvfp4.sh), now the tools/start.sh --ple-io auto default on >= 64 GB RAM sm_120 hosts (verified bit-exact in Items #250 and #211; run without sudo/prlimit)
  • Qwen/Qwen4-35B-A3B — base model architecture and weights
  • Jesus Gulfo (jesdga / jesdga95/basalt) — official prebuilt single-file pack jesdga/Qwen4-35B-A3B-Basalt (Qwen4-35B-A3B-NVFP4.basalt, Apache-2.0): bundled-DFlash2 revision 85d2c8607e (SHA-256 40f7b2c0…a153dee9, default) and legacy #1263 revision 4c3f4dbf3b (SHA-256 1352133c…e41d625, zero-redownload upgrade path & GB10)
  • RadixArk/Qwen4-35B-A3B-NVFP4 — NVFP4 ModelOpt checkpoint (fallback source for convert.py)
  • RadixArk/Qwen4-35B-A3B-Dflash2 — DFlash2 speculative drafter weights (754 MiB; bundled inside pack 85d2c8607e, external for 4c3f4dbf3b)
  • Public engine fork (Maxrio9/basalt):
    • qwen4-nvfp4 (d3ddafb4) — primary sm_120 Unified RC2 + auto-default DFlash2 (RTX 5090 & RTX PRO 4500; 8K recipe fields measured on Wave-8 6bd4e414 / RC1 4e74c440)
    • qwen4-nvfp4-pro6000 (d3ddafb4) — RTX PRO 6000 96 GB Unified RC2 (built on RC2 stack 6278d542, Tier-3 qualified on official #1263 pack; supersedes Wave-8 + basalt main champion 6fea4593)
    • qwen4-nvfp4-gb10 (cea5baa9) — DGX Spark GB10 sm_121 #1263 rebase champion
    • qwen4-nvfp4-opt-candidates (6278d542; DFlash2 fields measured on 6278d542) — 16 GB RTX 5060 Ti Wave-8 + basalt main (9de6226b) 8K DFlash2 champion (128K MTP recipe measured on prior pin 9e738488)

Copy-Pasteable Per-Card Launch Recipes

[!NOTE] The sm_120 recipes below show --dflash2 /path/to/RadixArk--Qwen4-35B-A3B-Dflash2 as measured. With d3ddafb4 and the bundled-DF2 pack 85d2c8607e, drop that flag (keep --spec 8 and the --exp string): dflash2-nvfp4 is auto-selected and bit-exact with the external drafter. Keep it for the legacy 4c3f4dbf3b pack and on DGX Spark GB10 (cea5baa9). On a bundled pack, MTP needs an explicit --drafter mtp (as tools/start.sh --mode mtp and the 16 GB default do).

[!TIP] Zero-compile --ple-io ram recipe win for >= 64 GB host RAM (no rebuild, no sudo): on a discrete Blackwell host with at least 64 GB of system RAM, replace --ple-io direct with --ple-io ram in the sm_120 recipes below. Basalt stages the ~20.3 GiB PLE table in transparent-huge-page host RAM at startup (~3–9 s extra load; mlock soft-fails with a harmless warning at the default ulimit -l 8192, pages stay resident). Output is bit-exact.

  • RTX PRO 6000 96 GB (thinkstation, stock 600 W / clocks, 8K int8 cold ABBA vs --ple-io direct, every 95% CI > 0, Item #250 receipt, 15,104/15,104 exact): DFlash2 c=1/4/8/16/32/64 +3.33% / +4.92% / +3.05% / +3.51% / +2.60% / +1.85%; Plain +1.71% / +3.28% / +3.08% / +3.89% / +3.01% / +1.92% decode (+1.85%..+4.92% across all 12 cells).
  • RTX 5090 32 GB (system-a, stock 450 W, Item #211 receipt, 11,264/11,264 exact): smaller gains (+0.5% plain c=1, +0.5..+1.1% DF2 c=4..32 stream decode, E2E flat) on a host whose page cache already held most of the table.
  • tools/start.sh --ple-io auto (default) does this for you: on the 16gb, 32gb-5090, 32gb-pro4500 and 96gb tiers it picks ram when /proc/meminfo MemTotal >= 60 GiB (a 64 GB+ host) and direct otherwise; --tier spark (DGX Spark GB10 unified memory) always keeps --ple-io mapped. Force either mode with --ple-io ram|direct|mapped. Keep --ple-io direct on < 64 GB hosts.
  • Lever credit: CallitaCrushes/blackwell-builder-lab (MIT License, commit 132aba88); we run it without the upstream sudo -n prlimit --memlock=unlimited line.

1. RTX 5090 32 GB (sm_120)

Out of the box (d3ddafb4 + bundled-DF2 pack 85d2c8607e): bin/basalt serve --model Qwen4-35B-A3B-NVFP4.basalt --kv int8 already runs DFlash2 — on the official cold community-1 preset: prose 454.2 / conv 531.2 / struct 1,190.9 tok/s (+11.4% / +5.8% / +15.0% vs upstream main; struct-weighted overall 877.4). For prose-heavy chat, built-in MTP (--drafter mtp) is still faster on prose (502.8) — see the per-workload note. With the legacy 4c3f4dbf3b pack, add --dflash2 /path/to/RadixArk--Qwen4-35B-A3B-Dflash2 (bit-exact).

8K Wave-8 6bd4e414 (direct + int8, df2_max_t=40,df2_solo_policy=0,q80p_2048=1: +9–12% c=1 decode over 40b56029; 589.1 cal / 658.6 fixed-prompt c=1, 598.1 c=4, 578.6 c=8 cal decode; prior 40b56029 pre-#1263 pack: 607.83 c=1 / 485.12 c=4 / 546.78 c=8):

CUDA_DEVICE_ORDER=PCI_BUS_ID CUDA_VISIBLE_DEVICES=0 \
bin/basalt serve --model Qwen4-35B-A3B-NVFP4.basalt \
  --host 127.0.0.1 --port 8080 \
  --expert-profile configs/profiles/qwen4exp-40x256.prof \
  --resident-experts --kv int8 --ple-io direct \
  --spec 8 \
  --exp df2_max_t=40,df2_solo_policy=0,q80p_2048=1 \
  --max-context 8704 --max-running 8 --prompt-cache 0

(Bundled pack 85d2c8607e on d3ddafb4: DFlash2 is auto-selected. Legacy 4c3f4dbf3b pack: add --dflash2 /path/to/RadixArk--Qwen4-35B-A3B-Dflash2. For 64K / 512K the receipts were measured with df2_max_t=8,df2_solo_policy=0; tools/start.sh switches to it above 8,704 context. For 512K context on 32 GB at 335.41 tok/s / 26.5 GiB peak, set --max-context 524288 --max-running 1 --kv-resident 0.)

2. RTX PRO 6000 Blackwell 96 GB (sm_120)

Unified RC2 (d3ddafb4, on the RC2 stack 6278d542): calibrated 8K 2,392.28 tok/s c=64 / 606.84 tok/s c=1 DF2, 35,872/35,872 bit-exact (RC2 receipt). Qwen4 RC1 Unified 6278d542 on official #1263 pack passed full Tier-3 qualification (receipt): 100% exact greedy parity (solo, c=4 BGEN, 32K QSA, c=64 partial residency), ~22.1K / ~21.6K tok/s 32K / 131K int8 QSA prefill (TTFT 1.48 s / 6.06 s), and 493.02 / 227.66 / 151.50 tok/s c=1/4/8 8K stream decode at 23,126 MiB — speed-neutral vs the Wave-8 + basalt main champion 6fea4593, whose Tier-3 numbers follow. DFlash2 hits 493.03 tok/s c=1 decode (329.32 E2E), 957.52 c=4 (485.78 E2E), 1,215.40 tok/s c=8 (551.71 E2E) at 23,126 MiB VRAM. MTP (--drafter mtp, same --exp) measures 481.31 c=1 / 1,174.87 c=8 decode at 23,032 MiB:

CUDA_DEVICE_ORDER=PCI_BUS_ID CUDA_VISIBLE_DEVICES=0 \
bin/basalt serve --model Qwen4-35B-A3B-NVFP4.basalt \
  --host 127.0.0.1 --port 8080 \
  --expert-profile configs/profiles/qwen4exp-40x256.prof \
  --resident-experts --expert-cache 10240 --adapt-swaps 0 --peer-adapt-swaps 0 \
  --kv int8 --ple-io direct \
  --spec 8 --dflash2 /path/to/RadixArk--Qwen4-35B-A3B-Dflash2 \
  --exp a3b_down_stream_min=65,df2_max_t=8,q80p_2048=0 \
  --max-context 8704 --max-running 8 --prompt-cache 0

(High-concurrency serving: --max-context 16384 --max-running 64 with the same --exp reaches 1,707.09 tok/s c=32 and 2,114.45 tok/s c=64 agg decode at 37,306 MiB peak with 0 OOMs.)

3. RTX PRO 4500 Blackwell 32 GB Workstation (sm_120)

Wave-8 4e74c440 (358.30 tok/s 8k-c1 / 354.73 pooled, 523.00 tok/s 8k-c4 agg, 356.69 tok/s 32k-c1, 491.33 tok/s 32k-c4 agg) — keeps board VRAM <= 26.6 GiB so desktop sessions stay responsive while holding all 10,240/10,240 experts resident:

CUDA_DEVICE_ORDER=PCI_BUS_ID CUDA_VISIBLE_DEVICES=0 \
bin/basalt serve --model Qwen4-35B-A3B-NVFP4.basalt \
  --host 127.0.0.1 --port 8080 \
  --expert-profile configs/profiles/qwen4exp-40x256.prof \
  --resident-experts --expert-cache 10240 --kv int8 --ple-io direct \
  --vram-reserve-mib 6200 --ram-reserve-mib 4096 \
  --spec 8 --dflash2 /path/to/RadixArk--Qwen4-35B-A3B-Dflash2 \
  --exp df2_max_t=8,df2_solo_policy=0,q80p_2048=1 \
  --max-context 33024 --max-running 4 --prompt-cache 0

(For 32K c=4 at 491.33 tok/s agg, switch to --exp df2_max_t=8,df2_solo_policy=0,q80p_2048=0 --vram-reserve-mib 5600.)

4. DGX Spark GB10 121 GiB (sm_121, aarch64)

Uses zero-copy unified-memory PLE (--ple-io mapped), full-graph DFlash2, and --exp q80p_2048=1 (Tier-3 balanced default: 93.45 tok/s c=1, 91.63 tok/s c=4 agg, 102.62 tok/s c=8 agg at 8K; 95.14 tok/s at 32K; 90.75 tok/s at 128K — receipt):

bin/basalt serve --model Qwen4-35B-A3B-NVFP4.basalt \
  --host 127.0.0.1 --port 8080 \
  --expert-profile configs/profiles/qwen4exp-40x256.prof \
  --ple-io mapped --expert-cache 10240 --vram-elastic \
  --adapt-swaps 0 --peer-adapt-swaps 0 --prompt-cache 0 \
  --spec 8 --dflash2 /path/to/RadixArk--Qwen4-35B-A3B-Dflash2 \
  --exp q80p_2048=1 \
  --max-context 8704 --max-running 8

(Solo c=1 setting: 100.77 tok/s at 8K with --exp q80p_2048=1,a3b_down_stream_min=1000000 — or simply --tier spark --max-running 1 in tools/start.sh. For 128K, use --max-context 135168 --max-running 1: 90.75 tok/s c=1 with >= 56.9 GiB host MemAvailable left.)

5. RTX 5060 Ti 16 GB (sm_120)

8K DFlash2 (6278d542, new): 127.65 tok/s c=1 decode (+35.4%), 181.43 c=4, 218.82 c=8 (+50.8%) agg decode — 384/384 solo + zero_slot exact parity (receipt):

CUDA_DEVICE_ORDER=PCI_BUS_ID CUDA_VISIBLE_DEVICES=0 \
bin/basalt serve --model Qwen4-35B-A3B-NVFP4.basalt \
  --host 127.0.0.1 --port 8080 \
  --expert-profile configs/profiles/qwen4exp-40x256.prof \
  --mmap-experts --kv int8 --kv-resident 0 --ple-io direct \
  --expert-cache 6300 --pool-workers 8 --adapt-swaps 0 --peer-adapt-swaps 0 --prefill-cpu-share 0 \
  --vram-reserve-mib 1024 --ram-reserve-mib 6144 --checkpoint-pool-mib 0 \
  --prompt-cache 0 --spec 8 --dflash2 /path/to/RadixArk--Qwen4-35B-A3B-Dflash2 \
  --exp df2_max_t=8,a3b_down_stream_min=65 \
  --max-context 8704 --max-running 1

(For c=4 use --expert-cache 6200 --max-running 4; for c=8 use --expert-cache 5600 --max-running 8. tools/start.sh --tier 16gb --mode dflash2 picks these automatically.)

128K MTP (long context): real 16 GB VRAM with memory-mapped partial expert residency and deterministic --kv-resident 0 (103.12 tok/s at 128K, <=14.4 GiB):

CUDA_DEVICE_ORDER=PCI_BUS_ID CUDA_VISIBLE_DEVICES=0 \
bin/basalt serve --model Qwen4-35B-A3B-NVFP4.basalt \
  --host 127.0.0.1 --port 8080 \
  --expert-profile configs/profiles/qwen4exp-40x256.prof \
  --mmap-experts --kv int8 --kv-resident 0 --ple-io direct \
  --expert-cache 6400 --pool-workers 8 --adapt-swaps 0 --prefill-cpu-share 0 \
  --vram-reserve-mib 1024 --ram-reserve-mib 6144 --checkpoint-pool-mib 0 \
  --prompt-cache 0 --spec 8 --drafter mtp --max-context 8704 --max-running 1

(--drafter mtp keeps MTP on the bundled-DF2 pack, where 6278d542 would otherwise auto-select DFlash2. For 32K c=1 MTP use --expert-cache 6000 --max-context 33280; for 128K c=1 MTP use --expert-cache 5700 --max-context 131072; for c=4 MTP use --expert-cache 5600 --max-running 4.)


Benchmark & Verification Hygiene

HTTP --answer-room 0 Hygiene

Basalt's OpenAI-compatible HTTP server (bin/basalt serve / serve.server) defaults to --answer-room auto. On 400-token reasoning completions with --prompt-cache 0, --answer-room auto triggers a 200-token thinking cutoff mid-stream and forces a full ~8,392-token re-prefill per request, distorting both TTFT and decode tok/s. Always pass --answer-room 0 when running HTTP benchmarks, and verify no --decode-timing or --profile instrumentation is active on timed arms.

Stock Clocks & Bit-Exact Greedy Parity Rules

Every recipe promoted into this repository satisfies:

  1. Stock factory clocks: 0 MHz core/memory overclock offsets, factory power limit (disclosed per card in receipts), and NVML telemetry recorded across timed arms.
  2. Bit-exact greedy token-ID parity (temperature = 0): Every promoted engine build matches 100% of raw greedy token IDs against both pinned control 9e738488 and its own --spec 0 plain baseline across serial (c=1) and concurrent (c=4 / c=8) fixtures at full residency (10,240/10,240 slots), plus deterministic low-cache checks where applicable.
  3. Cold matched A/B/A or A/B/B/A brackets: Candidate speedups are only promoted when they beat both flanking control legs outside run-to-run drift.
  4. Clean-release separation: Only reproducible configs, pinned engine references, SHA-256 checksums, and independently verified receipts belong in this repository. Private quantization internals and calibration datasets stay strictly in private lab repositories.

Repository Layout

Explorer des projets similaires

Chargement…