This commit is contained in:
suluyan
2025-01-09 10:31:47 +08:00
parent abb4308217
commit 4c1293ac41
2 changed files with 10 additions and 0 deletions

View File

@@ -255,6 +255,12 @@ template_info = [
modelfile_prefix=
'https://modelscope.oss-cn-beijing.aliyuncs.com/llm_template/ollama/phi3',
),
TemplateInfo(
template_regex=
f'.*{cases("phi4", "phi-4")}{no_multi_modal()}.*',
modelfile_prefix=
'https://modelscope.oss-cn-beijing.aliyuncs.com/llm_template/ollama/phi4',
),
TemplateInfo(
template_regex=
f'.*{cases("phi")}{no_multi_modal()}.*',

View File

@@ -365,6 +365,10 @@ class TestToOllama(unittest.TestCase):
'bartowski/Dolphin3.0-Llama3.1-8B-GGUF',
'dolphin3',
gguf_meta={'general.name': 'Dolphin 3.0 Llama 3.1 8B'})
_test_check_tmpl_type(
'AI-ModelScope/phi-4',
'phi4',
gguf_meta={'general.name': 'Phi 4'})
if __name__ == '__main__':