NAME0x0 commited on
Commit
c5ad67b
·
verified ·
1 Parent(s): bd432cd

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +69 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: odc-by
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - text-generation
7
+ pretty_name: HAGI tokenized FineWeb-Edu (SmolLM2)
8
+ tags:
9
+ - hagi
10
+ - pretraining
11
+ - tokenized
12
+ - fineweb-edu
13
+ - clifford-algebra
14
+ ---
15
+
16
+ # HAGI - Tokenized HuggingFaceFW/fineweb-edu (SmolLM2-135M tokenizer)
17
+
18
+ Pre-tokenized token-id shards used to train the [HAGI](https://github.com/ShmidtS/HAGI)
19
+ Stage 0 baseline and the **Grade-Decomposed Recurrence** ablation (models A/B/C/D). A
20
+ **tokenized derivative** of [`HuggingFaceFW/fineweb-edu`](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) subset `sample-10BT`,
21
+ published so the exact training corpus loads identically in any environment (Colab,
22
+ Kaggle, local) with **no re-tokenization** and no Google Drive access.
23
+
24
+ ## Format - read before using
25
+
26
+ - **Files:** `shard_NNNNN.bin` - a flat little-endian **`uint16`** stream of token ids,
27
+ no header, documents separated by the tokenizer's EOS id. Read via `numpy.memmap`.
28
+ - **Tokenizer:** [`HuggingFaceTB/SmolLM2-135M`](https://huggingface.co/HuggingFaceTB/SmolLM2-135M) - **vocab 49,152**
29
+ (fits uint16). Shards tokenized with **any other tokenizer are incompatible**: the ids
30
+ would index the wrong embeddings (silent garbage), so do not mix sources.
31
+ - **Token count of a shard:** filesize / 2.
32
+ - **Held-out convention:** the **last shard** (`shard_00006.bin`) is reserved as validation; train on the rest.
33
+
34
+ ## Contents
35
+
36
+ - **Shards:** 7
37
+ - **Total tokens:** ~630,891,027
38
+
39
+ | Shard | Tokens |
40
+ |-------|--------|
41
+ | `shard_00000.bin` | 100,694,996 |
42
+ | `shard_00001.bin` | 100,686,108 |
43
+ | `shard_00002.bin` | 100,677,968 |
44
+ | `shard_00003.bin` | 100,324,700 |
45
+ | `shard_00004.bin` | 100,641,381 |
46
+ | `shard_00005.bin` | 100,534,502 |
47
+ | `shard_00006.bin` | 27,331,372 |
48
+
49
+ ## Load
50
+
51
+ ```python
52
+ from huggingface_hub import snapshot_download
53
+ path = snapshot_download(repo_id="NAME0x0/hagi-fineweb-edu-smollm2", repo_type="dataset", allow_patterns="*.bin")
54
+ # point training at the returned directory:
55
+ # python -m prototype.training.train --config configs/ablation_b.yaml --data <path> ...
56
+ ```
57
+
58
+ `MemmapTokenDataset` (`prototype/data/dataset.py`) consumes this directory directly.
59
+
60
+ ## Models trained on this data
61
+
62
+ - Stage 0 baseline: https://huggingface.co/NAME0x0/hagi-stage0
63
+ - Ablation: [`-a`](https://huggingface.co/NAME0x0/hagi-ablation-a) / [`-b`](https://huggingface.co/NAME0x0/hagi-ablation-b) / [`-c`](https://huggingface.co/NAME0x0/hagi-ablation-c) / [`-d`](https://huggingface.co/NAME0x0/hagi-ablation-d)
64
+
65
+ ## License & attribution
66
+
67
+ Derivative of HuggingFaceFW/fineweb-edu (sample-10BT), released under **ODC-By 1.0** - the upstream
68
+ license. Attribute FineWeb-Edu (HuggingFaceFW) on use. Tokenization adds no new content;
69
+ it only maps text to HuggingFaceTB/SmolLM2-135M ids.