inclusionAI/Ling-3.0-flash-Sante — model analysis

Summary

  • Size: The model consists of about 127 billion numbers (parameters). Its saved files total about 255GB.
  • Structure: A mixture-of-experts (MoE) model that, for each input, selects only 8 of its 512 experts. Of about 127 billion parameters in total, about 5.5 billion are used per computation step. About 90% of the parameters are assigned to the experts, about 2% to the multi-token prediction part (MTP), and about 2% to the part that reads context (attention).
  • 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 157,153 vocabulary entries, 51,946 contain kana or kanji.
  • Context length: The limit written in the config (max_position_embeddings) is 262,144 tokens, roughly 360,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. Positions 154, 165, 386, 576, and 1009 were among the positions where outliers (extremely large values) appear most often, in all 42 layers. Positions 154, 165, 386, 576, and 1009 also appeared in the tally of positions where normalization-layer weights take extreme values (154: 57, 165: 68, 386: 64, 576: 77, 1009: 70 of 85 normalization 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, 741 of 157,184 rows have a length of 1/1000 of the median or less. Feeding these tokens in gives an almost-zero embedding.

One line: MoE (8 of 512 experts active) · bailing_hybrid · 42 layers · 127.49B params · 5.51B active · mixed (with short convolutions ×35, MLA ×7) · context 262,144 · vocab 157,184

Basic information

Architecture (stage 0)

Parameters by part

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

Parameters by part

Part Parameters Share
Experts 120,795,955,200 94.75%
MTP (multi-token prediction) 3,072,194,048 2.41%
Attention 2,430,497,888 1.91%
Embedding 402,391,040 0.32%
Output head 402,391,040 0.32%
Shared experts 235,929,600 0.19%
FFN (dense) 94,371,840 0.07%
Router 52,449,280 0.04%
Normalization 225,664 0.00%

Structure

Values from config.json.

Item Value
model_type / architectures bailing_hybrid / BailingMoeV3ForCausalLM
Layers 42
Hidden size 2,560
FFN intermediate size (intermediate_size) 6,144
Attention type mixed (with short convolutions ×35, MLA ×7)
Heads / KV heads / head dim 32 / 32 / 128
MLA settings q_lora_rank=None, kv_lora_rank=512, qk_rope_head_dim=64, qk_nope_head_dim=128, v_head_dim=128
Layers by attention build (from tensor names) with short convolutions: 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 36, 37, 38, 39, 40; MLA: 5, 11, 17, 23, 29, 35, 41
Sliding window — (use_sliding_window=—)
Layer types (layer_types) —
RoPE θ 6,000,000
RoPE scaling —
Partial rotary (partial_rotary_factor) 0.5
Context length (max_position_embeddings) 262,144
Tied input/output embeddings No
Activation silu
Normalization ε 1.000e-06

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) 512
Experts counted from tensor names (count: layers) 512:40 layers
Active experts per token 8
Expert intermediate size (moe_intermediate_size) 768
Shared experts 1
MoE layers 40
Leading dense layers (first_k_dense_replace) 2
Expert parameters 120.80B
Active parameters 5.51B
MTP parameters (excluded from active) 3.07B

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 157,184 157,184 Yes model.word_embeddings.weight
hidden_size 2,560 2,560 Yes model.word_embeddings.weight
num_hidden_layers 42 42 Yes largest layer index + 1 (excluding MTP layers)
num_key_value_heads×head_dim 4,096 4,096 Yes model.layers.0.attention.k_proj.weight
num_attention_heads×head_dim 4,096 4,096 Yes model.layers.0.attention.q_proj.weight
intermediate_size 6,144 6,144 Yes model.layers.0.mlp.gate_proj.weight
moe_intermediate_size 768 768 Yes model.layers.2.mlp.experts.0.gate_proj.weight
tie_word_embeddings (no output-head tensor) No No Yes tensor list
num_experts 512 512 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 329 1.365 4.088 6.7% Yes
English 1,201 289 4.156 4.253 0.0% Yes

Of 157,153 vocabulary entries, 51,946 (33.05%) contain at least one kana or kanji character and 43,771 contain two or more (loaded with tokenizers).

Special tokens and chat format

252 special tokens. BOS: <|startoftext|>, EOS: <|role_end|>. Chat template: present (6073 characters, sha256 prefix b4ab3a1c8f74). Thinking tags: Yes, tool calls: Yes, FIM: Yes, image tokens: No (found by searching special-token names and the template text).

List of special tokens

