Aleph-Alpha/Kolibri-1-BF16 — model analysis

Summary

  • Size: The model consists of about 78.1 billion numbers (parameters). Its saved files total about 156GB.
  • Structure: A mixture-of-experts (MoE) model that, for each input, selects only 6 of its 384 experts. Of about 78.1 billion parameters in total, about 3.8 billion are used per computation step. About 97% of the parameters are assigned to the experts and about 2% to the part that reads context (attention).
  • Japanese text: In Japanese, one token holds about 1.1 characters. In English, one token holds about 4.3 characters. For the same number of characters, Japanese needs about 4.1 times as many tokens as English. Of its 127,998 vocabulary entries, 1,866 contain kana or kanji.
  • Context length: The limit written in the config (max_position_embeddings) is 262,144 tokens, roughly 280,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 368 and 1774 were among the positions where outliers (extremely large values) appear most often, in 48 of 50 layers. Position 368 also appeared in the tally of positions where normalization-layer weights take extreme values (368: 52 of 201 normalization layers). This kind of skew is generally considered a cause of accuracy loss when a model is compressed (quantized).

One line: MoE (6 of 384 experts active) · kolibri1 · 50 layers · 78.10B params · 3.79B active · GQA (12:1) · context 262,144 · vocab 128,000

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 75,497,472,000 96.66%
Attention 1,703,936,000 2.18%
Output head 327,680,000 0.42%
Embedding 327,680,000 0.42%
Shared experts 196,608,000 0.25%
Router 49,171,200 0.06%
Normalization 527,360 0.00%

Structure

Values from config.json.

Item Value
model_type / architectures kolibri1 / Kolibri1ForCausalLM
Layers 50
Hidden size 2,560
FFN intermediate size (intermediate_size) —
Attention type GQA (12:1)
Heads / KV heads / head dim 48 / 4 / 128
Sliding window 513 (use_sliding_window=Yes)
Layer types (layer_types) sliding_attention×40, full_attention×10
RoPE θ 10,000
RoPE scaling —
Partial rotary (partial_rotary_factor) —
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) 384
Experts counted from tensor names (count: layers) 384:50 layers
Active experts per token 6
Expert intermediate size (moe_intermediate_size) 512
Shared experts 1
MoE layers 50
Leading dense layers (first_k_dense_replace) —
Expert parameters 75.50B
Active parameters 3.79B

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 128,000 128,000 Yes model.embed_tokens.weight
hidden_size 2,560 2,560 Yes model.embed_tokens.weight
num_hidden_layers 50 50 Yes largest layer index + 1 (excluding MTP layers)
num_key_value_heads×head_dim 512 512 Yes model.layers.0.self_attn.k_proj.weight
num_attention_heads×head_dim 6,144 6,144 Yes model.layers.0.self_attn.q_proj.weight
moe_intermediate_size 512 512 Yes model.layers.0.mlp.experts.0.gate_proj.weight
tie_word_embeddings (no output-head tensor) No No Yes tensor list
num_experts 384 384 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 427 1.052 3.15 24.1% Yes
English 1,201 279 4.305 4.405 0.0% Yes

Of 127,998 vocabulary entries, 1,866 (1.46%) contain at least one kana or kanji character and 667 contain two or more (loaded with tokenizers).

Special tokens and chat format

92 special tokens. BOS: None, EOS: <|im_end|>. Chat template: present (6236 characters, sha256 prefix 9ba35d4bd6ba). 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

<|text|>, <|endoftext|>, <|pad|>, <|chat|>, <|im_start|>, <|/role|>, <|im_end|>, <|pii-email-address|>, <|pii-iban|>, <|pii-ip-address|>, <|pii-phone-number|>, <|pii_4|>, <|pii_5|>, <|pii_6|>, <|pii_7|>, <|pii_8|>, <|pii_9|>, <|reserved-token-2|>, <|reserved-token-3|>, <|reserved-token-4|>, <|reserved-token-5|>, <|reserved-token-6|>, <|reserved-token-7|>, <|reserved-token-8|>, <|reserved-token-9|>, <|reserved-token-10|>, <|reserved-token-11|>, <|reserved-token-12|>, <|reserved-token-13|>, <|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|> …

