aisamdasu commited on
Commit
ddaf3d5
·
verified ·
1 Parent(s): 7de4d63

Remove obsolete 200GB target policy

Browse files
dataset_guide/TARGET_200GB_POLICY.md DELETED
@@ -1,95 +0,0 @@
1
- # 200GB Dataset Target Policy
2
-
3
- ## Target
4
-
5
- The final public dataset target is 200GB total, packaged as ten balanced
6
- 20GB-class checkpoints.
7
-
8
- ```text
9
- dataset/
10
- checkpoint_YYYYMMDD_HHMMSS_bundleNN_20g/
11
- dataset/
12
- checkpoint_YYYYMMDD_HHMMSS_bundleNN_20g.jsonl
13
- ```
14
-
15
- Each checkpoint folder must contain exactly one dataset JSONL file. Tokenizer,
16
- Dense, MoE, generation notes, reports, and checksums live outside checkpoint
17
- folders.
18
-
19
- ## Current Contract
20
-
21
- - Global duplicate policy: exact `text` duplicate count must be zero across the
22
- curated stream.
23
- - Bundle duplicate policy: in-bundle duplicate count must be zero.
24
- - Format: JSONL only.
25
- - Required field: non-empty `text`.
26
- - Preferred metadata: `domain`, `difficulty`, `meta.lang`, `meta.source`,
27
- repository/file context when available.
28
-
29
- ## Quality Order
30
-
31
- Use this order when deciding what enters the 200GB target:
32
-
33
- 1. Real public code FIM from The Stack v2 family already staged in
34
- `data/v2_shards`.
35
- 2. Verified high-quality Grok/Codex synthetic FIM and code completion records.
36
- 3. Deduped synthetic `code_gen` records with useful executable or idiomatic code.
37
- 4. Small public benchmark/instruction datasets only as a limited evaluation or
38
- style slice, not as bulk pretraining data.
39
-
40
- Avoid adding public datasets only because they are large. Do not use gated or
41
- license-ambiguous sources as bulk input unless their access terms are explicitly
42
- accepted and recorded.
43
-
44
- ## Target Mix
45
-
46
- For a code completion/FIM model, prefer this approximate mix over the full
47
- 200GB:
48
-
49
- | Source class | Target share | Reason |
50
- |---|---:|---|
51
- | Real public code FIM | 60-70% | Teaches real repository structure, APIs, style, imports |
52
- | Synthetic FIM | 20-30% | Teaches clean middle reconstruction and tab-completion shape |
53
- | High-quality code generation | 10-15% | Teaches continuation, algorithms, tests, and explanations |
54
- | Bench/instruction slices | <=5% | Keeps reasoning formats visible without polluting pretraining |
55
-
56
- The mix should be enforced by streaming selection and dataloader weights, not
57
- by duplicating files on disk.
58
-
59
- ## SSD-Safe Build Rule
60
-
61
- Never materialize the whole 200GB dataset twice. The safe loop is:
62
-
63
- 1. Keep source pools in hidden staging folders.
64
- 2. Stream records through the disk-backed `seen.db`.
65
- 3. Fill `data/curated_upload` only until there is enough for one 20GB bundle.
66
- 4. Build one checkpoint by streaming selected parts into
67
- `dataset/<checkpoint>/dataset/<checkpoint>.jsonl` and deleting each source
68
- part after it is appended.
69
- 5. Upload that checkpoint to Hugging Face.
70
- 6. Copy that checkpoint to Google Drive Desktop and wait for Drive sync.
71
- 7. Delete the local workspace checkpoint after HF is verified and Drive has a
72
- local copy; delete the Drive local copy only after cloud sync is verified.
73
-
74
- ## Google Drive Verification Rule
75
-
76
- Google Drive Desktop local copy is not the same as cloud upload completion.
77
- Cloud completion is confirmed only when DriveFS metadata no longer shows local
78
- placeholder IDs for the JSONL files and the Drive app has no pending sync/error
79
- state for the checkpoint.
80
-
81
- ## Public HF Candidate Policy
82
-
83
- Current HF Hub candidates observed for code data include:
84
-
85
- - `bigcode/the-stack-v2`: high-priority real code, gated auto, license `other`.
86
- - `bigcode/the-stack-v2-dedup`: high-priority dedup variant, gated auto.
87
- - `bigcode/starcoderdata`: older high-volume code source, gated auto.
88
- - `code-search-net/code_search_net`: smaller, useful for docstring/function
89
- style and evaluation slices.
90
- - `codeparrot/apps` and `deepmind/code_contests`: useful for algorithmic
91
- problem-solving slices, not bulk repository pretraining.
92
-
93
- Bulk additions from HF must pass license/access review, schema inspection,
94
- secret filtering, exact dedup, and small-sample quality inspection before they
95
- enter `data/curated_upload`.