ModhiSathvik commited on
Commit
71a9a06
·
verified ·
1 Parent(s): 2f61a08

Index README for the model folders

Browse files
Files changed (1) hide show
  1. README.md +17 -26
README.md CHANGED
@@ -1,38 +1,31 @@
1
  ---
2
  library_name: pytorch
3
  tags: [text-generation, small-language-model, research]
4
- datasets: [HuggingFaceFW/fineweb-edu]
5
  ---
6
 
7
- # modelv8: v8.3, 71M parameters, trained on FineWeb-Edu
8
 
9
- A small research language model from the speed-check-ai-traning project (branch `paper-faithful-hrm`).
10
- It is a **base model**: trained only to continue web text, with no instruction or chat tuning.
11
 
12
- ## Architecture (v8.3)
13
- - 6 blocks, width 768, 12 attention heads, MLP 3072, vocabulary 16,384 (BPE)
14
- - Forgetting attention (FoX, no position encoding); blocks 1, 2, 4, 5 see a 64-token window, blocks 3 and 6
15
- the whole text; Canon layers (4-token causal convolution); QK-norm; ReLU^2 MLP; value residual;
16
- U-net skips; soft-capped logits
17
- - 71,273,629 parameters (46,107,805 outside the embedding and output layer)
18
 
19
- ## Training
20
- - FineWeb-Edu (sample-10BT), 1.42B tokens (~20 per parameter), one pass, 1,024-token pieces
21
- - Muon (hidden matrices) + Adam-atan2; learning rate 0.0024 held, then decayed linearly to 0 over the
22
- last 50% of steps; no EMA; bf16; one RTX 5090, 91.4 minutes
23
 
24
- ## Results (held-out FineWeb-Edu, live weights)
25
- - held-out loss 3.204
26
- - token accuracy 40.5%
27
- - BLiMP (grammar, BabyLM 2026 filtered) 77.8%
28
-
29
- ## Limitations
30
- Fluent and grammatical for a few sentences; common facts sometimes right ("Photosynthesis is the
31
- process by which plants convert light energy into chemical energy"), specific facts often wrong,
32
- loses the thread over longer text, loops under greedy decoding, almost no code. Not for any real use.
33
 
34
  ## Loading
35
- Needs the model code from the project (`src/hrm_text`):
 
36
 
37
  ```python
38
  import json, torch
@@ -44,5 +37,3 @@ model = build_model(config)
44
  model.load_state_dict(load_file("model.safetensors"))
45
  model.eval()
46
  ```
47
-
48
- Generation: `tools/talk.py` in the project (temperature 0.4-0.7 with top-k 20-50 reads best).
 
1
  ---
2
  library_name: pytorch
3
  tags: [text-generation, small-language-model, research]
4
+ datasets: [HuggingFaceFW/fineweb-edu, roneneldan/TinyStories]
5
  ---
6
 
7
+ # modelv8: small research language models (v8 architecture family)
8
 
9
+ Base language models from the speed-check-ai-traning research project, one folder each. They are
10
+ research models, not assistants: they continue text, with no instruction or chat tuning.
11
 
12
+ | Folder | Model | Parameters | Trained on | Held-out result |
13
+ |---|---|---|---|---|
14
+ | [`fineweb-v83-71m`](fineweb-v83-71m) | v8.3, width 768, 6 blocks | 71.3M (46.1M outside the embedding and output layers) | FineWeb-Edu, 1.42B tokens, one pass | loss 3.204, BLiMP grammar 77.8% |
15
+ | [`tinystories-v813-w512`](tinystories-v813-w512) | v8.13 (v8.3 + NextLat training loss), width 512, 6 blocks | 26.3M (24.7M used when generating) | all of TinyStories V2 (GPT-4), about 500M tokens, one pass | loss 1.1075 |
 
 
16
 
17
+ Each folder holds `model.safetensors`, `config.json`, `tokenizer.json` and its own `README.md` (architecture,
18
+ training, results, limitations, an example and how to load it).
 
 
19
 
20
+ ## The architecture
21
+ Decoder-only, 6 blocks of forgetting attention (FoX, no position encoding) with a 64-token window in blocks
22
+ 1, 2, 4, 5 and whole-text attention in blocks 3 and 6, Canon layers (4-token causal convolution), QK-norm,
23
+ ReLU^2 MLP, value residual, U-net skips and soft-capped logits. Trained with Muon and a learning rate that is
24
+ held and then decayed to zero over the last half of the steps.
 
 
 
 
25
 
26
  ## Loading
27
+ The v8 architecture is custom, so loading needs the model code from the project (`src/hrm_text`). In each
28
+ folder:
29
 
30
  ```python
31
  import json, torch
 
37
  model.load_state_dict(load_file("model.safetensors"))
38
  model.eval()
39
  ```