Icold commited on
Commit
c155332
·
verified ·
1 Parent(s): b52b8b3

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +34 -11
README.md CHANGED
@@ -25,17 +25,33 @@ checkpoints. The training corpus is separate: see
25
  [Icold21/kron-corpus](https://huggingface.co/datasets/Icold21/kron-corpus) and
26
  the research log at [github.com/Icold21/kron-llm](https://github.com/Icold21/kron-llm).
27
 
28
- ## Shipped checkpoints
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  | file | parameters | size | quality |
31
  |---|---:|---:|---|
32
  | `q8g_int8.pt` | 2,851,280 | 3.14 MB | **0.7542 bits/byte** (TinyStories val, 61.4M tokens seen) |
33
- | `q2_int8.pt` | 2,079,992 | 2.34 MB | previous model, same corpus |
34
 
35
  Int8 quantisation costs +0.0003 bpb on Q8g. The fp32 checkpoint is 11.4 MB and
36
  is not shipped.
37
 
38
- ## Usage
39
 
40
  ```python
41
  import torch
@@ -47,10 +63,10 @@ model = KronTransformer(ckpt["cfg"]).eval()
47
  load_int8(model, ckpt["model"])
48
  ```
49
 
50
- The model is a research artifact: it writes short English and Russian text and
51
- is not an instruct-tuned assistant.
52
 
53
- ## Architecture at a glance
54
 
55
  | | |
56
  |---|---|
@@ -59,17 +75,24 @@ is not an instruct-tuned assistant.
59
  | FFN | gated (SwiGLU-style) |
60
  | tokenizer | BPE-4096, tied factorised embedding (rank 128) |
61
 
 
 
 
62
  Measured, not assumed: the depth carry is worth 1.1 % bpb, freezing its scalar
63
  0.8 %, and widening the window to four layers *costs* 1.4 %. Details in the
64
  [research log](https://github.com/Icold21/kron-llm/blob/main/docs/results.md).
65
 
 
 
 
 
66
  ## Next
67
 
68
- The 10M model (Q10: d=512, 25 layers, K=10, 9,938,886 parameters) trains on
69
- [KronCorpus](https://huggingface.co/datasets/Icold/kron-corpus) — 1.6B tokens of
70
- bilingual English/Russian text with a science accent — on two Kaggle T4s. The
71
- checkpoint will appear here when the first epoch finishes; the corpus card
72
- documents every source and licence.
73
 
74
  ## Licence
75
 
 
25
  [Icold21/kron-corpus](https://huggingface.co/datasets/Icold21/kron-corpus) and
26
  the research log at [github.com/Icold21/kron-llm](https://github.com/Icold21/kron-llm).
27
 
28
+ ## Main model: Q10 (10M)
29
+
30
+ **Q10 is the model this project is about**: 9,938,886 parameters (d=512, 25
31
+ layers, 8K bilingual BPE, Kronecker K=10), trained on 2.78B tokens of bilingual
32
+ English/Russian text. It is mid-pretraining — **step 36,549 of 169,884 (21.5 %)**
33
+ of the first epoch — and reaches **1.1828 bits/byte** mixed (EN 1.4327 /
34
+ RU 0.9411) on a held-out bin that never changes; GPT-2-124M scores 1.554 on the
35
+ same blocks. The checkpoint lives on Kaggle
36
+ ([`icold21/kron-q10-ckpt`](https://www.kaggle.com/datasets/icold21/kron-q10-ckpt))
37
+ and will be mirrored here when the epoch finishes.
38
+
39
+ ## Experimental checkpoints (the development bench)
40
+
41
+ The two small checkpoints below are **not** the product. They are the TinyStories
42
+ bench that made the 10M configuration cheap to choose: each isolates one
43
+ decision (tokenizer, gated FFN, depth carry), and their bits/byte is not
44
+ comparable with Q10's bilingual number.
45
 
46
  | file | parameters | size | quality |
47
  |---|---:|---:|---|
48
  | `q8g_int8.pt` | 2,851,280 | 3.14 MB | **0.7542 bits/byte** (TinyStories val, 61.4M tokens seen) |
49
+ | `q2_int8.pt` | 2,079,992 | 2.34 MB | previous bench model, same corpus |
50
 
51
  Int8 quantisation costs +0.0003 bpb on Q8g. The fp32 checkpoint is 11.4 MB and
52
  is not shipped.
53
 
54
+ ## Usage (bench checkpoint)
55
 
56
  ```python
57
  import torch
 
63
  load_int8(model, ckpt["model"])
64
  ```
65
 
66
+ The bench model is a research artifact: it writes short English text and is not
67
+ an instruct-tuned assistant.
68
 
69
+ ## Architecture of the bench model
70
 
71
  | | |
72
  |---|---|
 
75
  | FFN | gated (SwiGLU-style) |
76
  | tokenizer | BPE-4096, tied factorised embedding (rank 128) |
77
 
78
+ The main model keeps the same block but scales to d=512, 25 layers, K=10 and the
79
+ 8K bilingual BPE, with pre-norm QK and a gated FFN.
80
+
81
  Measured, not assumed: the depth carry is worth 1.1 % bpb, freezing its scalar
82
  0.8 %, and widening the window to four layers *costs* 1.4 %. Details in the
83
  [research log](https://github.com/Icold21/kron-llm/blob/main/docs/results.md).
84
 
85
+ ## Training budget
86
+
87
+ At the measured 2.552 s/step on a single Kaggle T4 (batch 32, seq 512), one epoch of the 2.78B-token corpus is **120 GPU-hours**; the decay pass (30 % of the epoch, quality-selected slice plus 5 % chat) adds **35**, and SFT 4,000 steps adds **2.8**. Roughly **132 GPU-hours remain** from step 36,549 -- about 12 sessions of quota. Derivation in `docs/compute_budget.md` of the code repository.
88
+
89
  ## Next
90
 
91
+ Q10 continues on [KronCorpus](https://huggingface.co/datasets/Icold/kron-corpus)
92
+ — 2.78B tokens of bilingual English/Russian text with a science accent — on one
93
+ Kaggle T4. After the epoch: a decay pass (29 % of the epoch, quality-selected,
94
+ plus 5 % chat) and SFT. The weights will be mirrored here when the epoch
95
+ finishes; the corpus card documents every source and licence.
96
 
97
  ## Licence
98