mirror of
https://github.com/hiyouga/LlamaFactory.git
synced 2026-01-31 20:03:39 +00:00
[model] support for microsoft's Phi-4-mini (#9734)
This commit is contained in:
@@ -1910,6 +1910,17 @@ register_template(
|
||||
)
|
||||
|
||||
|
||||
register_template(
|
||||
name="phi4_mini",
|
||||
format_user=StringFormatter(slots=["<|user|>{{content}}<|end|><|assistant|>"]),
|
||||
format_assistant=StringFormatter(slots=["{{content}}<|end|>"]),
|
||||
format_system=StringFormatter(slots=["<|system|>{{content}}<|end|>"]),
|
||||
format_tools=StringFormatter(slots=["<|tool|>{{content}}<|/tool|>"]),
|
||||
stop_words=["<|end|>"],
|
||||
replace_eos=True,
|
||||
)
|
||||
|
||||
|
||||
# copied from ministral template
|
||||
register_template(
|
||||
name="pixtral",
|
||||
|
||||
Reference in New Issue
Block a user