mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-14 23:58:11 +08:00
Merge pull request #5072 from relic-yuexi/main
fix the deepseekcoder template to avoid repeat problem Former-commit-id: 2ae7d5c91725eab9f994015d8d3577894c7978b6
This commit is contained in:
commit
d4d7ffb17c
@ -586,7 +586,7 @@ _register_template(
|
|||||||
_register_template(
|
_register_template(
|
||||||
name="deepseekcoder",
|
name="deepseekcoder",
|
||||||
format_user=StringFormatter(slots=["### Instruction:\n{{content}}\n### Response:"]),
|
format_user=StringFormatter(slots=["### Instruction:\n{{content}}\n### Response:"]),
|
||||||
format_assistant=StringFormatter(slots=["\n{{content}}\n"]),
|
format_assistant=StringFormatter(slots=["\n{{content}}\n<|EOT|>"]),
|
||||||
format_separator=EmptyFormatter(slots=["\n"]),
|
format_separator=EmptyFormatter(slots=["\n"]),
|
||||||
format_prefix=EmptyFormatter(slots=[{"bos_token"}]),
|
format_prefix=EmptyFormatter(slots=[{"bos_token"}]),
|
||||||
default_system=(
|
default_system=(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user