Kaleto commited on
Commit
235ace2
·
verified ·
1 Parent(s): aa5dc4c

README: W4A4 vs. W4A16 serving on GB10, point to branch w4a16

Browse files
Files changed (1) hide show
  1. README.md +19 -3
README.md CHANGED
@@ -26,11 +26,27 @@ Cohere2 has a few architectural quirks — tied embeddings, `layer_norm_eps`, hy
26
 
27
  ---
28
 
29
- ## Serving mode on Blackwell (GB10)
30
 
31
- On DGX Spark / GB10 with vLLM, this model serves as **weight-only FP4**: the 4-bit NVFP4 weights are dequantized for each matmul; activations stay BF16. vLLM 0.20.x has no FP4-activation GEMM kernel for Blackwell (sm_120/121), so the NVFP4 path is weight-only regardless of the `input_activations` field in `config.json` — on this stack a W4A4-config and a W4A16-config produce bit-identical output. This is the standard, and currently highest-quality, NVFP4 serving mode on Spark. On an FP4-activation-capable stack (TensorRT-LLM, or a future vLLM with a Blackwell FP4 GEMM) the same weights could run as true W4A4.
32
 
33
- A practical consequence: because serving is weight-only, the **calibration dataset does not affect the served output** — the per-tensor weight scales are determined by the weights alone. The calibration pass below is part of the standard modelopt flow but is effectively output-invariant for this serving mode.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  ---
36
 
 
26
 
27
  ---
28
 
29
+ ## Serving mode on Blackwell (GB10): W4A4 (`main`) vs. W4A16 (branch `w4a16`)
30
 
31
+ *Updated 2026-11-15.* An earlier version of this card said the model always runs weight-only on GB10. That is no longer true: current vLLM (tested: 0.31.0) serves `quant_algo: NVFP4` on GB10 as **W4A4** (`FlashInferCutlassNvFp4LinearKernel`) — activations are quantized to FP4 at runtime.
32
 
33
+ The branch **`w4a16`** holds the identical weights with a single config change: `quant_algo: W4A16_NVFP4` in `config.json` and `hf_quant_config.json`. vLLM then keeps activations in BF16 (`MarlinNvFp4LinearKernel`), which is clearly closer to the original model.
34
+
35
+ Top-50 KLD against the BF16 model, GB10 + vLLM 0.31.0, 72 held-out sequences / 276k tokens (news, wiki EN/DE, code, chat, roleplay):
36
+
37
+ | Model | W4A4 (`main`) | W4A16 (`w4a16`) |
38
+ |---|---|---|
39
+ | Qwen3.5-9B-heretic-v2 (dense MLP) | 0.179 (median 0.028) | **0.129** (median 0.015) |
40
+ | Qwen3.6-35B-A3B (MoE, same pipeline) | 0.110 (median 0.012) | **0.076** (median 0.0065) |
41
+
42
+ Speed on a single GB10 (Fallen-Command-111B, dense): decode is unchanged (3.3 tok/s single stream, 13.2 tok/s with 4 streams), prefill drops from 654 to 228 tok/s. For MoE models the prefill cost was only −9 %. Pick `w4a16` when output quality matters more than time-to-first-token; `--enable-prefix-caching` hides most of the prefill cost for repeated system prompts.
43
+
44
+ ```bash
45
+ vllm serve Kaleto/Fallen-Command-111B-NVFP4 --revision w4a16 ...
46
+ # or download it: hf download Kaleto/Fallen-Command-111B-NVFP4 --revision w4a16 --local-dir ...
47
+ ```
48
+
49
+ With W4A16 the calibration data does not influence the served output at all — NVFP4 weight scales depend only on the weights.
50
 
51
  ---
52