Gemma 4 NVFP4 for Blackwell
Collection
Native FP4 quants of Gemma 4 31B (QAT) + MTP drafts for Blackwell. Two generations: absmax and the newer MSE-scaled pair. • 4 items • Updated
The speculative-decoding draft companion to
gemma-4-31B-it-qat-NVFP4-mse-Blackwell,
re-quantized with MSE-based weight scaling. It replaces my earlier
absmax version
the same way the main model does: per-block scales picked by reconstruction
error instead of the block's largest value, via ModelOpt 0.44.0
(--qformat nvfp4_mse). The MTP handshake layers (pre_projection,
post_projection) stay in high precision — quantizing those breaks the
draft's connection to the backbone's KV states.
--speculative-model flags): this NVFP4 draft
works. That's the setup the serving example below uses.speculative-config with method: gemma4_mtp): the MTP
proposer loads the draft without applying its quant config, so a packed
FP4 draft dies with a tensor-size error. Use the unquantized BF16 assistant
(google/gemma-4-31B-it-qat-q4_0-unquantized-assistant, 927 MB) there
instead. It's small enough that the quantization barely matters for VRAM.Measured with the MSE main model as target on an RTX 6000 Blackwell (300-token generations, temp 0.2): 23.0 tok/s without a draft, 52.1 tok/s with, ~54% token acceptance (78% at position 0).
vllm serve melcheikh/gemma-4-31B-it-qat-NVFP4-mse-Blackwell \
--quantization modelopt_fp4 \
--kv-cache-dtype fp8 \
--speculative-model melcheikh/gemma-4-31B-it-qat-assistant-NVFP4-mse-Blackwell \
--num-speculative-tokens 3
Gemma Terms of Use, same as the base model.
Base model
google/gemma-4-31B-it-assistant