<|startoftext|>, <|endoftext|>, [CLS], [gMASK], <|role_end|>, <|fim_start|>, <|fim_hole|>, <|fim_end|>, <|reserved_token_14|>, <|reserved_token_15|>, <|reserved_token_16|>, <|reserved_token_17|>, <|reserved_token_18|>, <|reserved_token_19|>, <|reserved_token_20|>, <|reserved_token_21|>, <|reserved_token_22|>, <|reserved_token_23|>, <|reserved_token_24|>, <|reserved_token_25|>, <|reserved_token_26|>, <|reserved_token_27|>, <|reserved_token_28|>, <|reserved_token_29|>, <|reserved_token_30|>, <|reserved_token_31|>, <|reserved_token_32|>, <|reserved_token_33|>, <|reserved_token_34|>, <|reserved_token_35|>, <|reserved_token_36|>, <|reserved_token_37|>, <|reserved_token_38|>, <|reserved_token_39|>, <|reserved_token_40|>, <|reserved_token_41|>, <|reserved_token_42|>, <|reserved_token_43|>, <|reserved_token_44|>, <|reserved_token_45|>, <|reserved_token_46|>, <|reserved_token_47|>, <|reserved_token_48|>, <|reserved_token_49|>, <|reserved_token_50|>, <|reserved_token_51|>, <|reserved_token_52|>, <|reserved_token_53|>, <|reserved_token_54|>, <|reserved_token_55|>, <|reserved_token_56|>, <|reserved_token_57|>, <|reserved_token_58|>, <|reserved_token_59|>, <|reserved_token_60|>, <|reserved_token_61|>, <|reserved_token_62|>, <|reserved_token_63|>, <|reserved_token_64|>, <|reserved_token_65|> …

Weights (stage 1)

Analyzed 63,783 of 63,783 tensors (compute time 4.1 min). Each tensor was converted to fp32 for computation. The 1,553 tensors of the MTP (multi-token prediction) part (layer 42) 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.

RMS

max|w| ÷ RMS

Excess kurtosis

Matrices with the largest values (main-model weights with 2 or more dimensions): max|w| ÷ RMS 102.121 (model.layers.41.mlp.shared_experts.down_proj.weight), excess kurtosis 908.181 (model.layers.14.attention.k_conv1d.weight), outlier share 0.897% (model.layers.34.attention.k_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 42)
154 42
165 42
386 42
576 42
1009 42
1509 42
2119 42
1507 41
2290 41
130 40

Normalization-layer weights

For each of the 85 normalization layers whose length equals the hidden size (2,560), 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 42 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
2290 84
576 77
2119 72
1009 70
165 68
386 64
1509 64
154 57
1507 57
1145 48

Dimensions shared with the top 10 outlier channels above: 154, 165, 386, 576, 1009, 1507, 1509, 2119, 2290.

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
Experts 61440 0.0041 0.2335 0.4347 model.layers.34.mlp.experts.43.up_proj.weight
MTP (multi-token prediction) 1546 0.0026 0.1039 0.2972 model.layers.42.mlp.experts.335.down_proj.weight
Attention 280 0.0042 0.0327 0.3764 model.layers.19.attention.f_proj.weight
Shared experts 120 0.0271 0.0729 0.1396 model.layers.4.mlp.shared_experts.up_proj.weight
Router 40 0.0086 0.0096 0.018 model.layers.21.mlp.gate.weight
FFN (dense) 6 0.102 0.1071 0.1208 model.layers.0.mlp.down_proj.weight
Embedding 1 0.0373 0.0373 0.0373 model.word_embeddings.weight
Output head 1 0.0053 0.0053 0.0053 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).

model.word_embeddings.weight (157,184 rows)

Min Bottom 0.1% Bottom 1% Median Top 1% Max
9.3687e-07 9.7413e-07 0.1356 0.994 1.3971 1.6585

Rows of length exactly 0: 0. Rows of length 1/1000 of the median or less (including the zero rows): 741.

Rows with small norms (158 rows in the bottom 0.1%, the 20 smallest): 140056:'gegen'(9.3687e-07), 127717:'mento'(9.4362e-07), 151777:'�עים'(9.4812e-07), 156863:'の�'(9.4825e-07), 141116:'ombi'(9.4844e-07), 130694:'dzie'(9.4982e-07), 126123:' א�'(9.5008e-07), 136601:' �'(9.5019e-07), 130195:' pati'(9.5193e-07), 136759:' רא�'(9.5342e-07), 138059:' שאי�'(9.5354e-07), 129754:' investi'(9.5354e-07), 126398:' informa'(9.5397e-07), 153485:' שני�'(9.5401e-07), 149410:'�אות'(9.5552e-07), 146609:'фиц'(9.5578e-07), 133005:'�פר'(9.5691e-07), 146953:' �'(9.5792e-07), 141703:' הסי�'(9.5823e-07), 130928:'рист'(9.5876e-07)

lm_head.weight (157,184 rows)

Min Bottom 0.1% Bottom 1% Median Top 1% Max
0.4959 0.4994 0.5756 1.5197 1.8498 2.1195

Rows with small norms (158 rows in the bottom 0.1%, the 20 smallest): 151531:' předsta'(0.4959), 157164:''(0.4969), 124298:'\x0c '(0.4978), 157163:''(0.498), 156927:'<|reserved_token_32|>'(0.4982), 157166:''(0.4984), 145234:'dául'(0.4985), 157162:''(0.4985), 157173:''(0.4989), 104377:' 原承天'(0.4989), 157156:''(0.499), 157153:''(0.4991), 157016:'<|reserved_token_121|>'(0.4991), 157155:''(0.4992), 153545:'�ח'(0.4992), 157154:''(0.4992), 129442:'voor'(0.4992), 131034:'�ת'(0.4992), 128262:' tradi'(0.4992), 95263:' WeaponFireGun'(0.4992)

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: 4.8821e-04.

Expert similarity

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

Comments

…

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

← All notes