refactor mllm param logic

Former-commit-id: f6f630a1c9
This commit is contained in:
hiyouga
2025-01-10 15:41:54 +00:00
parent b3561ae552
commit c89d17ab63
10 changed files with 198 additions and 62 deletions

View File

@@ -396,8 +396,7 @@ _register_template(
format_user=StringFormatter(slots=["### Instruction:\n{{content}}\n\n### Response:\n"]),
format_assistant=StringFormatter(slots=["{{content}}", {"eos_token"}, "\n\n"]),
default_system=(
"Below is an instruction that describes a task. "
"Write a response that appropriately completes the request.\n\n"
"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n"
),
replace_jinja_template=True,
)