🧠 两小时从 0 训出你的 64M 大模型。Train your own 64M LLM from scratch in 2 hours.
[update] empty_think_ratio
jingyaogong288e1ac02a76
diff --git a/dataset/lm_dataset.py b/dataset/lm_dataset.pyindex cf663d4..667ad86 100644--- a/dataset/lm_dataset.py+++ b/dataset/lm_dataset.py@@ -23,7 +23,7 @@ def pre_processing_chat(conversations, add_system_ratio=0.2):return [{'role': 'system', 'content': random.choice(SYSTEM_PROMPTS)}] + conversationsreturn conversations-def post_processing_chat(prompt_content, empty_think_ratio=0.1):+def post_processing_chat(prompt_content, empty_think_ratio=0.02):if '<think>\n\n</think>\n\n' in prompt_content and random.random() > empty_think_ratio:prompt_content = prompt_content.replace('<think>\n\n</think>\n\n', '')return prompt_content