Merge pull request #5910 from Cuiyn/index

Support Index series models.

Former-commit-id: b74d9fa8efeb4f52ba0e20538ad90c8b40492e29
This commit is contained in:
hoshi-hiyouga
2024-11-02 20:16:54 +08:00
committed by GitHub
4 changed files with 39 additions and 2 deletions

View File

@@ -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|>:"]),