Icold commited on
Commit
efcf8aa
·
verified ·
1 Parent(s): 191836a

Upload docs/composition.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. docs/composition.md +59 -59
docs/composition.md CHANGED
@@ -1,59 +1,59 @@
1
- # Composition, measured
2
-
3
- Numbers below are **text bytes after cleaning**, not file sizes (JSONL adds
4
- ~10 % of metadata). The final mix is produced by `build`, which applies
5
- deduplication and the quotas; the "fetched" column is the pool it draws from.
6
-
7
- ## Fetched pool
8
-
9
- | | EN | RU | total |
10
- |---|---:|---:|---:|
11
- | text | 4.9 GB | 2.4 GB | **7.3 GB** |
12
- | documents | 690k | 105k | **795k** |
13
-
14
- At the measured 3.34 bytes/token on the 8K bilingual BPE this is ≈ 2.15B
15
- tokens before dedup and quota selection.
16
-
17
- ## By domain
18
-
19
- | domain | fetched share | notes |
20
- |---|---:|---|
21
- | mathematics | 26 % | OpenWebMath is the bulk; Wikipedia math adds definitions |
22
- | science | 22 % | arXiv full text dominates; cosmology curated separately |
23
- | encyclopedic | 16 % | Wikipedia EN/RU |
24
- | code | 14 % | CodeParrot Clean + CPython stdlib |
25
- | literature | 11 % | Gutenberg novels, Russian classics from Wikisource |
26
- | ML | 5 % | arXiv abstracts, textbooks, framework docs |
27
- | logic | 2 % | Lean mathlib proofs + Wikipedia logic |
28
- | CS / engineering | 3 % | curated Wikipedia categories (chips, VLSI, XP, agile) |
29
- | humour | <1 % | Gutenberg satire, transcripts |
30
- | identity | <0.1 % | synthetic |
31
-
32
- ## Language ratio
33
-
34
- 60/40 **by bytes** is the contract. Because Cyrillic costs ~1.8× more bytes per
35
- character, the same split is ≈ 55/45 by bytes but only ≈ 33 % Russian by
36
- tokens with the 8K BPE. Both numbers are reported in `tokenizer_meta.json`;
37
- the byte contract is the stable one, the token share depends on the tokenizer.
38
-
39
- ## Shortfalls (kept visible)
40
-
41
- * **logic** — 10 % quota, ~2 % realised. Formal proofs exist (mathlib), but
42
- general logic prose is thin.
43
- * **ML** — 12 % quota, ~5 % realised. arXiv abstracts are high quality but
44
- short; textbooks are paywalled.
45
- * **humour** — 1 % quota, ~1.5 MB realised. Public-domain satire and dialogue
46
- are small by nature.
47
- * **Russian code** — the code quota is filled with English source; Russian
48
- code comments are not a coherent corpus of their own.
49
-
50
- The mixer emits these as `shortfalls` in `corpus_report.json` rather than
51
- padding the quota with mislabelled text.
52
-
53
- ## Dedup and held-out
54
-
55
- * MinHash, 64 permutations, 5-shingles, Jaccard threshold 0.8.
56
- * Held-out: 2 % of each (language, domain) bucket, at most one document
57
- boundary of overshoot.
58
- * Buckets under 5 MB (identity, rare slices) are **not** split, so they stay in
59
- training in full.
 
1
+ # Composition, measured
2
+
3
+ Numbers below are **text bytes after cleaning**, not file sizes (JSONL adds
4
+ ~10 % of metadata). The final mix is produced by `build`, which applies
5
+ deduplication and the quotas; the "fetched" column is the pool it draws from.
6
+
7
+ ## Fetched pool
8
+
9
+ | | EN | RU | total |
10
+ |---|---:|---:|---:|
11
+ | text | 4.9 GB | 2.4 GB | **7.3 GB** |
12
+ | documents | 690k | 105k | **795k** |
13
+
14
+ At the measured 3.34 bytes/token on the 8K bilingual BPE this is ≈ 2.15B
15
+ tokens before dedup and quota selection.
16
+
17
+ ## By domain
18
+
19
+ | domain | fetched share | notes |
20
+ |---|---:|---|
21
+ | mathematics | 26 % | OpenWebMath is the bulk; Wikipedia math adds definitions |
22
+ | science | 22 % | arXiv full text dominates; cosmology curated separately |
23
+ | encyclopedic | 16 % | Wikipedia EN/RU |
24
+ | code | 14 % | CodeParrot Clean + CPython stdlib |
25
+ | literature | 11 % | Gutenberg novels, Russian classics from Wikisource |
26
+ | ML | 5 % | arXiv abstracts, textbooks, framework docs |
27
+ | logic | 2 % | Lean mathlib proofs + Wikipedia logic |
28
+ | CS / engineering | 3 % | curated Wikipedia categories (chips, VLSI, XP, agile) |
29
+ | humour | <1 % | Gutenberg satire, transcripts |
30
+ | identity | <0.1 % | synthetic, 800 plain + 850 pastiche per language, no numeric facts |
31
+
32
+ ## Language ratio
33
+
34
+ 60/40 **by bytes** is the contract. Because Cyrillic costs ~1.8× more bytes per
35
+ character, the same split is ≈ 55/45 by bytes but only ≈ 33 % Russian by
36
+ tokens with the 8K BPE. Both numbers are reported in `tokenizer_meta.json`;
37
+ the byte contract is the stable one, the token share depends on the tokenizer.
38
+
39
+ ## Shortfalls (kept visible)
40
+
41
+ * **logic** — 10 % quota, ~2 % realised. Formal proofs exist (mathlib), but
42
+ general logic prose is thin.
43
+ * **ML** — 12 % quota, ~5 % realised. arXiv abstracts are high quality but
44
+ short; textbooks are paywalled.
45
+ * **humour** — 1 % quota, ~1.5 MB realised. Public-domain satire and dialogue
46
+ are small by nature.
47
+ * **Russian code** — the code quota is filled with English source; Russian
48
+ code comments are not a coherent corpus of their own.
49
+
50
+ The mixer emits these as `shortfalls` in `corpus_report.json` rather than
51
+ padding the quota with mislabelled text.
52
+
53
+ ## Dedup and held-out
54
+
55
+ * MinHash, 64 permutations, 5-shingles, Jaccard threshold 0.8.
56
+ * Held-out: 2 % of each (language, domain) bucket, at most one document
57
+ boundary of overshoot.
58
+ * Buckets under 5 MB (identity, rare slices) are **not** split, so they stay in
59
+ training in full.