RecursiveSI/flint — model analysis
Summary
- Size: The model consists of about 39.8 billion numbers (parameters). Its saved files total about 79.6GB.
- Structure: A mixture-of-experts (MoE) model that, for each input, selects only 6 of its 256 experts. Of about 39.8 billion parameters in total, about 2.8 billion are used per computation step. About 95% 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.4 characters. In English, one token holds about 4.4 characters. For the same number of characters, Japanese needs about 3.1 times as many tokens as English. Of its 150,144 vocabulary entries, 8,472 contain kana or kanji.
- Context length: The limit written in the config (max_position_embeddings) is 262,144 tokens, roughly 370,000 Japanese characters or 1,200,000 English characters at the same ratio as the fixed texts above.
- Skew in values: Values inside the model flow in groups of 2,048. Positions 14, 33, 53, 55, and 56 were among the positions where outliers (extremely large values) appear most often, in 45 of 49 layers. This kind of skew is generally considered a cause of accuracy loss when a model is compressed (quantized).
One line: MoE (6 of 256 experts active) · flint · 49 layers · 39.79B params · 2.82B active · GQA (8:1) · context 262,144 · vocab 150,144
Basic information
- Model: RecursiveSI/flint (revision
2a247be0c0ae, config.json) - License: apache-2.0
- Declared base_model: none
- Storage dtypes: BF16 39.79B
Architecture (stage 0)
Parameters by part
Counted from the tensor shapes in the safetensors headers (measured).
| Part | Parameters | Share |
|---|---|---|
| Experts | 37,849,399,296 | 95.13% |
| Attention | 924,845,600 | 2.32% |
| Output head | 307,494,912 | 0.77% |
| Embedding | 307,494,912 | 0.77% |
| Shared experts | 295,698,432 | 0.74% |
| FFN (dense) | 75,497,472 | 0.19% |
| Router | 24,641,536 | 0.06% |
| Normalization | 215,296 | 0.00% |
Structure
Values from config.json.
| Item | Value |
|---|---|
| model_type / architectures | flint / FlintForCausalLM |
| Layers | 49 |
| Hidden size | 2,048 |
| FFN intermediate size (intermediate_size) | 6,144 |
| Attention type | GQA (8:1) |
| Heads / KV heads / head dim | 32 / 4 / 128 |
| Sliding window | 513 (use_sliding_window=Yes) |
| Layer types (layer_types) | full_attention×14, sliding_attention×35 |
| 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) | 256 |
| Experts counted from tensor names (count: layers) | 256:47 layers |
| Active experts per token | 6 |
| Expert intermediate size (moe_intermediate_size) | 512 |
| Shared experts | 1 |
| MoE layers | 47 |
| Leading dense layers (first_k_dense_replace) | — |
| Expert parameters | 37.85B |
| Active parameters | 2.82B |
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 | 150,144 | 150,144 | Yes | model.embed_tokens.weight |
| hidden_size | 2,048 | 2,048 | Yes | model.embed_tokens.weight |
| num_hidden_layers | 49 | 49 | 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 | 4,096 | 4,096 | Yes | model.layers.0.self_attn.q_proj.weight |
| intermediate_size | 6,144 | 6,144 | Yes | model.layers.0.mlp.gate_proj.weight |
| moe_intermediate_size | 512 | 512 | Yes | model.layers.2.mlp.experts.0.gate_proj.weight |
| tie_word_embeddings (no output-head tensor) | No | No | Yes | tensor list |
| num_experts | 256 | 256 | 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 | 314 | 1.43 | 4.283 | 7.6% | Yes |
| English | 1,201 | 273 | 4.399 | 4.502 | 0.0% | Yes |
Of 150,144 vocabulary entries, 8,472 (5.64%) contain at least one kana or kanji character and 5,462 contain two or more (loaded with tokenizers).
Special tokens and chat format
132 special tokens. BOS: <|begin_of_text|>, EOS: <|end_of_text|>. Chat template: present (2328 characters, sha256 prefix 7940f4ffa327).
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
<|begin_of_text|>, <|end_of_text|>, <|system|>, <|user|>, <|assistant|>, <|observation|>, <|developer|>, <|reserved_150019|>, <|reserved_150020|>, <|reserved_150021|>, <|reserved_150022|>, <|reserved_150023|>, <|reserved_150024|>, <|reserved_150025|>, <|reserved_150026|>, <|reserved_150027|>, <|reserved_150028|>, <|reserved_150029|>, <|reserved_150030|>, <|reserved_150031|>, <|reserved_150032|>, <|reserved_150033|>, <|reserved_150034|>, <|reserved_150035|>, <|reserved_150036|>, <|reserved_150037|>, <|reserved_150038|>, <|reserved_150039|>, <|reserved_150040|>, <|reserved_150041|>, <|reserved_150042|>, <|reserved_150043|>, <|reserved_150044|>, <|reserved_150045|>, <|reserved_150046|>, <|reserved_150047|>, <|reserved_150048|>, <|reserved_150049|>, <|reserved_150050|>, <|reserved_150051|>, <|reserved_150052|>, <|reserved_150053|>, <|reserved_150054|>, <|reserved_150055|>, <|reserved_150056|>, <|reserved_150057|>, <|reserved_150058|>, <|reserved_150059|>, <|reserved_150060|>, <|reserved_150061|>, <|reserved_150062|>, <|reserved_150063|>, <|reserved_150064|>, <|reserved_150065|>, <|reserved_150066|>, <|reserved_150067|>, <|reserved_150068|>, <|reserved_150069|>, <|reserved_150070|>, <|reserved_150071|> …
Weights (stage 1)
Analyzed 36,734 of 36,734 tensors (compute time 5.3 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). 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 245.885 (model.layers.48.mlp.experts.182.gate_proj.weight), excess kurtosis 7156.168 (model.layers.48.mlp.experts.195.up_proj.weight), outlier share 0.496% (model.layers.46.mlp.shared_expert.gate_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 49) |
|---|---|
| 14 | 45 |
| 33 | 45 |
| 53 | 45 |
| 55 | 45 |
| 56 | 45 |
| 96 | 45 |
| 245 | 45 |
| 5 | 44 |
| 8 | 44 |
| 12 | 44 |
Normalization-layer weights
For each of the 99 normalization layers whose length equals the hidden size (2,048), 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 98 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 |
|---|---|
| 1904 | 81 |
| 996 | 56 |
| 209 | 39 |
| 245 | 33 |
| 1885 | 31 |
| 911 | 28 |
| 197 | 23 |
| 551 | 22 |
| 613 | 22 |
| 1265 | 22 |
Dimensions shared with the top 10 outlier channels above: 245.
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 |
|---|---|---|---|---|---|
| Experts | 36096 | 0.0022 | 0.1942 | 0.5231 | model.layers.46.mlp.experts.36.gate_proj.weight |
| Attention | 196 | 0.0089 | 0.0635 | 0.4317 | model.layers.48.self_attn.q_proj.weight |
| Shared experts | 141 | 0.0076 | 0.0368 | 0.145 | model.layers.48.mlp.shared_expert.up_proj.weight |
| Router | 47 | 0.0059 | 0.018 | 0.0352 | model.layers.46.mlp.gate.weight |
| FFN (dense) | 6 | 0.0066 | 0.0338 | 0.1537 | model.layers.1.mlp.gate_proj.weight |
| Embedding | 1 | 0.0161 | 0.0161 | 0.0161 | model.embed_tokens.weight |
| Output head | 1 | 0.002 | 0.002 | 0.002 | 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 (150,144 rows)
| Min | Bottom 0.1% | Bottom 1% | Median | Top 1% | Max |
|---|---|---|---|---|---|
| 0.8586 | 0.9156 | 4.3507 | 5.1158 | 5.4502 | 7.5773 |
Rows with small norms (151 rows in the bottom 0.1%, the 20 smallest): 150003:'<|user|>'(0.8586), 150088:'<|reserved_150088|>'(0.8638), 116139:"','','��"(0.8673), 150022:'<|reserved_150022|>'(0.8688), 150130:'<|reserved_150130|>'(0.8725), 150036:'<|reserved_150036|>'(0.877), 187:'�'(0.8772), 150080:'<|reserved_150080|>'(0.878), 150086:'<|reserved_150086|>'(0.8795), 833:'о�'(0.8807), 150090:'<|reserved_150090|>'(0.8819), 150087:'<|reserved_150087|>'(0.8823), 181:'�'(0.8823), 179:'�'(0.8825), 150136:'<|reserved_150136|>'(0.883), 150131:'<|reserved_150131|>'(0.8831), 150025:'<|reserved_150025|>'(0.8832), 127:'�'(0.884), 150052:'<|reserved_150052|>'(0.8843), 150117:'<|reserved_150117|>'(0.8853)
lm_head.weight (150,144 rows)
| Min | Bottom 0.1% | Bottom 1% | Median | Top 1% | Max |
|---|---|---|---|---|---|
| 6.845 | 7.001 | 11.784 | 16.38 | 18.5282 | 21.3458 |
Rows with small norms (151 rows in the bottom 0.1%, the 20 smallest): 150015:'</arg_value>'(6.845), 87990:',ZUPANIJA'(6.8716), 98545:' FIRSTUA'(6.8718), 150007:'</think>'(6.8731), 84395:' SERVICEFACTOR'(6.881), 118673:']]);\r\r\n'(6.8813), 76107:'-SCzech'(6.8821), 57590:',MJESTO'(6.8826), 99406:' FIRSTRU'(6.884), 150010:'<tool_call>'(6.8867), 150006:'<think>'(6.916), 80998:'----------------------------------------#\r\n'(6.92), 146073:' WACApply'(6.9278), 48450:'/hostelmofo'(6.9286), 150005:'<|observation|>'(6.9291), 50719:']={\r\n'(6.9354), 150003:'<|user|>'(6.9463), 60341:'\\guansjcms'(6.9544), 60340:'\\guansj'(6.9554), 150012:'<arg_key>'(6.9572)
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.0015.
Measurement conditions
- mbscope 0.2.16 (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
…