Update README.md
Browse files
README.md
CHANGED
|
@@ -8,12 +8,30 @@ pipeline_tag: text-generation
|
|
| 8 |
tags:
|
| 9 |
- ASCII
|
| 10 |
- BINARY
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
>:), keep an eye out or don't, who knows - im insane muhehehe.
|
| 14 |
|
| 15 |
-
|
|
|
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
tags:
|
| 9 |
- ASCII
|
| 10 |
- BINARY
|
| 11 |
+
- RNN
|
| 12 |
---
|
| 13 |
|
| 14 |
>:), keep an eye out or don't, who knows - im insane muhehehe.
|
| 15 |
|
| 16 |
+
A tiny char-level language model that learns only the binary u8 id stream; all "english/symbols" rendering happens at runtime via a decoder that maps tags (<spc>, <nwl>, <bos>…) to their effects and drops them from display.
|
| 17 |
+
Status: As of this being writen, a full run has begun.
|
| 18 |
|
| 19 |
+
Architecture (modular, 12-layer naming, 4 building blocks)
|
| 20 |
+
layer component config
|
| 21 |
+
0 binary input (memmap, chunk/tapes) B=32, T=1024
|
| 22 |
+
1 embedding wte + wpe vocab=109, d=512
|
| 23 |
+
2–3 GRU blocks (pre-LN + residual) ×2 d=512
|
| 24 |
+
11 head (ln_f + lm_head, tied to wte) 109-way
|
| 25 |
|
| 26 |
+
3,735,040 params, fp32 ≈ 15MB weights.
|
| 27 |
+
Causal by construction; hidden state carried across windows.
|
| 28 |
+
|
| 29 |
+
Data
|
| 30 |
+
TinyStoriesV2-GPT4: 2,118,989 stories → u8 id stream, 1,799,636,685 train ids / 95,696,324 val (95/5, story-boundary split, byte-exact verified).
|
| 31 |
+
Vocab: 109 tokens — 8 specials, 94 ASCII, 7 smart punct; vocab.txt == vocab.bin asserted at every train launch.
|
| 32 |
+
|
| 33 |
+
Training
|
| 34 |
+
Stateful truncated BPTT (k1 = k2 = 1024): gradients truncated per window, state flows forward, reset only at sweep end — truncation + statefulness + tape continuity formally proven in --check.
|
| 35 |
+
AdamW, lr 4e-4, warmup 500, cosine → 4e-5, grad-clip 1.0.
|
| 36 |
+
Hardware: GTX 1660 SUPER (6GB, Turing) — ~95k tok/s, ~5.5h/epoch; dataset stays on CPU memmap (measured: moving it to GPU = +0.08%).
|
| 37 |
+
Checkpoints every 1,000 steps: step, train/val loss, lr, sweep position, weights, plus 2 sampled stories — resumable.
|