---
title: gpt-oss-120b (117B total, 5.1B active parameters) ships its weights in MXFP4 and runs within 80 GB. Check that claim…
url: https://gurkanozkan.ai/learn/questions/recent-a-eff-02/
markdown: https://gurkanozkan.ai/learn/questions/recent-a-eff-02.md
kind: question
role: Research
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/recent-a-eff-02.json
robots: noindex
---

# gpt-oss-120b (117B total, 5.1B active parameters) ships its weights in MXFP4 and runs within 80 GB. Check that claim with arithmetic, then compare MXFP4 with NVFP4 and explain what you would test before serving a model in either format.

Research · Technical · Medium

## Answer

*Model answer, written in a candidate's voice*

### In short

- Arithmetic: 4-bit elements + 8-bit scale per 32 values = 4.25 bits/weight; 117B x 4.25/8 ~ 62 GB, leaving ~18 GB for activations/KV, plausible but assumes most weights are quantised and ignores higher-precision non-MoE parts.
- MXFP4: 32-element blocks with power-of-two E8M0 scale; NVFP4: 16-element blocks with FP8 E4M3 scale plus per-tensor FP32 scale (~4.5 bits), giving lower quantisation error.
- Hardware: native FP4 tensor cores on Blackwell-class GPUs; on older GPUs weights are dequantised, saving memory and bandwidth but not matmul FLOPs.
- Only 5.1B active parameters per token, so decode reads relatively few bytes per token, but all experts must still fit in memory.
- Tests: task evals against the higher-precision reference, long-context and multilingual slices, token-agreement or KL checks, and throughput at the target batch size.

### In full

The arithmetic is roughly consistent. MXFP4 stores 4-bit elements plus one 8-bit scale per 32 values:

```calc
bits per weight = (32 x 4 + 8) / 32 = 136 / 32 = 4.25
weights = 117e9 x 4.25 / 8 bytes = 62.2e9 bytes = ~62 GB
headroom = 80 - 62 = ~18 GB for activations and KV cache
```

That is plausible, but it is an estimate, not a guarantee, because embeddings, norms, attention/router or other non-MoE parts may be kept at higher precision and real overhead will add to the footprint. MXFP4 uses 32-element blocks with a power-of-two E8M0 scale, while NVFP4 uses 16-element blocks with an FP8 E4M3 scale plus a per-tensor FP32 scale (~4.5 bits per weight), so NVFP4 should give lower quantisation error at slightly higher bit cost. On Blackwell-class GPUs FP4 can run on native tensor cores; on older GPUs the weights are dequantised before matmul, which still saves memory and bandwidth but not FLOPs. Because only 5.1B parameters are active per token, decode reads relatively few bytes per token and can be fast for its total size, but every expert still has to fit in memory. Before serving, I would compare task evals against the higher-precision reference, check long-context and multilingual slices, measure token-agreement or KL against the reference, and validate throughput and memory at the target batch size rather than trusting the 80 GB figure alone.

*Corrected by an independent AI reviewer.*

## What a strong answer covers

- Arithmetic: MXFP4 stores 4-bit elements plus one 8-bit scale per 32 values ≈ 4.25 bits per weight, so ~117e9 × 4.25 / 8 ≈ 62 GB, leaving room for activations and KV cache in 80 GB (non-MoE parts may be kept at higher precision)
- MXFP4: 32-element blocks with a power-of-two E8M0 scale; NVFP4: 16-element blocks with an FP8 E4M3 scale plus a per-tensor FP32 scale (~4.5 bits), giving lower quantisation error
- Hardware: native FP4 tensor cores on Blackwell-class GPUs; on older GPUs weights are dequantised, saving memory and bandwidth but not matmul FLOPs
- Only 5.1B active parameters per token, so decode reads relatively few bytes per token and is fast for its total size, while all experts must still fit in memory
- Tests: task evals against the higher-precision reference, long-context and multilingual slices, token-agreement or KL checks, and throughput at the target batch size

## Common mistakes

- Computing memory from active rather than total parameters
- Treating all 4-bit formats as interchangeable

## Follow-ups

- Why might you keep attention weights or the router in higher precision?

## Topic guides

- [Compute and memory efficiency](https://gurkanozkan.ai/learn/topics/efficiency.md)
- [LLM inference: decoding, batching, quantisation and speculative decoding](https://gurkanozkan.ai/learn/topics/inference.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
