Nemotron · NVIDIA

Nemotron 3 Nano 30B-A3B

Nemotron 3 Nano 30B-A3B from NVIDIA has 31,577,940,288 parameters, of which about 3.58B are used for each token (a mixture of experts). Its weights take 63.2 GB in BF16 and about 15.8 GB at 4-bit, and each token of context adds 6.1 KB of KV cache (201 MB at 32K tokens).

31.6Bparameters
3.58Bactive per token
63.2 GBBF16 weights
15.8 GB4-bit weights
6.1 KBKV per token

Part of the Nemotron 3 family: 31.6B · 121B · 549B

Architecture · VRAM · KV cache · Tensor shapes · Parameter count · FLOPs

Architecture

ArchitectureNemotronHForCausalLM
Layers (L)52
Hidden size (d)2,688
AttentionGQA (16 query heads share each KV head)
Heads32 query, 2 key/value, 128 each
Feed-forward128 experts of 1,856, 6 per token, plus 1 shared (squared-ReLU MLP); 29 dense layers (layers 0, 2, 4, 5, 7, 9, 11, 12, 14, 16, 18, 19, 21, 23, 25, 26, 28, 30, 32, 33, 35, 37, 39, 41, 42, 44, 46, 48, 50) with FFN 1,856
Vocabulary (V)131,072
Tied embeddingsno: separate output head
Biasesnone
Extra normspre-norm (RMSNorm before attention and FFN)
Max context262,144 tokens
Mamba-2 layers23 of 52 layers: 64 heads of 64, state size 128, 8 groups for B and C
Layer patternMEMEM*EMEMEM*EMEMEM*EMEMEM*EMEMEM*EMEMEMEM*EMEMEMEME
M Mamba-2 · E mixture of experts · * attention: one mixer and one norm per layer
Weights in the release–

How much memory the weights need

Each parameter takes 4 bytes in FP32, 2 in BF16, 1 at 8 bits and half a byte at 4 bits, so the weights alone need:

PrecisionBytes per parameterWeights
FP324126 GB117.64 GiB
BF16 / FP16263.2 GB58.82 GiB
INT8 / FP8131.6 GB29.41 GiB
INT40.515.8 GB14.70 GiB

GB here is 109 bytes; GiB (230) is what tools like nvidia-smi show. Real 4-bit files are a little larger: they also store scales, and some layers are often kept at higher precision. Every expert has to be in memory, not just the active ones: the router picks different experts for each token. A running model also needs its KV cache, activations and the runtime's own buffers.

Memory calculator

On common GPUs

Whether the weights plus a 8K-token KV cache fit in 90% of the card (how this is worked out):

Smallest card: 80 GB at BF16, 48 GB at 8-bit, 24 GB at 4-bit.

GPU memoryBF168-bit4-bit
8 GB63.3 GBtoo big33.7 GBtoo big17.9 GBtoo big
12 GB63.3 GBtoo big33.7 GBtoo big17.9 GBtoo big
16 GB63.3 GBtoo big33.7 GBtoo big17.9 GBtoo big
24 GB63.3 GBtoo big33.7 GBtoo big17.9 GB
48 GB63.3 GBtoo big33.7 GB17.9 GB
64 GB63.3 GBtoo big33.7 GB17.9 GB
80 GB63.3 GB33.7 GB17.9 GB

Each cell is the weights plus the 8K-token KV cache at that precision; ✓ where it fits.

KV cache

What it is: the KV cache, explained.

Only some layers keep keys and values, and not all of the same size:

6 attention layers × 2 × 2 × 128 × 2 bytes = 6,144 bytes per token

The 23 Mamba-2 layers cache no keys or values. Each keeps a fixed-size state instead (64 heads × 64 channels × a state of 128, plus the last 3 tokens for the short convolution), held in FP32: 49.9 MB per sequence, whatever the context length. See Mamba.

ContextKV cache, BF168-bit KVWeights + KV, BF16
4K25.2 MB12.6 MB63.2 GB
32K201 MB101 MB63.4 GB
128K805 MB403 MB64.0 GB
256K (max)1.6 GB805 MB64.8 GB

For one sequence. Batching multiplies the KV cache by the number of sequences, not the weights.

Every tensor shape

The names are those in the Hugging Face checkpoint; shapes are [out, in] for weight matrices, as PyTorch stores them. One block is shown: the model repeats it 52 times (in two kinds).

TensorShapeParameters
Embedding
backbone.embeddings.weight[131,072, 2,688]352,321,536
Mamba-2 layers (23 layers): model.layers.N.…
mixer.in_proj.weightthe input x, its gate z, B and C for each group, and a time step per head[10,304, 2,688]27,697,152
mixer.conv1d.weighta depthwise convolution over the last 4 tokens[6,144, 1, 4]24,576
mixer.conv1d.bias[6,144]6,144
mixer.A_logper-head decay[64]64
mixer.Dper-head skip[64]64
mixer.dt_bias[64]64
mixer.norm.weightgated RMSNorm[4,096]4,096
mixer.out_proj.weight[2,688, 4,096]11,010,048
norm.weight[2,688]2,688
MoE layers (23 layers): model.layers.N.…
mixer.gate.weightthe router[128, 2,688]344,064
mixer.gate.e_score_correction_biasrouting only[128]128
mixer.experts.{0…127}.up_proj.weight128 × [1,856, 2,688]638,582,784
mixer.experts.{0…127}.down_proj.weight128 × [2,688, 1,856]638,582,784
mixer.shared_experts.up_proj.weightshared expert: runs for every token, at full width[3,712, 2,688]9,977,856
mixer.shared_experts.down_proj.weight[2,688, 3,712]9,977,856
norm.weight[2,688]2,688
Attention layers (layers 5, 12, 19, 26, 33, 42): model.layers.N.…
mixer.q_proj.weight[4,096, 2,688]11,010,048
mixer.k_proj.weight[256, 2,688]688,128
mixer.v_proj.weight[256, 2,688]688,128
mixer.o_proj.weight[2,688, 4,096]11,010,048
norm.weight[2,688]2,688
After the last block
backbone.norm_f.weightfinal norm[2,688]2,688
lm_head.weight[131,072, 2,688]352,321,536

