Browse Source

[update] empty_think_ratio

jingyaogong 9 months ago
parent
commit
349e74ec7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dataset/lm_dataset.py

+ 1 - 1
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)}] + conversations
     return conversations
 
-def post_processing_chat(prompt_content, empty_think_ratio=0.02):
+def post_processing_chat(prompt_content, empty_think_ratio=0.05):
     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