mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 12:42:51 +08:00
Add template&support(Not tested)
Former-commit-id: 6574a721d20108174fc770caf9f17cf8fa81c4b4
This commit is contained in:
parent
db42378f29
commit
6f1323722c
@ -785,3 +785,11 @@ _register_template(
|
||||
format_user=StringFormatter(slots=["<human>:{{content}}\n<bot>:"]),
|
||||
format_separator=EmptyFormatter(slots=["\n"]),
|
||||
)
|
||||
|
||||
_register_template(
|
||||
name="c4ai",
|
||||
format_user=StringFormatter(slots=["<|START_OF_TURN_TOKEN|><|USER_TOKEN|>{{content}}", "<|END_OF_TURN_TOKEN|>", "<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>"]),
|
||||
format_assistant=StringFormatter(slots=["{{content}}", "<|END_OF_TURN_TOKEN|>"]),
|
||||
format_system=StringFormatter(slots=[{"bos_token"},"<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>{{content}}", "<|END_OF_TURN_TOKEN|>"]),
|
||||
default_system="You are a powerful conversational AI trained by Cohere to help people. You are augmented by a number of tools, and your job is to use and consume the output of these tools to best help the user. You will see a conversation history between yourself and a user, ending with an utterance from the user. You will then see a specific instruction instructing you what kind of response to generate. When you answer the user's requests, you cite your sources in your answers, according to those instructions.",
|
||||
)
|
@ -994,3 +994,13 @@ register_model_group(
|
||||
},
|
||||
template="atom",
|
||||
)
|
||||
|
||||
register_model_group(
|
||||
models={
|
||||
"C4AI-Command-R-35B": {
|
||||
DownloadSource.DEFAULT: "CohereForAI/c4ai-command-r-v01",
|
||||
DownloadSource.MODELSCOPE: "AI-ModelScope/c4ai-command-r-v01",
|
||||
}
|
||||
},
|
||||
template="c4ai",
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user