mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-16 11:50:35 +08:00
Support InternLM3 Dense 8B Model (#6640)
* support internlm3 * update * update * update * add hint
This commit is contained in:
@@ -732,6 +732,14 @@ _register_template(
|
||||
stop_words=["<|im_end|>"],
|
||||
)
|
||||
|
||||
_register_template(
|
||||
name="intern3",
|
||||
format_user=StringFormatter(slots=["<|im_start|>user\n{{content}}<|im_end|>\n<|im_start|>assistant\n"]),
|
||||
format_assistant=StringFormatter(slots=["{{content}}<|im_end|>\n"]),
|
||||
format_system=StringFormatter(slots=["<|im_start|>system\n{{content}}<|im_end|>\n"]),
|
||||
format_prefix=EmptyFormatter(slots=[{"bos_token"}]),
|
||||
stop_words=["<|im_end|>"]
|
||||
)
|
||||
|
||||
_register_template(
|
||||
name="llama2",
|
||||
|
||||
Reference in New Issue
Block a user