nvidia/NVIDIA-Nemotron-Labs-Dory1.0-4B-BF16 — model analysis

Summary

  • Size: The model consists of about 4 billion numbers (parameters). Its saved files total about 7.95GB.
  • Structure: A dense model that uses all of its parameters for every input. About 50% of the parameters are assigned to the part that holds knowledge (FFN), about 30% to the part that reads context (attention), about 8% to the output head, and about 8% to the vocabulary dictionary (embedding).
  • Looping: Of its 72 layers, the first 16 and the last 16 are passed once, and the 40 in between are passed 2 times (n_recurrent_loops=2 in the config), so one token goes through 112 layers in total.
  • 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,560. Position 332 was among the positions where outliers (extremely large values) appear most often, in 44 of 72 layers. This kind of skew is generally considered a cause of accuracy loss when a model is compressed (quantized).
  • Embedding and output head: The row lengths are nearly identical in the input embedding (131,072 rows; median 1, bottom 1% to top 1%: 0.9998–1.0002) and the output head (131,072 rows; median 1, bottom 1% to top 1%: 0.9996–1.0004).

One line: Dense · dory · 72 layers · 3.98B params · GQA (4:1) · context 262,144 · vocab 131,072

Basic information

Architecture (stage 0)

Parameters by part

Counted from the tensor shapes in the safetensors headers (measured).

Parameters by part

Part Parameters Share
FFN (dense) 1,982,416,896 49.87%
Attention 1,321,592,832 33.25%
Output head 335,675,392 8.44%
Embedding 335,544,320 8.44%

Structure

Values from config.json.

Item Value
model_type / architectures dory / DoryForCausalLM
Layers 72
Hidden size 2,560
FFN intermediate size (intermediate_size) 7,168
Attention type GQA (4:1)
Heads / KV heads / head dim 16 / 4 / 256
Looping (n_input_layers / n_recurrent_layers / n_output_layers / n_recurrent_loops) 16 / 40 / 16 / 2
Sliding window 1,024 (use_sliding_window=—)
Layer types (layer_types) sliding_attention×27, mlp×36, full_attention×9
RoPE θ —
RoPE scaling {'sliding_attention': {'rope_type': 'default', 'rope_theta': 10000, 'partial_rotary_factor': 1.0}, 'full_attention': {'rope_type': 'default', 'rope_theta': 10000000, 'partial_rotary_factor': 1.0}}
Partial rotary (partial_rotary_factor) —
Context length (max_position_embeddings) 262,144
Tied input/output embeddings No
Activation silu
Normalization ε —

MoE configuration

Not applicable (not an MoE model).

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,560 2,560 Yes backbone.embeddings.weight
num_hidden_layers 72 72 Yes largest layer index + 1 (excluding MTP layers)
num_key_value_heads×head_dim 1,024 1,024 Yes backbone.layers.0.mixer.k_proj.weight
num_attention_heads×head_dim 4,096 4,096 Yes backbone.layers.0.mixer.q_proj.weight
intermediate_size 7,168 7,168 Yes backbone.layers.1.mixer.gate_proj.weight
tie_word_embeddings (no output-head tensor) No No Yes tensor list

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 (10152 characters, sha256 prefix 82753bef5ced). 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 507 of 507 tensors (compute time 42 s). Each tensor was converted to fp32 for computation.

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.

RMS

max|w| ÷ RMS

Excess kurtosis

Matrices with the largest values (main-model weights with 2 or more dimensions): max|w| ÷ RMS 44.667 (backbone.embeddings.weight), excess kurtosis 80.357 (backbone.layers.30.mixer.k_proj.weight), outlier share 0.120% (backbone.layers.30.mixer.k_proj.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 72)
332 44
930 42
1935 42
1276 38
1331 38
1584 38
299 37
2106 35
349 34
1952 34

Normalization-layer weights

There are no normalization-layer weights (tensors with norm in the name).

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).

Effective rank

Stable rank ÷ shorter side by part:

Part Matrices Min Median Max Matrix with the minimum
Attention 180 0.0039 0.0294 0.3598 backbone.layers.60.mixer.g_proj.weight
FFN (dense) 108 0.0041 0.0515 0.1866 backbone.layers.1.mixer.down_proj.weight
Embedding 1 0.0222 0.0222 0.0222 backbone.embeddings.weight
Output head 1 0.0012 0.0012 0.0012 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
0.9996 0.9998 0.9998 1 1.0002 1.0013

Rows with small norms (132 rows in the bottom 0.1%, the 20 smallest): 268:'<SPECIAL_268>'(0.9996), 77892:'zőszám'(0.9996), 223:'<SPECIAL_223>'(0.9997), 230:'<SPECIAL_230>'(0.9997), 229:'<SPECIAL_229>'(0.9997), 324:'<SPECIAL_324>'(0.9997), 210:'<SPECIAL_210>'(0.9997), 82134:' నిమిత్తం'(0.9997), 129:'<SPECIAL_129>'(0.9997), 373:'<SPECIAL_373>'(0.9997), 794:'<SPECIAL_794>'(0.9997), 50293:'ుధ్య'(0.9997), 661:'<SPECIAL_661>'(0.9997), 811:'<SPECIAL_811>'(0.9997), 79535:' వైద్యశాల'(0.9997), 568:'<SPECIAL_568>'(0.9997), 386:'<SPECIAL_386>'(0.9997), 273:'<SPECIAL_273>'(0.9997), 1288:'as'(0.9997), 140:'<SPECIAL_140>'(0.9997)

lm_head.weight (131,072 rows)

Min Bottom 0.1% Bottom 1% Median Top 1% Max
0.9981 0.9992 0.9996 1 1.0004 1.0026

Rows with small norms (132 rows in the bottom 0.1%, the 20 smallest): 66566:'=str'(0.9981), 1052:'4'(0.9982), 91537:'grep'(0.9982), 17383:' coal'(0.9984), 9368:' takes'(0.9984), 8889:" ['"(0.9986), 10819:'Part'(0.9986), 1093:']'(0.9986), 24925:' maintaining'(0.9986), 1975:'```'(0.9987), 11:'<|im_end|>'(0.9988), 9047:')**'(0.9988), 2975:'for'(0.9988), 40378:' restaurants'(0.9988), 5207:'trans'(0.9988), 108833:' creators'(0.9989), 91659:' evaluates'(0.9989), 26575:'{A'(0.9989), 1438:'**'(0.9989), 3384:'_id'(0.9989)

A small norm does not mean that the token is unimportant or untrained.

Similarity between experts

Not applicable (not an MoE model).

Measurement conditions

  • mbscope 0.2.16 (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 prefix 0a714a270435
  • Computed on GPU NVIDIA GeForce RTX 3090 (CUDA 13.0, TF32 off) in fp32
  • Measured with mbscope 0.2.15. The measurements were re-aggregated with mbscope 0.2.16 without re-measuring

Comments

…

Comments are public. Please don't include personal information. Inappropriate comments may be removed.

← All notes