fix webUI, fix #171 #177

Former-commit-id: 6f9360c0bdc36ed2c6d0881136b191c96535ffc0
This commit is contained in:
hiyouga 2023-07-18 15:51:48 +08:00
parent 0b6f769971
commit 92c393dc2a
2 changed files with 21 additions and 1 deletions

View File

@ -203,6 +203,18 @@ register_template(
name="baichuan",
prefix="",
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
)

View File

@ -325,6 +325,14 @@ LOCALES = {
"label": "最大长度"
}
},
"max_new_tokens": {
"en": {
"label": "Maximum new tokens"
},
"zh": {
"label": "最大生成长度"
}
},
"top_p": {
"en": {
"label": "Top-p"