PleIAs/baguettotron-600m — model analysis

Summary

  • Size: The model consists of about 608 million numbers (parameters). Its saved files total about 1.22GB.
  • Structure: A dense model that uses all of its parameters for every input. About 70% of the parameters are assigned to the part that holds knowledge (FFN), about 20% to the part that reads context (attention), and about 10% to the vocabulary dictionary (embedding).
  • Japanese text: In Japanese, one token holds about 1.0 characters. In English, one token holds about 4.1 characters. For the same number of characters, Japanese needs about 4.0 times as many tokens as English. Of its 65,536 vocabulary entries, 846 contain kana or kanji.
  • Context length: The limit written in the config (max_position_embeddings) is 2,048 tokens, roughly 2,100 Japanese characters or 8,400 English characters at the same ratio as the fixed texts above.
  • Skew in values: Values inside the model flow in groups of 1,024. Position 10 was among the positions where outliers (extremely large values) appear most often, in 47 of 48 layers. Position 10 also appeared in the tally of positions where normalization-layer weights take extreme values (95 of 97 normalization layers). This kind of skew is generally considered a cause of accuracy loss when a model is compressed (quantized).

One line: Dense · llama · 48 layers · 608.27M params · GQA (4:1) · context 2,048 · vocab 65,536

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) 415,236,096 68.26%
Attention 125,829,120 20.69%
Embedding 67,108,864 11.03%
Normalization 99,328 0.02%

Structure

Values from config.json.

Item Value
model_type / architectures llama / LlamaForCausalLM
Layers 48
Hidden size 1,024
FFN intermediate size (intermediate_size) 2,816
Attention type GQA (4:1)
Heads / KV heads / head dim 16 / 4 / 64
Sliding window — (use_sliding_window=—)
Layer types (layer_types) —
RoPE θ 10,000
RoPE scaling —
Partial rotary (partial_rotary_factor) —
Context length (max_position_embeddings) 2,048
Tied input/output embeddings Yes
Activation silu
Normalization ε 1.000e-06

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 65,536 65,536 Yes model.embed_tokens.weight
hidden_size 1,024 1,024 Yes model.embed_tokens.weight
num_hidden_layers 48 48 Yes largest layer index + 1 (excluding MTP layers)
num_key_value_heads×head_dim 256 256 Yes model.layers.0.self_attn.k_proj.weight
num_attention_heads×head_dim 1,024 1,024 Yes model.layers.0.self_attn.q_proj.weight
intermediate_size 2,816 2,816 Yes model.layers.0.mlp.gate_proj.weight
tie_word_embeddings (no output-head tensor) Yes Yes 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 435 1.032 3.092 25.3% Yes
English 1,201 292 4.113 4.209 0.0% Yes

Of 65,536 vocabulary entries, 846 (1.29%) contain at least one kana or kanji character and 93 contain two or more (loaded with tokenizers).

Special tokens and chat format

49 special tokens. BOS: None, EOS: None. Chat template: present (163 characters, sha256 prefix 5745df199190). Thinking tags: Yes, tool calls: No, FIM: No, image tokens: No (found by searching special-token names and the template text).

List of special tokens

[UNK], <|begin_of_text|>, <|end_of_text|>, [PAD], <|im_start|>, <|im_end|>, <think>, </think>, source_1, source_2, source_3, source_4, source_5, source_6, source_7, source_8, source_9, source_10, <ref, </ref>, →, ↺, ※, ?maybe?, ●, ◐, ○, ⚠, ☐, ☑, ✓, ⟨H≈0.1⟩, ⟨H≈0.2⟩, ⟨H≈0.3⟩, ⟨H≈0.4⟩, ⟨H≈0.5⟩, ⟨H≈0.6⟩, ⟨H≈0.7⟩, ⟨H≈0.8⟩, ⟨H≈0.9⟩, ⟨H≈1.0⟩, ⟨H≈1.1⟩, ⟨H≈1.2⟩, ⟨H≈1.3⟩, ⟨H≈1.4⟩, ⟨H≈1.5⟩, ⟨H≈1.6⟩, ⟨H≈1.7⟩, ⟨H≈1.8⟩

Weights (stage 1)

Analyzed 434 of 434 tensors (compute time 1 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).

RMS

max|w| ÷ RMS

Excess kurtosis

Matrices with the largest values (main-model weights with 2 or more dimensions): max|w| ÷ RMS 49.321 (model.layers.0.self_attn.o_proj.weight), excess kurtosis 281.039 (model.layers.0.self_attn.o_proj.weight), outlier share 0.535% (model.layers.0.self_attn.q_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 48)
10 47
710 45
759 41
171 33
408 29
684 28
700 26
555 23
594 22
167 16

Normalization-layer weights

For each of the 97 normalization layers whose length equals the hidden size (1,024), the dimensions farthest from the median (top 16) were collected, and the number of normalization layers in which each dimension appeared was counted (measured).

Dimension Normalization layers it appeared in
10 95
710 71
408 68
759 66
684 57
19 56
594 54
867 45
564 44
593 42

Dimensions shared with the top 10 outlier channels above: 10, 408, 594, 684, 710, 759.

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 192 0.0024 0.1011 0.4361 model.layers.0.self_attn.o_proj.weight
FFN (dense) 144 0.0106 0.0944 0.2979 model.layers.0.mlp.down_proj.weight
Embedding 1 0.0052 0.0052 0.0052 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).

model.embed_tokens.weight (65,536 rows)

Min Bottom 0.1% Bottom 1% Median Top 1% Max
3.5556 3.567 3.575 5.7699 6.7706 8.0604

Rows with small norms (66 rows in the bottom 0.1%, the 20 smallest): 57514:' \u2003'(3.5556), 41480:' kötele'(3.556), 2525:' '(3.5595), 61544:'дек'(3.5597), 61350:'EqualTo'(3.5599), 43204:' Europene'(3.5608), 36936:' χρηματο'(3.5609), 36585:' .^'(3.5614), 62508:'кспозиции'(3.562), 59966:' schvá'(3.5621), 64096:' apstipr'(3.5624), 49524:' návrh'(3.5627), 44768:' izme'(3.5629), 52338:' iestā'(3.563), 64888:' joilla'(3.5632), 53255:' hmot'(3.5632), 42637:' πληρο'(3.5634), 54472:' plač'(3.5636), 44997:' turėtų'(3.5637), 37035:'%%%%%%%%'(3.5639)

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