Views
No views yet
nvfp4-pack-quantized (compressed-tensors) format for high-throughput inference with vLLM
on NVIDIA Blackwell GPUs. Ships ready to serve at ~30 GB on disk.| Component | Precision |
|---|---|
MLP / FFN linears (gate_proj, up_proj, down_proj) | NVFP4 (W4A4, group size 16, FP8 e4m3 block scales) |
Attention (q/k/v/o_proj) | BF16 |
Embeddings, lm_head, norms | BF16 |
| Vision tower (~550M) | BF16 |
| KV cache (serve-time) | FP8 |
main), transformers 5.11, compressed-tensors 0.17.NVFP4 (weights + activations 4-bit), targets: Linear, with attention /
vision / embeddings / lm_head held out via ignore.HuggingFaceH4/ultrachat_200k (train_sft),
chat-template formatted, max sequence length 2048. Weight observer memoryless_minmax,
activation observer static_minmax.recipe.yaml in this repo for the exact modifier configuration.Using FlashInferCutlassNvFp4LinearKernel for NVFP4 GEMM and not a Marlin fallback).1vllm serve <path-or-repo>/gemma-4-31b-it-heretic-ara-NVFP4 \
2 --kv-cache-dtype fp8 \
3 --gpu-memory-utilization 0.90 \
4 --reasoning-parser gemma4 \
5 --tool-call-parser gemma4 \
6 --enable-auto-tool-choice \
7 --limit-mm-per-prompt '{"image": 2}'temperature=1.0, top_p=0.95, top_k=64); these ship in
generation_config.json. The model forces the TRITON_ATTN backend due to Gemma-4's
heterogeneous attention head dimensions — this is expected, not an error."method":"mtp" —
without it, vLLM treats the assistant as a generic draft model and fails on this multimodal
target: --speculative-config '{"method":"mtp","model":"google/gemma-4-31B-it-assistant","num_speculative_tokens":2}'ignore patchquantization_config.ignore list in config.json includes a hand-added
re:.*self_attn.* regex. This is required for vLLM: llm-compressor resolves ignore regexes
into literal module names at save time, and those literals don't match the names vLLM derives
for the fused qkv_proj, causing a "Found a different quantization schemes" error at load.
The regex makes vLLM treat all attention projections as uniformly BF16. Do not remove it.Fill in after running your own eval against the BF16 baseline.
| Metric | This NVFP4 model | BF16 baseline |
|---|---|---|
| Refusal rate (Heretic eval) | TODO | 5/100 |
| KL divergence vs. google/gemma-4-31b-it | TODO | 0.0120 |
| MMLU-Pro / GSM8K / (your suite) | TODO | TODO |
num_speculative_tokens=2, mean acceptance
length ~2.3), vs. ~25–35 tok/s without. Roughly 2–2.5×.