Add support for Index
Former-commit-id: 4e6dba16ca1755235d2ae117b53b68c5ae2f239a
This commit is contained in:
@@ -691,6 +691,14 @@ _register_template(
|
||||
)
|
||||
|
||||
|
||||
_register_template(
|
||||
name="index",
|
||||
format_user=StringFormatter(slots=["reserved_0{{content}}reserved_1"]),
|
||||
format_system=StringFormatter(slots=["<unk>{{content}}"]),
|
||||
efficient_eos=True,
|
||||
)
|
||||
|
||||
|
||||
_register_template(
|
||||
name="intern",
|
||||
format_user=StringFormatter(slots=["<|User|>:{{content}}\n<|Bot|>:"]),
|
||||
|
||||
@@ -596,6 +596,33 @@ register_model_group(
|
||||
)
|
||||
|
||||
|
||||
register_model_group(
|
||||
models={
|
||||
"Index-1.9B-Chat": {
|
||||
DownloadSource.DEFAULT: "IndexTeam/Index-1.9B-Chat",
|
||||
DownloadSource.MODELSCOPE: "IndexTeam/Index-1.9B-Chat",
|
||||
},
|
||||
"Index-1.9B-Character": {
|
||||
DownloadSource.DEFAULT: "IndexTeam/Index-1.9B-Character",
|
||||
DownloadSource.MODELSCOPE: "IndexTeam/Index-1.9B-Character",
|
||||
},
|
||||
"Index-1.9B-Base": {
|
||||
DownloadSource.DEFAULT: "IndexTeam/Index-1.9B",
|
||||
DownloadSource.MODELSCOPE: "IndexTeam/Index-1.9B",
|
||||
},
|
||||
"Index-1.9B-Base-Pure": {
|
||||
DownloadSource.DEFAULT: "IndexTeam/Index-1.9B-Pure",
|
||||
DownloadSource.MODELSCOPE: "IndexTeam/Index-1.9B-Pure",
|
||||
},
|
||||
"Index-1.9B-32K": {
|
||||
DownloadSource.DEFAULT: "IndexTeam/Index-1.9B-32K",
|
||||
DownloadSource.MODELSCOPE: "IndexTeam/Index-1.9B-32K",
|
||||
},
|
||||
},
|
||||
template="index",
|
||||
)
|
||||
|
||||
|
||||
register_model_group(
|
||||
models={
|
||||
"InternLM-7B": {
|
||||
|
||||
Reference in New Issue
Block a user