mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-16 00:28:10 +08:00
Update template.py
Former-commit-id: ae2a5221c109ae3474d219c37433be767abbee91
This commit is contained in:
parent
710902b0d0
commit
46f834ec75
@ -586,7 +586,8 @@ _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=["{{content}}\n<|EOT|>"]),
|
format_assistant=StringFormatter(slots=["\n{{content}}\n<|EOT|>"]),
|
||||||
|
format_separator=EmptyFormatter(slots=["\n"]),
|
||||||
format_prefix=EmptyFormatter(slots=[{"bos_token"}]),
|
format_prefix=EmptyFormatter(slots=[{"bos_token"}]),
|
||||||
default_system=(
|
default_system=(
|
||||||
"You are an AI programming assistant, utilizing the Deepseek Coder model, "
|
"You are an AI programming assistant, utilizing the Deepseek Coder model, "
|
||||||
@ -594,8 +595,6 @@ _register_template(
|
|||||||
"For politically sensitive questions, security and privacy issues, "
|
"For politically sensitive questions, security and privacy issues, "
|
||||||
"and other non-computer science questions, you will refuse to answer\n"
|
"and other non-computer science questions, you will refuse to answer\n"
|
||||||
),
|
),
|
||||||
stop_words=["<|EOT|>"],
|
|
||||||
replace_eos=True,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user