nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16 — model analysis
Summary
- Size: The model consists of about 32.9 billion numbers (parameters). Its saved files total about 65.8GB.
- Structure: A mixture-of-experts (MoE) model that, for each input, selects only 6 of its 128 experts. Of about 32.9 billion parameters in total, about 3.6 billion are used per computation step. About 90% of the parameters are assigned to the experts, about 4% to the multi-token prediction part (MTP), about 3% to the part that carries context as a running state (Mamba), about 1% to the shared experts, about 1% to the vocabulary dictionary (embedding), and about 1% to the output head.
- Japanese text: In Japanese, one token holds about 1.4 characters. In English, one token holds about 4.2 characters. For the same number of characters, Japanese needs about 3.0 times as many tokens as English. Of its 131,072 vocabulary entries, 5,145 contain kana or kanji.
- Context length: The limit written in the config (max_position_embeddings) is 262,144 tokens, roughly 370,000 Japanese characters or 1,100,000 English characters at the same ratio as the fixed texts above.
- Skew in values: Values inside the model flow in groups of 2,688. Position 484 was among the positions where outliers (extremely large values) appear most often, in 44 of 52 layers. This kind of skew is generally considered a cause of accuracy loss when a model is compressed (quantized).
- Nearly unused tokens: In the input embedding, 2 of 131,072 rows have a length of 1/1000 of the median or less. Feeding these tokens in gives an almost-zero embedding.
One line: MoE (6 of 128 experts active) · nemotron_h · 52 layers · 32.91B params · 3.58B active · GQA (16:1) · context 262,144 · vocab 131,072
Basic information
- Model: nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16 (revision
a9904d24bcc1, config.json) - License: openmdw-1.1
- Declared base_model: none
- Storage dtypes: BF16 32.91B, F32 3.07K
Architecture (stage 0)
Parameters by part
Counted from the tensor shapes in the safetensors headers (measured).
| Part | Parameters | Share |
|---|---|---|
| Experts | 29,374,808,064 | 89.25% |
| MTP (multi-token prediction) | 1,335,325,952 | 4.06% |
| Mamba (state space) | 890,976,576 | 2.71% |
| Shared experts | 458,981,376 | 1.39% |
| Embedding | 352,321,536 | 1.07% |
| Output head | 352,321,536 | 1.07% |
| Attention | 140,378,112 | 0.43% |
| Router | 7,916,416 | 0.02% |
| Normalization | 236,672 | 0.00% |
Structure
Values from config.json.
| Item | Value |
|---|---|
| model_type / architectures | nemotron_h / NemotronHForCausalLM |
| Layers | 52 |
| Hidden size | 2,688 |
| FFN intermediate size (intermediate_size) | 1,856 |
| Attention type | GQA (16:1) |
| Heads / KV heads / head dim | 32 / 2 / 128 |
| Sliding window | — (use_sliding_window=—) |
| Layer types (layers_block_type) | mamba×23, moe×23, attention×6 |
| RoPE θ | 10,000 |
| RoPE scaling | — |
| Partial rotary (partial_rotary_factor) | 1 |
| Context length (max_position_embeddings) | 262,144 |
| Tied input/output embeddings | No |
| Activation | — |
| Normalization ε | 1.000e-05 |
MoE configuration
Expert counts come from both config and tensor names (MTP layers excluded). Active parameters = total − MTP − expert part + expert part × active ÷ experts (computed).
| Item | Value |
|---|---|
| Experts (config) | 128 |
| Experts counted from tensor names (count: layers) | 128:23 layers |
| Active experts per token | 6 |
| Expert intermediate size (moe_intermediate_size) | 1,856 |
| Matrices per expert (from tensor names) | 2 |
| Shared experts | 1 |
| MoE layers | 23 |
| Leading dense layers (first_k_dense_replace) | — |
| Expert parameters | 29.37B |
| Active parameters | 3.58B |
| MTP parameters (excluded from active) | 1.34B |
config vs. actual tensors
Values in config.json side by side with the actual tensor shapes (measured).
| Item | config | Actual | Match | Source of actual |
|---|---|---|---|---|
| vocab_size | 131,072 | 131,072 | Yes | backbone.embeddings.weight |
| hidden_size | 2,688 | 2,688 | Yes | backbone.embeddings.weight |
| num_hidden_layers | 52 | 52 | Yes | largest layer index + 1 (excluding MTP layers) |
| num_key_value_heads×head_dim | 256 | 256 | Yes | backbone.layers.5.mixer.k_proj.weight |
| num_attention_heads×head_dim | 4,096 | 4,096 | Yes | backbone.layers.5.mixer.q_proj.weight |
| moe_intermediate_size | 1,856 | 1,856 | Yes | backbone.layers.1.mixer.experts.0.up_proj.weight |
| tie_word_embeddings (no output-head tensor) | No | No | Yes | tensor list |
| num_experts | 128 | 128 | Yes | tensor names |
Tokenizer
Results of tokenizing the fixed Japanese and English texts (see conditions) without special tokens (measured). "Tokens splitting a character" is the share of tokens that decode to a broken character (U+FFFD) on their own.
| Text | Characters | Tokens | Chars/token | Bytes/token | Tokens splitting a character | Round-trips exactly |
|---|---|---|---|---|---|---|
| Japanese | 449 | 322 | 1.394 | 4.177 | 12.4% | Yes |
| English | 1,201 | 284 | 4.229 | 4.327 | 0.0% | Yes |
Of 131,072 vocabulary entries, 5,145 (3.93%) contain at least one kana or kanji character and 3,091 contain two or more (loaded with tokenizers).
Special tokens and chat format
994 special tokens. BOS: <s>, EOS: <|im_end|>. Chat template: present (9867 characters, sha256 prefix 58933db77d30).
Thinking tags: Yes, tool calls: Yes, FIM: No, image tokens: No (found by searching special-token names and the template text).
List of special tokens
<unk>, <s>, </s>, [INST], [/INST], [AVAILABLE_TOOLS], [/AVAILABLE_TOOLS], [TOOL_RESULTS], [/TOOL_RESULTS], [TOOL_CALLS], <|im_start|>, <|im_end|>, <SPECIAL_18>, <SPECIAL_19>, <SPECIAL_20>, <SPECIAL_21>, <SPECIAL_22>, <SPECIAL_23>, <SPECIAL_24>, <SPECIAL_25>, <SPECIAL_26>, <SPECIAL_27>, <SPECIAL_28>, <SPECIAL_29>, <SPECIAL_30>, <SPECIAL_31>, <SPECIAL_32>, <SPECIAL_33>, <SPECIAL_34>, <SPECIAL_35>, <SPECIAL_36>, <SPECIAL_37>, <SPECIAL_38>, <SPECIAL_39>, <SPECIAL_40>, <SPECIAL_41>, <SPECIAL_42>, <SPECIAL_43>, <SPECIAL_44>, <SPECIAL_45>, <SPECIAL_46>, <SPECIAL_47>, <SPECIAL_48>, <SPECIAL_49>, <SPECIAL_50>, <SPECIAL_51>, <SPECIAL_52>, <SPECIAL_53>, <SPECIAL_54>, <SPECIAL_55>, <SPECIAL_56>, <SPECIAL_57>, <SPECIAL_58>, <SPECIAL_59>, <SPECIAL_60>, <SPECIAL_61>, <SPECIAL_62>, <SPECIAL_63>, <SPECIAL_64>, <SPECIAL_65> …
Weights (stage 1)
Analyzed 6,513 of 6,513 tensors (compute time 49 s). Each tensor was converted to fp32 for computation. The 270 tensors of the MTP (multi-token prediction) part were analyzed but kept out of the per-layer trends, outlier channels, normalization-layer dimensions, embedding rows, expert similarity and extremes below, so that only the main layers are counted.
Trends across layers
RMS is the root mean square of the elements. max|w| ÷ RMS is how many times larger the largest element is than a typical one. Excess kurtosis measures tail heaviness and is 0 for a normal distribution (all measured). The figures use weights with 2 or more dimensions (matrices) only; 1-D biases and similar are left out.
Matrices with the largest values (main-model weights with 2 or more dimensions): max|w| ÷ RMS 81.308 (backbone.layers.5.mixer.o_proj.weight), excess kurtosis 49.588 (backbone.layers.12.mixer.o_proj.weight), outlier share 0.631% (backbone.layers.37.mixer.conv1d.weight).
Outliers and outlier channels
An outlier is an element exceeding 6 times the standard deviation of its matrix. For each matrix that takes the hidden dimension as input, the columns with the most outliers (top 16) were collected, and the number of layers in which each column appeared was counted (measured).
| Hidden-dimension column | Layers it appeared in (of 52) |
|---|---|
| 484 | 44 |
| 1428 | 43 |
| 1001 | 41 |
| 19 | 39 |
| 1402 | 39 |
| 1388 | 37 |
| 1790 | 37 |
| 1827 | 37 |
| 711 | 36 |
| 2011 | 36 |
Normalization-layer weights
For each of the 53 normalization layers whose length equals the hidden size (2,688), the dimensions farthest from the median (top 16) were collected, and the number of normalization layers in which each dimension appeared was counted (measured). The 23 normalization layers of other lengths, such as per-head normalization, were left out because their dimension numbers mean something different.
| Dimension | Normalization layers it appeared in |
|---|---|
| 2550 | 44 |
| 672 | 42 |
| 1428 | 35 |
| 1890 | 34 |
| 2370 | 33 |
| 413 | 31 |
| 1610 | 28 |
| 1599 | 26 |
| 186 | 23 |
| 104 | 22 |
Dimensions shared with the top 10 outlier channels above: 1428.
Effective rank
Stable rank = (Frobenius norm)² ÷ (largest singular value)², divided by the matrix's shorter side to scale it to 0–1. The largest singular value is approximated by power iteration (30 steps) (estimated).
Stable rank ÷ shorter side by part:
| Part | Matrices | Min | Median | Max | Matrix with the minimum |
|---|---|---|---|---|---|
| Experts | 5888 | 0.0035 | 0.0268 | 0.2696 | backbone.layers.15.mixer.experts.33.up_proj.weight |
| MTP (multi-token prediction) | 264 | 0.0039 | 0.0121 | 0.3181 | mtp.layers.1.mixer.experts.93.down_proj.weight |
| Mamba (state space) | 46 | 0.0104 | 0.0329 | 0.0563 | backbone.layers.46.mixer.out_proj.weight |
| Shared experts | 46 | 0.0037 | 0.0157 | 0.0603 | backbone.layers.51.mixer.shared_experts.up_proj.weight |
| Attention | 24 | 0.0118 | 0.1085 | 0.4571 | backbone.layers.5.mixer.o_proj.weight |
| Router | 23 | 0.0287 | 0.0421 | 0.0584 | backbone.layers.1.mixer.gate.weight |
| Embedding | 1 | 0.0243 | 0.0243 | 0.0243 | backbone.embeddings.weight |
| Output head | 1 | 0.0071 | 0.0071 | 0.0071 | lm_head.weight |
Embedding rows
Distribution of the length (norm) of each vocabulary entry's embedding row, and the rows with the smallest norms (bottom 0.1%) (measured).
backbone.embeddings.weight (131,072 rows)
| Min | Bottom 0.1% | Bottom 1% | Median | Top 1% | Max |
|---|---|---|---|---|---|
| 5.3653e-05 | 0.0484 | 0.1999 | 0.7728 | 0.9513 | 1.0817 |
Rows of length exactly 0: 0. Rows of length 1/1000 of the median or less (including the zero rows): 2.
Rows with small norms (132 rows in the bottom 0.1%, the 20 smallest): 84357:' ఇంటింటికీ'(5.3653e-05), 112147:' ట్రాక్టర్ల'(7.6775e-04), 84006:'ోగ్యాస్'(8.9311e-04), 99198:' udalerriko'(0.0011), 86060:' fabrikazioko'(0.0011), 91608:' erresidentzia'(0.0012), 102500:' INSEEren'(0.0012), 83855:' komertzioetatik'(0.0013), 82664:' sailkaturik'(0.0017), 101707:'itozibe'(0.0018), 83362:' కొరియర్'(0.0024), 98573:' hektarea'(0.004), 83390:' komertzio'(0.0053), 116654:' igelts'(0.0059), 82770:' టెలిఫ'(0.0071), 117744:' igeltsero'(0.0073), 106921:' వదులుతున్నారు'(0.0075), 94485:' ఏటీఎమ్'(0.0102), 84121:'టీఎమ్'(0.0102), 108665:' sailkatutako'(0.0122)
lm_head.weight (131,072 rows)
| Min | Bottom 0.1% | Bottom 1% | Median | Top 1% | Max |
|---|---|---|---|---|---|
| 0.3065 | 0.3082 | 0.3296 | 1.0565 | 1.3688 | 1.6434 |
Rows with small norms (132 rows in the bottom 0.1%, the 20 smallest): 81152:' మైదానం'(0.3065), 81832:' రీడింగ్'(0.3067), 16:'<tool_response>'(0.3069), 110449:' మంచినీటి'(0.307), 4:'[/INST]'(0.3072), 84090:' వీధుల'(0.3073), 71613:' కాలువల'(0.3074), 82005:' పోలింగ్'(0.3074), 96244:' తారు'(0.3075), 25173:'.కి'(0.3075), 86332:' అమలవ'(0.3075), 84284:' పక్కనే'(0.3075), 83445:' టెలిఫోన్'(0.3076), 43767:' లోపు'(0.3076), 129461:' శిశు'(0.3076), 115977:' తరువ'(0.3076), 52805:' మురుగున'(0.3076), 89382:' హెక్ట'(0.3077), 86330:' చేతిప'(0.3077), 84747:' పారబో'(0.3077)
Rows of length 0 or nearly 0 hold almost no values for their token. They are likely tokens that were barely used in training or rows that were set to 0 on purpose, but this analysis cannot tell which. For longer rows, a small norm does not mean that the token is unimportant or untrained.
Similarity between experts
For matrices of the same kind in the same layer, the cosine similarity between experts was estimated with a 32×32 random projection (estimated). Mean over all layers: 0.0099.
Measurement conditions
- mbscope 0.2.20 (result schema v1), Python 3.14.4, torch 2.13.0+cu130, safetensors 0.8.0, huggingface_hub 0.36.2, tokenizers 0.21.4, transformers 4.49.0
- Estimation criteria: outlier_sigma=6.0, embed_low_pct=0.1, power_iters=30, sketch_dim=32, top_channels=16, seed=20261002
- Input texts: ja: Natsume Sōseki, I Am a Cat, opening (Aozora Bunko 789_ruby_5639; source: Natsume Sōseki Zenshū 1, Chikuma Bunko), sha256 prefix
5d6b40f79b6a/ en: Jane Austen, Pride and Prejudice, opening of Chapter 1 (Project Gutenberg eBook #1342), sha256 prefix0a714a270435 - Computed on GPU NVIDIA GeForce RTX 3090 (CUDA 13.0, TF32 off) in fp32
Comments
…