The parameter count, step by step

Each line gives the formula, the numbers from config.json, and the subtotal. The symbols:

V
vocabulary 131,072
d
hidden size 2,688
L
layers 52
H
query heads 32
K
key/value heads 2
h
head size 128
f
FFN hidden size 1,856
E
routed experts 128
k
experts per token 6
f_e
expert FFN size 1,856

1. Embedding

One row of d numbers for each of the V tokens in the vocabulary.

Embedding
V × d
131,072 × 2,688
= 352,321,536

2. Mamba-2 layers (23 layers), ×23

Mamba-2 mixer
(2H_m·p+2g·N+H_m) × d + (H_m·p+2g·N) × 1 × k + (H_m·p+2g·N) + 3 × H_m + H_m·p + d × H_m·p
10,304 × 2,688 + 6,144 × 1 × 4 + 6,144 + 3 × 64 + 4,096 + 2,688 × 4,096
= 38,742,208
Norm
d
2,688
= 2,688
One block
mamba-2 mixer + norm
38,742,208 + 2,688
= 38,744,896
23 blocks
23 × block
23 × 38,744,896
= 891,132,608

3. MoE layers (23 layers), ×23

Mixture of experts (128 experts, 6 per token)
E × d + E + E × (f_e × d) + E × (d × f_e) + f_s × d + d × f_s
128 × 2,688 + 128 + 128 × (1,856 × 2,688) + 128 × (2,688 × 1,856) + 3,712 × 2,688 + 2,688 × 3,712
= 1,297,465,472
Norm
d
2,688
= 2,688
One block
mixture of experts + norm
1,297,465,472 + 2,688
= 1,297,468,160
23 blocks
23 × block
23 × 1,297,468,160
= 29,841,767,680

4. Attention layers (layers 5, 12, 19, 26, 33, 42), ×6

Attention
H·h × d + 2 × (K·h × d) + d × H·h
4,096 × 2,688 + 2 × (256 × 2,688) + 2,688 × 4,096
= 23,396,352
Norm
d
2,688
= 2,688
One block
attention + norm
23,396,352 + 2,688
= 23,399,040
6 blocks
6 × block
6 × 23,399,040
= 140,394,240

5. Final norm and output head

Final norm + head
d + V × d
2,688 + 131,072 × 2,688
= 352,324,224

6. Total

Total
embedding + blocks + final
352,321,536 + 891,132,608 + 29,841,767,680 + 140,394,240 + 352,324,224
= 31,577,940,288

7. Active parameters per token

The router sends each token to 6 of the 128 experts in each MoE block, so only those experts' weights are used, plus the shared expert, which every token uses. One routed expert is 9,977,856 parameters.

Active
total − MoE blocks × (E − k) × expert
31,577,940,288 − 23 × 122 × 9,977,856
= 3,580,076,352

Hugging Face counts 31,577,937,344 parameters in the nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-Base-BF16 safetensors files. That total leaves out 2,944: the routers' 23 × 128 bias vectors are stored in FP32, and Hugging Face lists them under F32 but adds only the BF16 tensors into its total. They are counted here. The arithmetic above matches exactly.

FLOPs per token

A forward pass costs about two floating-point operations (a multiply and an add) for every weight a token passes through: 2 × N, with N the active weights used in matrix multiplies (the embedding lookup is a read, not a multiply; the output head is a multiply). Here that is 2 × 3,580,076,352 = 7.2 GFLOPs per token.

Attention adds the work of comparing the token with every earlier one: 2 × L × T × H × (hqk + hv) for T tokens of context, which grows with the context while 2N does not.

That is for one new token at position T, as when generating. Averaged over a whole training sequence of length T, each token sees T/2 earlier ones on average, which halves it.

Context T2NAttentionTotal per token
4K7.2 GFLOPs450.9 MFLOPs7.6 GFLOPs
32K7.2 GFLOPs3.3 GFLOPs10.4 GFLOPs
128K7.2 GFLOPs12.9 GFLOPs20.1 GFLOPs
256K7.2 GFLOPs25.8 GFLOPs33.0 GFLOPs

Training costs about three times the forward pass per token (6N): the backward pass does roughly twice the forward work.

More in the glossary: FLOPs per token · quantization · parameters.

Compare

Nemotron 3 Nano 30B-A3B vs Qwen3 30B-A3B · Compare with any model →

Close in size: OLMo 3 32B 32.2B · OLMo 2 32B 32.2B · Gemma 4 31B 30.7B · Qwen3 30B-A3B 30.5B · Qwen3 32B 32.8B

Source

Read from nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-Base-BF16, fetched 2026-12-03.