mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-23 22:32:54 +08:00
Former-commit-id: 6f9360c0bdc36ed2c6d0881136b191c96535ffc0
This commit is contained in:
parent
0b6f769971
commit
92c393dc2a
@ -203,6 +203,18 @@ register_template(
|
|||||||
name="baichuan",
|
name="baichuan",
|
||||||
prefix="",
|
prefix="",
|
||||||
prompt="<reserved_102>{query}<reserved_103>",
|
prompt="<reserved_102>{query}<reserved_103>",
|
||||||
sep="",
|
sep="</s>",
|
||||||
|
use_history=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
r"""
|
||||||
|
Supports: https://huggingface.co/HuggingFaceH4/starchat-alpha
|
||||||
|
https://huggingface.co/HuggingFaceH4/starchat-beta
|
||||||
|
"""
|
||||||
|
register_template(
|
||||||
|
prefix="<|system|>\n",
|
||||||
|
prompt="<|user|>\n{query}<|end|>\n<|assistant|>\n",
|
||||||
|
sep="<|end|>\n",
|
||||||
use_history=True
|
use_history=True
|
||||||
)
|
)
|
||||||
|
@ -325,6 +325,14 @@ LOCALES = {
|
|||||||
"label": "最大长度"
|
"label": "最大长度"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"max_new_tokens": {
|
||||||
|
"en": {
|
||||||
|
"label": "Maximum new tokens"
|
||||||
|
},
|
||||||
|
"zh": {
|
||||||
|
"label": "最大生成长度"
|
||||||
|
}
|
||||||
|
},
|
||||||
"top_p": {
|
"top_p": {
|
||||||
"en": {
|
"en": {
|
||||||
"label": "Top-p"
|
"label": "Top-p"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user