mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-22 22:02:51 +08:00
Update template.py
Former-commit-id: 780ca8306b31d5ac856f68de3abed7e838848464
This commit is contained in:
parent
cea8cea9dd
commit
3d65c4ceab
@ -857,17 +857,17 @@ _register_template(
|
|||||||
|
|
||||||
|
|
||||||
_register_template(
|
_register_template(
|
||||||
name="yivl",
|
name="yi_vl",
|
||||||
format_user=StringFormatter(slots=["### Human: {{content}}\n### Assistant:"]),
|
format_user=StringFormatter(slots=["### Human: {{content}}\n### Assistant:"]),
|
||||||
format_assistant=StringFormatter(slots=[" {{content}}\n"]),
|
format_separator=EmptyFormatter(slots=["\n"]),
|
||||||
stop_words=["###"],
|
|
||||||
default_system=(
|
default_system=(
|
||||||
"This is a chat between an inquisitive human and an AI assistant. "
|
"This is a chat between an inquisitive human and an AI assistant. "
|
||||||
"Assume the role of the AI assistant. "
|
"Assume the role of the AI assistant. Read all the images carefully, "
|
||||||
"Read all the images carefully, and respond to the human's questions with informative, helpful, detailed and polite answers."
|
"and respond to the human's questions with informative, helpful, detailed and polite answers. "
|
||||||
"这是一个好奇的人类和一个人工智能助手之间的对话。"
|
"这是一个好奇的人类和一个人工智能助手之间的对话。假设你扮演这个AI助手的角色。"
|
||||||
"假设你扮演这个AI助手的角色。仔细阅读所有的图像,并对人类的问题做出信息丰富、有帮助、详细的和礼貌的回答。\n\n"
|
"仔细阅读所有的图像,并对人类的问题做出信息丰富、有帮助、详细的和礼貌的回答。\n"
|
||||||
),
|
),
|
||||||
|
stop_words=["###"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user