Natooka commited on
Commit
e9d696d
·
verified ·
1 Parent(s): 4ca3789

README: document tokenized shards (1 val + 133 train = 13.3B tokens) alongside .model

Browse files
Files changed (1) hide show
  1. README.md +32 -21
README.md CHANGED
@@ -8,20 +8,46 @@ tags:
8
  - fineweb
9
  - parameter-golf
10
  - bpe
 
11
  size_categories:
12
- - n<1K
13
  ---
14
 
15
- # Parameter Golf SP16384 Tokenizer
16
 
17
- SentencePiece BPE tokenizer (`vocab_size=16384`, `byte_fallback=True`) trained on the Parameter Golf 10B FineWeb corpus. Companion artifact to the chaoscontrol submission pipeline; produced to avoid re-running ~30–60 min of SP training on submission day.
18
 
19
  ## Files
20
 
 
21
  - `fineweb_16384_bpe.model` — SentencePiece model (455 KB).
22
  - `fineweb_16384_bpe.vocab` — Human-readable vocab sidecar (185 KB).
23
 
24
- ## Training configuration
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  | Setting | Value |
27
  |---|---|
@@ -36,7 +62,7 @@ SentencePiece BPE tokenizer (`vocab_size=16384`, `byte_fallback=True`) trained o
36
  | Source revision | `9bb295ddab0e05d785b879661af7260fed5140fc` |
37
  | SentencePiece | 0.2.1 |
38
 
39
- Training was single-threaded in the BPE merge phase (SP 0.2.1 limitation; `num_threads` helps normalization only). Wall-clock on 28 vCPU Xeon 8480+ host: ~25 min SP training + ~30 min full-corpus tokenization.
40
 
41
  ## Reproducing from scratch
42
 
@@ -51,21 +77,6 @@ python scripts/build_sp_shards.py \
51
 
52
  Byte-identical outputs are guaranteed within a matching `(vocab_size, sp_seed, num_workers)` triple — SP's multi-threaded merge counting can drift on tie-breaks across thread counts. Use the same `--num-workers` for cross-machine determinism, or pin to `--num-workers 1` for strict identity.
53
 
54
- ## Use at tokenization time
55
-
56
- ```python
57
- from huggingface_hub import hf_hub_download
58
-
59
- model_path = hf_hub_download(
60
- repo_id="Natooka/parameter-golf-sp-tokenizers",
61
- filename="fineweb_16384_bpe.model",
62
- repo_type="dataset",
63
- local_dir="baselines/parameter_golf/tokenizers",
64
- )
65
- ```
66
-
67
- Then point `scripts/build_sp_shards.py --skip-train` at it to re-tokenize the corpus in ~5 min on 28 workers.
68
-
69
  ## License
70
 
71
- CC-BY 4.0. Attribution appreciated for academic use. See upstream Parameter Golf competition for `docs_selected.jsonl` terms.
 
8
  - fineweb
9
  - parameter-golf
10
  - bpe
11
+ - tokenized-corpus
12
  size_categories:
13
+ - 10B<n<100B
14
  ---
15
 
16
+ # Parameter Golf SP16384 Tokenizer + Tokenized FineWeb-10B Shards
17
 
18
+ SentencePiece BPE tokenizer (`vocab_size=16384`, `byte_fallback=True`) + the full FineWeb-10B corpus pre-tokenized with it. Companion artifact to the chaoscontrol submission pipeline; published to make submission-day setup frictionless no corpus download, no re-tokenization.
19
 
20
  ## Files
21
 
22
+ ### Tokenizer (root)
23
  - `fineweb_16384_bpe.model` — SentencePiece model (455 KB).
24
  - `fineweb_16384_bpe.vocab` — Human-readable vocab sidecar (185 KB).
25
 
26
+ ### Tokenized shards (`shards/`)
27
+ - `shards/fineweb_val_000000.bin` — val shard, 42,266,034 tokens (~84 MB, uint16).
28
+ - `shards/fineweb_train_{000000..000132}.bin` — 133 train shards, 13,262,831,920 tokens (~25 GB total, uint16).
29
+
30
+ Shards are flat `uint16` little-endian token streams, no header, concatenated docs with no separators. Each shard ends on a doc boundary. First 50k docs of `docs_selected.jsonl` → val, rest → train (file order, per the upstream manifest contract).
31
+
32
+ ## Submission-day usage
33
+
34
+ Pull the whole thing in ~5 min on a typical pod:
35
+
36
+ ```python
37
+ from huggingface_hub import snapshot_download
38
+
39
+ local = snapshot_download(
40
+ repo_id="Natooka/parameter-golf-sp-tokenizers",
41
+ repo_type="dataset",
42
+ local_dir="baselines/parameter_golf",
43
+ # Optional — get just shards, or just the model:
44
+ # allow_patterns=["shards/*.bin", "fineweb_*.model"],
45
+ )
46
+ ```
47
+
48
+ After the download you have `baselines/parameter_golf/shards/*.bin` + `baselines/parameter_golf/fineweb_16384_bpe.model`. Point your training runner at those paths.
49
+
50
+ ## Training configuration (tokenizer)
51
 
52
  | Setting | Value |
53
  |---|---|
 
62
  | Source revision | `9bb295ddab0e05d785b879661af7260fed5140fc` |
63
  | SentencePiece | 0.2.1 |
64
 
65
+ Training was single-threaded in the BPE merge phase (SP 0.2.1 limitation `num_threads` helps normalization only). Wall-clock on 28 vCPU Xeon 8480+ host: ~25 min SP training + ~30 min full-corpus tokenization.
66
 
67
  ## Reproducing from scratch
68
 
 
77
 
78
  Byte-identical outputs are guaranteed within a matching `(vocab_size, sp_seed, num_workers)` triple — SP's multi-threaded merge counting can drift on tie-breaks across thread counts. Use the same `--num-workers` for cross-machine determinism, or pin to `--num-workers 1` for strict identity.
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  ## License
81
 
82
+ CC-BY 4.0 for our artifacts (tokenizer + pre-tokenized shards). Upstream `docs_selected.jsonl` subject to the Parameter Golf competition's terms (from `willdepueoai/parameter-golf`).