mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-03-01 01:06:00 +08:00
[model] support youtu-vl model (#10152)
This commit is contained in:
@@ -2146,6 +2146,19 @@ register_template(
|
||||
)
|
||||
|
||||
|
||||
register_template(
|
||||
name="youtu_vl",
|
||||
format_user=StringFormatter(
|
||||
slots=["<|begin_of_text|>user\n{{content}}<|end_of_text|>\n<|begin_of_text|>assistant\n"]
|
||||
),
|
||||
format_assistant=StringFormatter(slots=["{{content}}<|end_of_text|>\n"]),
|
||||
format_system=StringFormatter(slots=["<|begin_of_text|>system\n{{content}}<|end_of_text|>\n"]),
|
||||
default_system="You are a helpful assistant.",
|
||||
stop_words=["<|end_of_text|>"],
|
||||
mm_plugin=get_mm_plugin(name="youtu_vl", image_token="<|image_pad|>", video_token="<|video_pad|>"),
|
||||
)
|
||||
|
||||
|
||||
register_template(
|
||||
name="yuan",
|
||||
format_user=StringFormatter(slots=["{{content}}", {"token": "<sep>"}]),
|
||||
|
||||
Reference in New Issue
Block a user