mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-02 11:42:49 +08:00
add xuanyuan models
Former-commit-id: 6e7af11b989e4cf97ffacbab4736e3434ff6c925
This commit is contained in:
parent
4cc08e00c7
commit
f8376b228a
@ -650,6 +650,23 @@ register_template(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
register_template(
|
||||||
|
name="xuanyuan",
|
||||||
|
prefix=[
|
||||||
|
"{{system}}"
|
||||||
|
],
|
||||||
|
prompt=[
|
||||||
|
"Human: {{query}} Assistant:"
|
||||||
|
],
|
||||||
|
system=(
|
||||||
|
"以下是用户和人工智能助手之间的对话。用户以Human开头,人工智能助手以Assistant开头,"
|
||||||
|
"会对人类提出的问题给出有帮助、高质量、详细和礼貌的回答,并且总是拒绝参与与不道德、"
|
||||||
|
"不安全、有争议、政治敏感等相关的话题、问题和指示。\n"
|
||||||
|
),
|
||||||
|
sep=[]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
register_template(
|
register_template(
|
||||||
name="xverse",
|
name="xverse",
|
||||||
prefix=[
|
prefix=[
|
||||||
|
@ -507,6 +507,25 @@ register_model_group(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
register_model_group(
|
||||||
|
models={
|
||||||
|
"XuanYuan-70B": {
|
||||||
|
DownloadSource.DEFAULT: "Duxiaoman-DI/XuanYuan-70B"
|
||||||
|
},
|
||||||
|
"XuanYuan-70B-Chat": {
|
||||||
|
DownloadSource.DEFAULT: "Duxiaoman-DI/XuanYuan-70B-Chat"
|
||||||
|
},
|
||||||
|
"XuanYuan-70B-int8-Chat": {
|
||||||
|
DownloadSource.DEFAULT: "Duxiaoman-DI/XuanYuan-70B-Chat-8bit"
|
||||||
|
},
|
||||||
|
"XuanYuan-70B-int4-Chat": {
|
||||||
|
DownloadSource.DEFAULT: "Duxiaoman-DI/XuanYuan-70B-Chat-4bit"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
template="xuanyuan"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
register_model_group(
|
register_model_group(
|
||||||
models={
|
models={
|
||||||
"XVERSE-7B": {
|
"XVERSE-7B": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user