Weights (stage 1)

Analyzed 58,353 of 58,353 tensors (compute time 3.5 min). 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).

RMS

max|w| ÷ RMS

Excess kurtosis

Matrices with the largest values (main-model weights with 2 or more dimensions): max|w| ÷ RMS 170.793 (model.layers.0.mlp.experts.346.up_proj.weight), excess kurtosis 3308.995 (model.layers.0.mlp.experts.346.gate_proj.weight), outlier share 0.776% (model.layers.2.mlp.experts.33.up_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 50)
368 48
1774 48
349 47
450 47
930 47
1061 47
1220 47
1601 47
88 46
105 46

Normalization-layer weights

For each of the 201 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 100 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
1591 119
676 55
2406 55
831 54
368 52
2284 52
1044 51
2018 50
1581 48
1865 47

Dimensions shared with the top 10 outlier channels above: 368.

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 57600 0.0023 0.2189 0.4738 model.layers.0.mlp.experts.157.gate_proj.weight
Attention 200 0.0229 0.1105 0.4972 model.layers.0.self_attn.o_proj.weight
Shared experts 150 0.008 0.0922 0.2214 model.layers.3.mlp.shared_experts.gate_proj.weight
Router 50 0.0027 0.0144 0.0206 model.layers.0.mlp.gate.weight
Output head 1 0.0039 0.0039 0.0039 lm_head.weight
Embedding 1 0.0054 0.0054 0.0054 model.embed_tokens.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).

lm_head.weight (128,000 rows)

Min Bottom 0.1% Bottom 1% Median Top 1% Max
0.017 0.0224 0.0252 0.0317 0.0372 0.0633

Rows with small norms (128 rows in the bottom 0.1%, the 20 smallest): 275:'.\n\n'(0.017), 314:'.\n'(0.0179), 46:'.'(0.0186), 25327:'\\).'(0.0196), 9947:' \\).\n\n'(0.0196), 10283:'\\),'(0.0197), 15751:'\\).\n\n'(0.0199), 83209:'$.\n\n'(0.0199), 469:'\\)'(0.0199), 9800:' \\),'(0.02), 120952:'}$.\n\n'(0.0201), 44927:'}\\).'(0.0201), 18380:' \\).'(0.0202), 120333:')$,'(0.0202), 3034:' \\)'(0.0203), 56294:'$,'(0.0203), 46809:'}\\),'(0.0204), 8015:')\\)'(0.0204), 3035:'}\\)'(0.0204), 120279:'}$.'(0.0205)

model.embed_tokens.weight (128,000 rows)

Min Bottom 0.1% Bottom 1% Median Top 1% Max
14.8651 16.4528 18.8642 33.3882 63.6417 101.5311

Rows with small norms (128 rows in the bottom 0.1%, the 20 smallest): 403:'ter'(14.8651), 758:'ten'(14.9217), 422:'ate'(14.9669), 775:'te'(14.9955), 3605:'ler'(15.1351), 268:'er'(15.145), 360:'age'(15.1588), 829:'es'(15.1714), 6812:'ers'(15.2225), 2240:'les'(15.3769), 339:'der'(15.4237), 290:'ation'(15.4301), 5166:'ates'(15.4312), 1120:'ating'(15.4384), 372:'le'(15.4399), 890:'ER'(15.4526), 10:'\n'(15.4605), 289:'ung'(15.4664), 499:'ier'(15.4764), 259:'ing'(15.4815)

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

Expert similarity

Measurement conditions

  • mbscope 0.2.9 (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.8. The measurements were re-aggregated with mbscope 0.2.9 without re-measuring
  • The text and figures of this record were generated with mbscope 0.2.10 (aggregated with 0.2.9)

Comments

…

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

← All notes