Decisions in Practice · Part 1 of 2
Four bits, one GPU: NVFP4 deciders and a Rust harness
Quantizing pplx-decider v1.1 and v1.2 to NVFP4 so a 27B decider fits one RTX 5090, and serving it from hand-written CUDA kernels called from Rust.
17 Nov 2026
Four bits, one GPU
Decision Models ended with a “build your own” path (Part 8). This companion series follows one person down it. Richard quantized Perplexity's pplx-decider-v1.1-27b and pplx-decider-v1.2 to NVFP4 in October, then wrote decisions-rust, a server that runs the forward pass as hand-written CUDA kernels called from Rust instead of PyTorch.
A decider stops after prefill: it reads the prompt once and turns the last hidden state into probabilities over a fixed set of answers, with no decode loop (Part 1). That makes it a good fit for low precision. The question is whether 27 billion parameters fit on one consumer card. In BF16 the v1.1 checkpoint's shards are 52.17 GB (48.59 GiB)independently measured. Richard's NVFP4 checkpoint is 25.16 GB (23.43 GiB)independently measured, which is 48.2%our arithmetic of BF16. Once the Rust server has converted a few layers at load, about 19.6 GBour arithmetic of weights sit on a 32 GBvendor-claimed RTX 5090.
Labels used throughout: vendor-claimed (NVIDIA, the OCP spec, model cards, project files), independently measured (Hugging Face and Docker Hub metadata), measured by Richard (the decisions-rust README's RTX 5090 runs), our arithmetic, not published and secondary. Pages were fetched 17 November 2026, about 11:40 PM–midnight ET.
NVFP4, MXFP4 and FP8
All three formats solve the same problem. A 4-bit (or 8-bit) number can't cover the range of a weight matrix on its own, so groups of values share a scale. They differ in the size of the group and in how precisely the scale is stored.
| Element | E2M1: 1 sign, 2 exponent, 1 mantissa bit; values 0, 0.5, 1, 1.5, 2, 3, 4, 6 |
|---|---|
| Block | 16 values |
| Scale | FP8 E4M3 per block, plus one FP32 scale per tensor |
| Bits per value | 4.5vendor-claimed NVIDIA: “one 4-bit value plus minor overhead of one FP8 scale per 16 values (4.5 bits per value)”. |
| Tensor cores | Blackwell (fifth-generation Tensor Cores) |
| Source | developer.nvidia.com |
NVFP4 (NVIDIA): E2M1 values (magnitudes 0, 0.5, 1, 1.5, 2, 3, 4, 6), one E4M3 scale per 16 valuesvendor-claimed, and one FP32 scale per tensor, for 4.5 bits per valuevendor-claimed. NVIDIA puts the memory saving at about 3.5× vs FP16 and 1.8× vs FP8vendor-claimed. MXFP4 (OCP MX v1.0): the same E2M1 element, but a 32-valuevendor-claimed block and an E8M0vendor-claimed scale, a pure power of two, so 4.25 bits per valueour arithmetic. FP8 E4M3: 8 bits per value, three mantissa bits, largest normal ±448, with a scale per tensor or per row.
cuBLAS exposes the two block formats as separate scaling modes: VEC16_UE4M3 for FP4 and VEC32_UE8M0 for FP8 block scaling (cuBLAS docs). The PTX ISA has a matching kind::mxf4nvf4 tensor-core instruction and defines ue4m3 and ue8m0 scale types. NVIDIA's case for NVFP4 over MXFP4 is the smaller block and the finer scale. A power-of-two scale can only land on the nearest 2n, and a large value in a 32-value block squashes 31 neighbours instead of 15.
| Format | Block scale(s) | Bits / value | Mean squared error | Non-zero values flushed to 0 |
|---|---|---|---|---|
| NVFP4 | E4M3 448.0 ÷ FP32 6720 · E4M3 44.00 ÷ FP32 6720 | 4.5 | 3.73e-5 | 7 of 32 |
| MXFP4 | E8M0 2^-4 | 4.25 | 8.36e-5 | 12 of 32 |
| FP8 (E4M3) | FP32 0.0008929 | 8 | 5.29e-7 | 0 of 32 |
NVIDIA's accuracy evidence (DeepSeek-R1-0528 within about 1% of FP8 on its evaluations) is vendor-claimed and isn't about deciders. It suggests what to expect, but it isn't a measurement of these models.
What four bits buy on Blackwell
Four bits pay twice on Blackwell. There are fewer bytes to stream: every pass reads every weight once. And there's faster arithmetic: the fifth-generation tensor cores multiply FP4 natively, with the block scales applied in hardware (NVIDIA calls this micro-tensor scaling). The RTX Blackwell whitepaper lists the RTX 5090 at 1,676 dense FP4 TFLOPSvendor-claimed, 419 FP8 (FP32 accumulate)vendor-claimed, 209.5 BF16vendor-claimed and 1,792 GB/svendor-claimed. The spec page's “3,352 AI TOPS” is the FP4 figure with sparsity.
Which advantage matters depends on the length of the pass. A matmul reads its weights once and does 2 × parameters × tokens operations. Below a certain token count, the weight read takes longer than the arithmetic. For NVFP4 on a 5090 that crossover is about 263 tokensour arithmetic. Short decider prompts are bandwidth-bound, so the 4.5-bit bytes are what help. Long ones are compute-bound, so the FP4 rate is what helps.
At 3,400 tokens the NVFP4 matmuls have a floor of ≈ 76 msour arithmetic. Run the same layers in FP8 and the floor becomes ≈ 305 msour arithmetic, more than Richard's whole measured pass of 266 msmeasured by Richard. For the B200 we divided the DGX B200 figures by eight: about 9 PFLOPS FP4, 4.5 PFLOPS FP8, 8 TB/s, 180 GBour arithmetic per GPU.
The recipe, and what stays BF16
Every quant used the same llm-compressor recipe (recipe.yaml):
QuantizationModifier:
targets: [Linear]
ignore: ['re:.*visual.*', 're:.*linear_attn.*']
scheme: NVFP4
requires_calibration_data: true
The config.json records the result in compressed-tensors format (nvfp4-pack-quantized). Weights are FP4 in groups of 16 with E4M3 scales. Activations are also FP4, with dynamic local scales computed at run time. The KV cache isn't quantized, and 350 modules are on the ignore list vendor-claimed. The calibration dataset and sample count aren't recorded anywhere not published.
DeltaNet stays BF16. In Qwen3.8-27B, 48 of the 64 layers are Gated DeltaNet layers (Part 6), and their projections hold 5,560,074,240 parametersour arithmetic, 21% of the model. In BF16 they take 11.12 GBour arithmetic; in NVFP4 they would take about 3.13 GBour arithmetic. The recipe doesn't say why they were left alone. It is the same ignore list llm-compressor ships in its own Qwen3.5 and Qwen3-Next NVFP4 examples (re:.linear_attn.), which don't explain it either not published. A plausible reason, and only our reading: these projections feed a recurrence that carries state across the whole prompt, so errors can compound rather than stay local.
The vision tower stays BF16, as llm-compressor's guidance says to do for vision towers. It is small: 460,730,096 parametersour arithmetic, under 2% of the model. Quantizing it would save about 0.66 GBour arithmetic. Embeddings and norms aren't Linear layers, so targets: [Linear] never touches them. The 255-row decision head ships separately in readout.safetensors, still in BF16 (2.6 MB).
Fitting a 27B decider on one RTX 5090
Toggle each layer group between formats and compare the total with an RTX 5090 and a B200. The groups come from the checkpoint's own safetensors headers, and their parameters sum exactly to Part 6's 26,085,330,160independently measured.
| Layer group | Parameters | Format | GB |
|---|---|---|---|
MLP (gate, up, down) × 64 layers 5120 → 17408 → 5120 in every layer | 17,112,760,320 | as in the checkpoint | 9.63 |
Full attention (q, k, v, o) × 16 layers the noncausal layers, every fourth | 1,677,721,600 | as in the checkpoint | 0.94 |
Gated DeltaNet projections × 48 layers in_proj_qkv, in_proj_z, out_proj, in_proj_a, in_proj_b | 5,560,074,240 | as in the checkpoint | 11.12 |
Token embeddings [248320, 5120] | 1,271,398,400 | as in the checkpoint | 2.54 |
Vision tower (27 blocks + merger) 460,730,096 parameters, 457,666,560 of them in Linear layers | 460,730,096 | as in the checkpoint | 0.92 |
Norms, conv, gates' biases RMSNorm weights, DeltaNet conv1d, A_log, dt_bias, head norms | 2,645,504 | as in the checkpoint | 0.01 |
BF16 doesn't fit. Richard's checkpoint is 25.16 GBindependently measured. As the Rust server holds it, it is about 19.6 GBour arithmetic, leaving roughly 12 GB for activations and workspace. An all-FP8 model (about 26.1 GBour arithmetic) would also squeeze in on paper, with about 6 GB to spare. So four bits aren't strictly what makes it fit. They're what leaves room for long batches (the default allows 16,384 tokens per batch), and what unlocks the FP4 tensor cores. If free memory is short, the server switches to a low-memory mode: embeddings on the CPU and no vision tower (device.rs).
The shelf: October 5 to November 1
The Perplexity quants came within days of each release: v1.1 about three days after Perplexity published it, v1.2 about 2.7 days after. The two NVFP4 repos have byte-identical shard sizes but different hashes independently measured, because it's the same recipe on the same architecture with different weights. v1.2 is the checkpoint the Rust harness serves. Click any point.
Other deciders I quantized (all Apache-2.0, same tooling):
| Quant | Upstream | Base | Published |
|---|---|---|---|
| d3-NVFP4 | vllm-sr/d3 | Qwen3.8-27B | 11 Oct 2026 |
| d3-turbo-NVFP4 | vllm-sr/d3-turbo | not declared (Qwen3_5Model) | 20 Oct 2026 |
| KnowLine-31B-Gen1-NVFP4 | PelaAI/KnowLine-31B-Gen1 | Gemma-4-31B-it | 1 Nov 2026 |
Why a Rust harness
The README gives the reason: the Python server launches “~1,500 small kernels per pass”, pads mixed-length batches, and re-tunes Triton kernels “for minutes at every start” vendor-claimed. decisions-rust keeps that server's HTTP contract (/v1/systemone and /v1/decisions, Bearer auth, the same response) and replaces everything below it:
- A token-exact protocol port. The prompt builder is checked against 156 requests recorded from the Python encoder.
- Packed sequences and continuous batching, so there's no padding to compute.
- Fused quantization. RMSNorm, residual add and SiLU-gate are fused with the NVFP4 or FP8 activation quantization that follows them.
- cuBLASLt for the NVFP4 block-scaled and FP8 matmuls, with plans cached per shape, algorithms autotuned at warm-up, and the tuned choices kept on the volume.
- Non-causal attention. pplx-decider lifts the causal mask in its 16 full-attention layers (Part 6), so a stock causal kernel would give wrong answers.
- The gated delta rule on the tensor cores, in flash-linear-attention's three-kernel structure.
- CUDA graphs of the text layers, one per warmed bucket, replacing “some 700 kernel launches”.
It runs on Blackwell only: the image builds for sm_100 (B200/B300) and sm_120 (RTX 5090, RTX PRO 6000). All 23 commits landed between 4:19 PM and 11:04 PM EDT on 31 October.
Is it faithful, and is it fast?
Richard checked the port with compare_servers.py, which sends the same decisions to both servers. It fails if any top answer changes or if a probability moves more than 0.2. He also checked accuracy on 316 labeled decisions. Speed is reported as server-side medians on one RTX 5090.
The headline numbers, all measured by Richard: 315/316measured by Richard decisions agree with Python; 96.2% vs 96.5%measured by Richard accuracy; 266 ms vs ~540 msmeasured by Richard on a 3,400-token pass; 22 msmeasured by Richard on a 135-token pass; ~80 smeasured by Richard startup. The RunPod page sums it up as “roughly 2× on many-question requests and ~50% on long single-question passes”. Read the second figure as about half the time, which is what 266 vs ~540 ms means.
Run it yourself: Docker and RunPod
The image is aigpu/decide-in-rust: 16 tags from 1.0.0 to 1.3.3, pushed on 31 October, each about 1.99 GBindependently measured compressed, linux/amd64 only, with no latest tag. The runtime stage has Python and huggingface_hub to fetch the checkpoint, and no torch. The RunPod template (“Rust Decider - pplx-decider-v1.2-NVFP4”) uses image 1.3.3 with a 30 GBvendor-claimed volume and a 5 GB container disk. The first start downloads about 25 GB to the volume. The request body is the same /v1/systemone shape as Part 8's request builder (Part 8).
# RunPod template: image aigpu/decide-in-rust:1.3.3, volume 30 GB at /workspace, container disk 5 GB, HTTP port 8000 AUTOJEV_API_KEY=<your-key> DECISION_MODEL_ID=machinez/pplx-decider-v1.2-NVFP4 DECISION_MODEL_REVISION=fdeb7a9694eb633c29103f7a39181f0bda2fa0f9
curl -s https://<pod-host>:8000/v1/systemone \
-H "Authorization: Bearer $AUTOJEV_API_KEY" -H "Content-Type: application/json" \
-d '{"state": "My integration keeps failing. Please help.",
"questions": {"kind": {"type": "choice", "instructions": "What kind of request is this?",
"criteria": {"bug": "Something is broken", "billing": "Money or invoices", "other": "Anything else"}},
"needs_engineer": {"type": "noul", "instructions": "Does this need an engineer to look at it?"}}}'What we don't know yet
- NVFP4 vs BF16 accuracy, for any of the quants not published No card, config or README states one. The 96.2% / 96.5% figures compare two servers on the same NVFP4 checkpoint.
- Calibration data and sample count not published recipe.yaml says requires_calibration_data: true but names no dataset.
- The 316 labeled decisions not published The set is not in the repo, so the agreement can't be re-run by readers.
- Python vs Rust per-item probabilities not published Only the summary (max 0.07, mean 0.02 in Phase 2) is published.
- GPU memory used at runtime (activations, workspace) not published The fit explorer counts weights only; the server keeps 4 GiB headroom before loading embeddings and vision.
- Which pass length the time profile describes not published README: “a long pass”.
- Why the recipe keeps DeltaNet in BF16 not published The ignore list matches llm-compressor's own Qwen3.5 / Qwen3-Next examples, which don't give a reason either.
So is NVFP4 good enough for a decider?
Why not just use FP8 everywhere?
Does this work with v1.1, d3 or KnowLine?
Next: when the prompt is the API
Perplexity's next version, pplx-decider v1.3, keeps the shape of the weights but changes the contract around them. That's enough to stop a server that was faithful to v1.2. Part 2 covers what broke, why it matters to anyone wrapping a decider, and how to migrate.
Part 2 also covers Locate and batch invariance.
Related reading in Decision Models:
- Part 1: What a decision model is, and when to use oneginsberg.si
- Part 5: Reading the Decision Index without mixing editionsginsberg.si
- Part 6: Inside pplx-decider: from Qwen3.8-27B to a deciderginsberg.si
- Part 7: Gemma LoRAs and three kinds of hybridginsberg.si
- Part 8: Building or migrating your own decision pathginsberg.si
Sources
Fetched 17 November 2026, about 11:40 PM–midnight ET. Every link was live-checked then. Repo files are linked at commit 79dc968, the last one before Part 2's scope. The Hugging Face repos: v1.1 NVFP4, v1.2 NVFP4.
- Introducing NVFP4 for Efficient and Accurate Low-Precision Inferencedeveloper.nvidia.com
- cuBLAS: 16/32-element 1D block scaling for FP8 and FP4docs.nvidia.com
- PTX ISA: ue4m3 / ue8m0 scale formats, tcgen05.mma kind::mxf4nvf4docs.nvidia.com
- OCP Microscaling Formats (MX) v1.0 specopencompute.org
- NVIDIA RTX Blackwell GPU architecture whitepaper (Appendix A)images.nvidia.com
- GeForce RTX 5090 spec pagenvidia.com
- NVIDIA DGX B200 specificationsnvidia.com
- Blackwell architecture: micro-tensor scaling, FP4nvidia.com
- llm-compressorgithub.com
- llm-compressor Qwen3.5 NVFP4 example (ignore list)github.com
- llm-compressor Qwen3-Next NVFP4 example (ignore list)github.com
- machinez/pplx-decider-v1.1-27b-NVFP4huggingface.co
- v1.1 NVFP4 recipe.yamlhuggingface.co
- v1.1 NVFP4 config.json (quantization_config)huggingface.co
- machinez/pplx-decider-v1.2-NVFP4huggingface.co
- perplexity-ai/pplx-decider-v1.1-27b (upstream)huggingface.co
- perplexity-ai/pplx-decider-v1.2 (upstream)huggingface.co
- machinez/d3-NVFP4huggingface.co
- machinez/d3-turbo-NVFP4huggingface.co
- machinez/KnowLine-31B-Gen1-NVFP4huggingface.co
- decisions-rustgithub.com
- decisions-rust README at 79dc968github.com
- src/cuda/device.rs at 79dc968 (FP8 at load, low-memory mode)github.com
- Dockerfile at 79dc968github.com
- scripts/fetch_model.py at 79dc968github.com
- scripts/compare_servers.py at 79dc968github.com
- aigpu/decide-in-rust on Docker Hubhub.docker.com
- aigpu/decide-in-rust tagshub.docker.com
- RunPod template 3yzxdcqbcsconsole.runpod.io