amazon/ALoDLM-8B — model analysis
Summary
- Size: The model consists of about 8.2 billion numbers (parameters). Its saved files total about 16.4GB.
- 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), about 8% to the vocabulary dictionary (embedding), and about 8% to the output head.
- Japanese text: In Japanese, one token holds about 1.5 characters. In English, one token holds about 4.3 characters. For the same number of characters, Japanese needs about 2.9 times as many tokens as English. Of its 151,669 vocabulary entries, 27,206 contain kana or kanji.
- Context length: The limit written in the config (max_position_embeddings) is 40,960 tokens, roughly 60,000 Japanese characters or 170,000 English characters at the same ratio as the fixed texts above.
- Skew in values: Values inside the model flow in groups of 4,096. Position 3772 was among the positions where outliers (extremely large values) appear most often, in 34 of 36 layers. Position 3772 also appeared in the tally of positions where normalization-layer weights take extreme values (26 of 73 normalization layers). This kind of skew is generally considered a cause of accuracy loss when a model is compressed (quantized).
One line: Dense · qwen3 · 36 layers · 8.19B params · GQA (4:1) · context 40,960 · vocab 151,936
Basic information
- Model: amazon/ALoDLM-8B (revision
2c4623d93e28, config.json) - License: cc-by-nc-4.0
- Declared base_model: none
- Storage dtypes: BF16 8.19B
Architecture (stage 0)
Parameters by part
Counted from the tensor shapes in the safetensors headers (measured).
| Part | Parameters | Share |
|---|---|---|
| FFN (dense) | 5,435,817,984 | 66.37% |
| Attention | 1,509,949,440 | 18.43% |
| Embedding | 622,329,856 | 7.60% |
| Output head | 622,329,856 | 7.60% |
| Normalization | 308,224 | 0.00% |
Structure
Values from config.json.
| Item | Value |
|---|---|
| model_type / architectures | qwen3 / Qwen3ForCausalLM |
| Layers | 36 |
| Hidden size | 4,096 |
| FFN intermediate size (intermediate_size) | 12,288 |
| Attention type | GQA (4:1) |
| Heads / KV heads / head dim | 32 / 8 / 128 |
| Sliding window | — (use_sliding_window=No) |
| Layer types (layer_types) | full_attention×36 |
| RoPE θ | 1,000,000 |
| RoPE scaling | — |
| Partial rotary (partial_rotary_factor) | — |
| Context length (max_position_embeddings) | 40,960 |
| Tied input/output embeddings | No |
| 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 | 151,936 | 151,936 | Yes | model.embed_tokens.weight |
| hidden_size | 4,096 | 4,096 | Yes | model.embed_tokens.weight |
| num_hidden_layers | 36 | 36 | Yes | largest layer index + 1 (excluding MTP layers) |
| num_key_value_heads×head_dim | 1,024 | 1,024 | Yes | model.layers.0.self_attn.k_proj.weight |
| num_attention_heads×head_dim | 4,096 | 4,096 | Yes | model.layers.0.self_attn.q_proj.weight |
| intermediate_size | 12,288 | 12,288 | Yes | model.layers.0.mlp.gate_proj.weight |
| tie_word_embeddings (no output-head tensor) | No | No | 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 | 307 | 1.463 | 4.381 | 5.2% | Yes |
| English | 1,201 | 282 | 4.259 | 4.358 | 0.0% | Yes |
Of 151,669 vocabulary entries, 27,206 (17.94%) contain at least one kana or kanji character and 18,299 contain two or more (loaded with tokenizers).
Special tokens and chat format
14 special tokens. BOS: None, EOS: <|im_end|>. Chat template: present (4168 characters, sha256 prefix a55ee1b16601).
Thinking tags: Yes, tool calls: Yes, FIM: No, image tokens: Yes (found by searching special-token names and the template text).
List of special tokens
<|endoftext|>, <|im_start|>, <|im_end|>, <|object_ref_start|>, <|object_ref_end|>, <|box_start|>, <|box_end|>, <|quad_start|>, <|quad_end|>, <|vision_start|>, <|vision_end|>, <|vision_pad|>, <|image_pad|>, <|video_pad|>
Weights (stage 1)
Analyzed 399 of 399 tensors (compute time 8 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.
Matrices with the largest values (main-model weights with 2 or more dimensions): max|w| ÷ RMS 117.009 (model.layers.35.mlp.down_proj.weight), excess kurtosis 15.815 (model.layers.1.mlp.down_proj.weight), outlier share 0.046% (model.layers.2.mlp.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 36) |
|---|---|
| 3772 | 34 |
| 270 | 33 |
| 541 | 31 |
| 994 | 30 |
| 2591 | 30 |
| 339 | 29 |
| 761 | 28 |
| 2073 | 28 |
| 2619 | 26 |
| 411 | 25 |
Normalization-layer weights
For each of the 73 normalization layers whose length equals the hidden size (4,096), 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 72 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 |
|---|---|
| 923 | 32 |
| 3828 | 32 |
| 994 | 31 |
| 270 | 30 |
| 1838 | 30 |
| 2276 | 28 |
| 445 | 26 |
| 2073 | 26 |
| 3772 | 26 |
| 929 | 24 |
Dimensions shared with the top 10 outlier channels above: 270, 994, 2073, 3772.
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).
Stable rank ÷ shorter side by part:
| Part | Matrices | Min | Median | Max | Matrix with the minimum |
|---|---|---|---|---|---|
| Attention | 144 | 0.0059 | 0.0711 | 0.3961 | model.layers.0.self_attn.q_proj.weight |
| FFN (dense) | 108 | 0.0057 | 0.062 | 0.2704 | model.layers.1.mlp.down_proj.weight |
| Embedding | 1 | 0.0141 | 0.0141 | 0.0141 | model.embed_tokens.weight |
| Output head | 1 | 0.0042 | 0.0042 | 0.0042 | 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.embed_tokens.weight (151,936 rows)
| Min | Bottom 0.1% | Bottom 1% | Median | Top 1% | Max |
|---|---|---|---|---|---|
| 0.0096 | 0.1274 | 0.2924 | 1.4487 | 1.7848 | 1.9468 |
Rows with small norms (152 rows in the bottom 0.1%, the 20 smallest): 127572:'ו�'(0.0096), 83971:'$PostalCodesNL'(0.0114), 79270:' ForCanBeConvertedToF'(0.0251), 83969:'PostalCodesNL'(0.0291), 79269:' ForCanBeConverted'(0.0336), 151300:'𝇠'(0.0497), 88372:'useRalative'(0.0512), 151294:'𝆳'(0.0542), 127734:'פייסב'(0.0542), 143335:'ספטמ'(0.0547), 123306:'𪤗'(0.0549), 142386:' zwłaszc'(0.0558), 142834:'お�'(0.0561), 136954:'טלוו'(0.0589), 151298:'𝇚'(0.0618), 151297:'𝇗'(0.0647), 122290:'𦭜'(0.0649), 122578:'𫭼'(0.0654), 151299:'𝇜'(0.0676), 150306:'숕'(0.068)
lm_head.weight (151,936 rows)
| Min | Bottom 0.1% | Bottom 1% | Median | Top 1% | Max |
|---|---|---|---|---|---|
| 0.3951 | 0.4059 | 0.4066 | 1.6951 | 2.0592 | 2.4249 |
Rows with small norms (152 rows in the bottom 0.1%, the 20 smallest): 151551:'퓮'(0.3951), 151090:'퓷'(0.3958), 150886:'뉍'(0.3965), 150017:'욝'(0.3967), 148886:'ﱉ'(0.3968), 150895:'뎟'(0.397), 150858:'굛'(0.3979), 149117:'헠'(0.3981), 149112:'텦'(0.3982), 149414:'툩'(0.3983), 151234:'ﶰ'(0.3984), 149792:'촣'(0.3984), 151030:'짥'(0.3985), 149764:'삻'(0.3986), 150914:'뛩'(0.3986), 149983:'웛'(0.3987), 123206:'�'(0.3988), 150901:'둁'(0.3988), 151000:'엃'(0.3989), 150869:'깣'(0.3992)
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.11 (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 prefix0a714a270435 - Computed on GPU NVIDIA GeForce RTX 3090 (CUDA 13.0, TF32 off) in fp32
Comments
…