[update] empty_think_ratio

pull/666/merge
jingyaogong 2026-02-06 19:15:21 +08:00
parent 288e1ac02a
commit 349e74ec7b
1 changed files with 1 additions and 1 deletions

View File

@ -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