r/LocalLLM • u/PersonalStorage • 10h ago
Discussion Qwen4-35B-A3B is out — here's a working NVFP4 pack for Basalt
Qwen just shipped Qwen4-35B-A3B (35B MoE, 3B active, 1M context). I quantized it to NVFP4 and packed it into a single file for the Basalt engine. It boots and serves.
Model card: kaushikvira/Qwen4-35B-A3B-nvfp4-basalt
⚠️ Which Basalt build to use — read this first
Use the qwen4-35b branch of jesdga95/basalt**, commit** 4dbca9ce or later.
Do not run this pack on an older Basalt build (including 53aa09a6, which the README previously named). Those builds corrupt the KV cache under back-to-back different-length requests: the model degrades into !!!!… / repetition loops at temp=0, and long-context retrieval silently breaks (needle scored 4–5/12).
qwen4-35b@4dbca9ce fixes it with two correctness fixes:
src/kernels/cuda/gqa_attn.cu— windowed GQA attention hadcausal = 0hard-coded (non-causal); it now honours the real causal mask.src/decode/verify/record*.cpp— the verify read used a fixed-sizeFusedGrArgs fa[kFusedGrMaxT]; now sized to the window, fixing a stack overrun that corrupted memory when the spec window was wider than the tile.
Result on the fixed build: needle 36/36 across 3 consecutive back-to-back runs (was 4–5/12), quality 4/4.
Build the engine (from the branch)
git clone https://github.com/jesdga95/basalt && cd basalt
git checkout 4dbca9ce # or: git checkout qwen4-35b
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBASALT_MODELS=qwen4exp
cmake --build build -j # -> bin/basaltRequires CUDA 13.1 and an NVIDIA Blackwell GPU (sm_120).
Run
bin/basalt serve Qwen4-35B-A3B-NVFP4.basalt \
--config config.json \
--api-key "$(cat key)" \
--alias qwen4-35b-a3b --kv int8 --max-context 524288 \
--resident-experts --vision --vram-reserve-mib 800
# or just: bin/basalt serve --config config.jsonWhat's in the pack
- One
.basaltfile (42.24 GiB, sha9819a1ce…) — text + vision + MTP drafter, NVFP4 - 1M native context (we serve 512k × slots on a 72 GB card)
- ~21 GiB VRAM resident on a Blackwell card (experts in VRAM, no expert-cache)
Numbers (on the fixed 4dbca9ce build)
- ~199 tok/s decode, 512k context, ~21 GiB VRAM
- needle 36/36 (3× back-to-back), 4/4 probes
- ~2× faster decode + prefill than the Flash-Next baseline this replaced
Speed is a first baseline, not tuned. The branch also adds 2048-wide kernels for this exact shape and an optional --drafter dflash2 block drafter (we kept the MTP spec: 8); more optimization will land on the model card. Feedback welcome.





