techdotus/Ethoric-10M — model analysis

Summary

  • Size: The model consists of about 10 million numbers (parameters). Its saved files total about 40MB.
  • 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: Japanese is split into about 3.0 units (tokens) per character. In English, one token holds about 3.2 characters. For the same number of characters, Japanese needs about 9.7 times as many tokens as English. Of its 5,048 vocabulary entries, 0 contain kana or kanji.
  • Context length: The limit written in the config (max_position_embeddings) is 512 tokens, roughly 170 Japanese characters or 1,700 English characters at the same ratio as the fixed texts above.
  • Skew in values: Values inside the model flow in groups of 256. Position 230 was among the positions where outliers (extremely large values) appear most often, in 11 of 12 layers. Position 230 also appeared in the tally of positions where normalization-layer weights take extreme values (35 of 49 normalization layers). This kind of skew is generally considered a cause of accuracy loss when a model is compressed (quantized).

One line: Dense · ethoric · 12 layers · 9.97M params · GQA (4:1) · context 512 · vocab 5,048

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) 6,644,736 66.68%
Attention 1,990,752 19.98%
Embedding 1,292,288 12.97%
Other 24,576 0.25%
Normalization 13,312 0.13%

Structure

Values from config.json.

Item Value
model_type / architectures ethoric / EthoricForCausalLM
Layers 12
Hidden size 256
FFN intermediate size (intermediate_size) 721
Attention type GQA (4:1)
Heads / KV heads / head dim 8 / 2 / 32
Sliding window — (use_sliding_window=—)
Layer types (layer_types) —
RoPE θ 10,000
RoPE scaling —
Partial rotary (partial_rotary_factor) —
Context length (max_position_embeddings) 512
Tied input/output embeddings Yes
Activation —
Normalization ε 1.000e-05

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 5,048 5,048 Yes model.embed_tokens.weight
hidden_size 256 256 Yes model.embed_tokens.weight
num_hidden_layers 12 12 Yes largest layer index + 1 (excluding MTP layers)
num_key_value_heads×head_dim 64 64 Yes model.layers.0.attn.k_proj.weight
num_attention_heads×head_dim 256 256 Yes model.layers.0.attn.q_proj.weight
intermediate_size 721 721 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 1,345 0.334 1 99.9% Yes
English 1,201 372 3.228 3.304 0.0% Yes

Of 5,048 vocabulary entries, 0 (0.00%) contain at least one kana or kanji character and 0 contain two or more (loaded with tokenizers).

Special tokens and chat format

3 special tokens. BOS: None, EOS: </s>. Chat template: none. Thinking tags: No, tool calls: No, FIM: No, image tokens: No (found by searching special-token names and the template text).

List of special tokens

<s>, </s>, <pad>

Weights (stage 1)

Analyzed 206 of 206 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). 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 22.21 (model.layers.5.mlp.gate_proj.weight), excess kurtosis 38.593 (model.layers.8.attn.k_proj.weight), outlier share 0.293% (model.layers.8.canon_a.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 12)
230 11
30 10
219 9
5 7
47 7
160 7
237 7
40 6
67 6
68 6

Normalization-layer weights

For each of the 49 normalization layers whose length equals the hidden size (256), 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 24 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
30 35
230 35
35 29
108 24
147 24
215 21
27 19
113 19
219 15
195 14

Dimensions shared with the top 10 outlier channels above: 30, 219, 230.

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 60 0.048 0.1818 0.5597 model.layers.8.attn.q_proj.weight
FFN (dense) 36 0.1397 0.3046 0.401 model.layers.3.mlp.down_proj.weight
Embedding 1 0.0108 0.0108 0.0108 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 (5,048 rows)

Min Bottom 0.1% Bottom 1% Median Top 1% Max
0.7674 0.7827 0.8045 1.0372 1.3776 1.5498

Rows with small norms (6 rows in the bottom 0.1%, smallest first): 286:' in'(0.7674), 278:' p'(0.7795), 304:' re'(0.7797), 4247:'736'(0.7821), 4956:'685'(0.7825), 4550:'796'(0.7827)

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