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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"catalog_name": "CogNet-1B Training Datasets",
|
| 3 |
+
"version": "1.0",
|
| 4 |
+
"date": "2026-06-13",
|
| 5 |
+
"tokenizer": "CharTokenizer v3 (136 vocab: ASCII + French accents)",
|
| 6 |
+
"domains": {
|
| 7 |
+
"CODE": {
|
| 8 |
+
"datasets": [
|
| 9 |
+
{
|
| 10 |
+
"name": "the_stack_smol",
|
| 11 |
+
"hf_id": "bigcode/the-stack-smol",
|
| 12 |
+
"size": "~2.6 GB, 30 languages x 10K files",
|
| 13 |
+
"description": "Multi-language source code (Python, JS, C, C++, Java, Rust, Go, TypeScript). Permissively licensed subset of The Stack.",
|
| 14 |
+
"priority": 1,
|
| 15 |
+
"notes": "Stream by language. Filter to target languages. Use data_dir='data/{lang}'."
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"name": "codeparrot_clean",
|
| 19 |
+
"hf_id": "codeparrot/codeparrot-clean",
|
| 20 |
+
"size": "~50 GB, 5.36M Python files",
|
| 21 |
+
"description": "Deduplicated, quality-filtered Python code. Removes auto-generated code and boilerplate.",
|
| 22 |
+
"priority": 2,
|
| 23 |
+
"notes": "Best Python-only dataset. Extract 'content' field. Mostly ASCII already."
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"name": "code_alpaca",
|
| 27 |
+
"hf_id": "sahil2801/CodeAlpaca-20k",
|
| 28 |
+
"size": "~20K instruction-code pairs",
|
| 29 |
+
"description": "Multi-language code generation instructions in Alpaca format (instruction/input/output).",
|
| 30 |
+
"priority": 3,
|
| 31 |
+
"notes": "Flatten instruction+input+output with ### delimiters. Small but high quality."
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "codesearchnet",
|
| 35 |
+
"hf_id": "code_search_net",
|
| 36 |
+
"size": "~2M functions across 6 languages",
|
| 37 |
+
"description": "Function definitions paired with docstrings/comments. Python, JavaScript, Java, Go, Ruby, PHP.",
|
| 38 |
+
"priority": 4,
|
| 39 |
+
"notes": "Extract func_code_string + func_documentation_string. Code+docs co-occurrence."
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"name": "python_code_instructions",
|
| 43 |
+
"hf_id": "iamtarun/python_code_instructions_18k_alpaca",
|
| 44 |
+
"size": "~18K Python instruction pairs",
|
| 45 |
+
"description": "Python-specific code generation instructions in Alpaca format.",
|
| 46 |
+
"priority": 5,
|
| 47 |
+
"notes": "Same format as CodeAlpaca. Python-only, mostly ASCII."
|
| 48 |
+
}
|
| 49 |
+
],
|
| 50 |
+
"total_estimated_tokens": "2B-10B (depending on subset size)"
|
| 51 |
+
},
|
| 52 |
+
"MATH": {
|
| 53 |
+
"datasets": [
|
| 54 |
+
{
|
| 55 |
+
"name": "mathpile",
|
| 56 |
+
"hf_id": "zwhe99/mathpile-text",
|
| 57 |
+
"size": "~9.5B tokens, 100K+ documents",
|
| 58 |
+
"description": "Large-scale math pretraining corpus: textbooks, arXiv, Wikipedia math, ProofWiki, StackExchange.",
|
| 59 |
+
"priority": 1,
|
| 60 |
+
"notes": "PRETRAINING corpus (not Q&A) — ideal for char-level. Contains LaTeX (ASCII-friendly!)."
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "openmath_instruct1",
|
| 64 |
+
"hf_id": "nvidia/OpenMathInstruct-1",
|
| 65 |
+
"size": "1.8M problem-solution pairs, ~8.94 GB",
|
| 66 |
+
"description": "Math instruction tuning with step-by-step solutions. Generated from GSM8K+MATH using Mixtral.",
|
| 67 |
+
"priority": 2,
|
| 68 |
+
"notes": "Extract problem + generated_solution. May contain LaTeX."
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"name": "metamath_qa",
|
| 72 |
+
"hf_id": "meta-math/MetaMathQA",
|
| 73 |
+
"size": "395K augmented math Q&A pairs, ~396 MB",
|
| 74 |
+
"description": "Bootstrapped math Q&A with rephrased questions. Covers GSM8K and MATH problems.",
|
| 75 |
+
"priority": 3,
|
| 76 |
+
"notes": "Extract query + response. Contains LaTeX."
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name": "gsm8k",
|
| 80 |
+
"hf_id": "openai/gsm8k",
|
| 81 |
+
"size": "~8.5K grade-school math problems",
|
| 82 |
+
"description": "Classic grade-school math word problems with step-by-step solutions.",
|
| 83 |
+
"priority": 4,
|
| 84 |
+
"notes": "Small but high quality. Answers contain #### separators. Good for basic arithmetic."
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"name": "hendrycks_math",
|
| 88 |
+
"hf_id": "EleutherAI/hendrycks_math",
|
| 89 |
+
"size": "12.5K competition-level problems (7 subjects)",
|
| 90 |
+
"description": "Competition math (AMC/AIME). Algebra, Counting, Geometry, Number Theory, etc. Heavy LaTeX.",
|
| 91 |
+
"priority": 5,
|
| 92 |
+
"notes": "LaTeX is pure ASCII — natively compatible! Model will learn LaTeX syntax. Excellent for advanced math."
|
| 93 |
+
}
|
| 94 |
+
],
|
| 95 |
+
"total_estimated_tokens": "5B-15B (depending on subset size)"
|
| 96 |
+
},
|
| 97 |
+
"SYNTAX": {
|
| 98 |
+
"datasets": [
|
| 99 |
+
{
|
| 100 |
+
"name": "wikitext103",
|
| 101 |
+
"hf_id": "Salesforce/wikitext",
|
| 102 |
+
"config": "wikitext-103-raw-v1",
|
| 103 |
+
"size": "~103M tokens, ~516 MB",
|
| 104 |
+
"description": "Wikipedia Good/Featured articles. Rich syntactic structures. Raw variant preserves characters.",
|
| 105 |
+
"priority": 1,
|
| 106 |
+
"notes": "USE THE RAW VARIANT. Non-raw replaces rare chars with <unk> which is useless for char-level."
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"name": "c4_subset",
|
| 110 |
+
"hf_id": "allenai/c4",
|
| 111 |
+
"config": "en",
|
| 112 |
+
"size": "~156B tokens (we'll take a ~5GB subset)",
|
| 113 |
+
"description": "Massive clean web text. Already cleaned/deduplicated. Natural syntax, grammar, diverse topics.",
|
| 114 |
+
"priority": 2,
|
| 115 |
+
"notes": "STREAMING MANDATORY. We'll cap at ~100K docs (~5GB). Best for broad syntax exposure."
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"name": "ptb",
|
| 119 |
+
"hf_id": "ptb_text_only",
|
| 120 |
+
"size": "~42K training sentences, ~1M words",
|
| 121 |
+
"description": "Gold-standard syntactically parsed English text (Wall Street Journal).",
|
| 122 |
+
"priority": 3,
|
| 123 |
+
"notes": "Small but high quality for syntax learning. Use raw text variant."
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"name": "universal_deps",
|
| 127 |
+
"hf_id": "universal-dependencies/universal_dependencies",
|
| 128 |
+
"size": "200+ treebanks in 150+ languages",
|
| 129 |
+
"description": "Dependency parses with POS tags, lemmas, morphological features. CoNLL-U format.",
|
| 130 |
+
"priority": 4,
|
| 131 |
+
"notes": "We use en_gum, en_ewt, fr_gsd, fr_sequoia. French treebanks provide accent exposure. CoNLL-U is pure ASCII."
|
| 132 |
+
}
|
| 133 |
+
],
|
| 134 |
+
"total_estimated_tokens": "500M-2B (depending on C4 subset size)"
|
| 135 |
+
},
|
| 136 |
+
"GENERAL": {
|
| 137 |
+
"datasets": [
|
| 138 |
+
{
|
| 139 |
+
"name": "pile_subset",
|
| 140 |
+
"hf_id": "EleutherAI/pile",
|
| 141 |
+
"size": "825 GiB total, ~300B tokens (we'll take ~10GB subset)",
|
| 142 |
+
"description": "All-in-one: GitHub, arXiv, StackExchange, Wikipedia, books. Contains code, math, and prose.",
|
| 143 |
+
"priority": 1,
|
| 144 |
+
"notes": "We'll cap at ~200K docs. Excellent mixed-domain data. Some copyright concerns — Common Pile is an alternative."
|
| 145 |
+
}
|
| 146 |
+
],
|
| 147 |
+
"total_estimated_tokens": "1B-5B (subset)"
|
| 148 |
+
}
|
| 149 |
+
},
|
| 150 |
+
"total_estimated_tokens": "8B-32B (depending on storage budget and filtering)",
|
| 151 |
+
"storage_budget_note": "50GB default budget. Adjust with --max_gb flag.",
|
| 152 |
+
"preprocessing_strategy": {
|
| 153 |
+
"unicode_handling": "Map common Unicode to ASCII equivalents (smart quotes, em-dashes, math symbols)",
|
| 154 |
+
"latex_strategy": "Keep LaTeX as-is (it's pure ASCII). Model learns LaTeX natively.",
|
| 155 |
+
"french_accents": "Preserved via 136-char vocab. UD French treebanks + C4 French subset provide accent exposure.",
|
| 156 |
+
"separator": "Double newline (\\n\\n) between documents/samples",
|
| 157 |
+
"encoding": "Token IDs saved as int16 tensors (.pt files), then merged into train/val splits"
|
| 158 |
+
},
|
| 159 |
+
"how_to_run": {
|
| 160 |
+
"full_run": "python cognet_data_prep.py --output_dir /root/CogNet/data_1b --max_gb 50",
|
| 161 |
+
"quick_test": "python cognet_data_prep.py --output_dir /root/CogNet/data_1b --max_gb 5 --dry_run",
|
| 162 |
+
"only_code": "python cognet_data_prep.py --only the_stack_smol code_alpaca",
|
| 163 |
+
"only_math": "python cognet_data_prep.py --only mathpile gsm8k hendrycks_math",
|
| 164 |
+
"with_custom_code": "python cognet_data_prep.py --custom_code_dir /path/to/code/files",
|
| 165 |
+
"skip_merge": "python cognet_data_prep.py --skip_merge"
|
| 166 |
+
}
|
| 167 |
+
}
|