AxiomicLabs/GPT-X3-150M — model analysis

Summary

  • Size: The model consists of about 149 million numbers (parameters). Its saved files total about 600MB.
  • Structure: A dense model that uses all of its parameters for every input. About 40% of the parameters are assigned to the part that holds knowledge (FFN), about 30% to the part that reads context (attention), and about 30% to the vocabulary dictionary (embedding).
  • 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 2.9 times as many tokens as English. Of its 64,402 vocabulary entries, 4,892 contain kana or kanji.
  • Context length: The limit written in the config (max_position_embeddings) is 8,192 tokens, roughly 12,000 Japanese characters or 35,000 English characters at the same ratio as the fixed texts above.
  • Skew in values: Values inside the model flow in groups of 576. Position 356 was among the positions where outliers (extremely large values) appear most often, in 22 of 24 layers. Position 356 also appeared in the tally of positions where normalization-layer weights take extreme values (34 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 · gptx3 · 24 layers · 149.40M params · GQA (3:1) · context 8,192 · 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) 65,691,648 43.97%
Attention 45,930,402 30.74%
Embedding 37,748,736 25.27%
Normalization 30,144 0.02%

Structure

Values from config.json.

Item Value
model_type / architectures gptx3 / GPTX3ForCausalLM
Layers 24
Hidden size 576
FFN intermediate size (intermediate_size) 1,584
Attention type GQA (3:1)
Heads / KV heads / head dim 9 / 3 / 64
Sliding window — (use_sliding_window=—)
Layer types (layer_types) —
RoPE θ 100,000
RoPE scaling —
Partial rotary (partial_rotary_factor) —
Context length (max_position_embeddings) 8,192
Tied input/output embeddings Yes
Activation —
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 transformer.wte.weight
hidden_size 576 576 Yes transformer.wte.weight
num_hidden_layers 24 24 Yes largest layer index + 1 (excluding MTP layers)
num_key_value_heads×head_dim 192 192 Yes transformer.h.3.attn.k_proj.weight
num_attention_heads×head_dim 576 576 Yes transformer.h.0.attn.kernel.q_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 311 1.444 4.325 10.9% Yes
English 1,201 284 4.229 4.327 0.0% Yes

Of 64,402 vocabulary entries, 4,892 (7.60%) contain at least one kana or kanji character and 2,667 contain two or more (loaded with tokenizers).

Special tokens and chat format

503 special tokens. BOS: <|startoftext|>, EOS: <|endoftext|>. Chat template: none. Thinking tags: No, tool calls: Yes, FIM: Yes, image tokens: Yes (found by searching special-token names and the template text).

List of special tokens

<|pad|>, <|startoftext|>, <|endoftext|>, <|fim_pre|>, <|fim_mid|>, <|fim_suf|>, <|im_start|>, <|im_end|>, <|tool_list_start|>, <|tool_list_end|>, <|tool_response_start|>, <|tool_response_end|>, <|reserved_6|>, <|reserved_7|>, <|reserved_8|>, <|reserved_9|>, <|reserved_10|>, <|reserved_11|>, <|reserved_12|>, <|reserved_13|>, <|reserved_14|>, <|reserved_15|>, <|reserved_16|>, <|reserved_17|>, <|reserved_18|>, <|reserved_19|>, <|reserved_20|>, <|reserved_21|>, <|reserved_22|>, <|reserved_23|>, <|reserved_24|>, <|reserved_25|>, <|reserved_26|>, <|reserved_27|>, <|reserved_28|>, <|reserved_29|>, <|reserved_30|>, <|reserved_31|>, <|reserved_32|>, <|reserved_33|>, <|reserved_34|>, <|reserved_35|>, <|reserved_36|>, <|reserved_37|>, <|reserved_38|>, <|reserved_39|>, <|reserved_40|>, <|reserved_41|>, <|reserved_42|>, <|reserved_43|>, <|reserved_44|>, <|reserved_45|>, <|reserved_46|>, <|reserved_47|>, <|reserved_48|>, <|reserved_49|>, <|reserved_50|>, <|reserved_51|>, <|reserved_52|>, <|reserved_53|> …

Weights (stage 1)

Analyzed 464 of 464 tensors (compute time 2 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 43.692 (transformer.wte.weight), excess kurtosis 256.187 (transformer.wte.weight), outlier share 0.608% (transformer.h.18.attn.kernel.q_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 24)
356 22
103 20
50 13
303 13
146 11
21 10
242 10
410 10
5 9
40 9

Normalization-layer weights

For each of the 49 normalization layers whose length equals the hidden size (576), 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 30 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
356 34
410 34
303 31
21 28
417 28
560 24
55 22
565 20
361 19
103 17

Dimensions shared with the top 10 outlier channels above: 21, 103, 303, 356, 410.

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 204 0.0366 0.1691 0.5617 transformer.h.17.attn.kernel.w_proj.weight
FFN (dense) 72 0.0788 0.2246 0.3935 transformer.h.23.mlp.w_up.weight
Embedding 1 0.0027 0.0027 0.0027 transformer.wte.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).

transformer.wte.weight (65,536 rows)

Min Bottom 0.1% Bottom 1% Median Top 1% Max
2.5198 2.8206 3.0394 5.0941 7.0759 10.4964

Rows with small norms (66 rows in the bottom 0.1%, the 20 smallest): 22749:'.The'(2.5198), 6463:' Although'(2.6153), 14349:' amazing'(2.6278), 20077:'550'(2.6332), 4665:' political'(2.6466), 12580:' marine'(2.6741), 17311:'260'(2.6894), 16105:' fishing'(2.6923), 17107:' innovative'(2.6955), 5160:' economic'(2.6982), 19162:'330'(2.7005), 6018:' military'(2.7041), 20603:'.In'(2.7071), 21163:'340'(2.7073), 14217:'142'(2.7087), 14015:'148'(2.7177), 16903:' chicken'(2.7188), 14227:'240'(2.7268), 11763:' spiritual'(2.7276), 11078:' monitoring'(2.7315)

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.13 (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.11. The measurements were re-aggregated with mbscope 0.2.13 without re-measuring

Comments

…

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

← All notes