feat ollama template qwen3

This commit is contained in:
suluyan
2025-04-29 11:11:10 +08:00
parent 806ac2b05e
commit c8d2c3afc5
2 changed files with 10 additions and 0 deletions

View File

@@ -153,6 +153,12 @@ template_info = [
),
# qwen
TemplateInfo(
template=TemplateType.qwen,
template_regex=f'.*{cases("qwen3")}{no_multi_modal()}.*',
modelfile_prefix=
'https://modelscope.oss-cn-beijing.aliyuncs.com/llm_template/ollama/qwen3',
),
TemplateInfo(
template=TemplateType.qwen,
template_regex=f'.*{cases("qwen2.5")}.*{cases("coder")}.*{chat_suffix}.*',

View File

@@ -122,6 +122,10 @@ class TestToOllama(unittest.TestCase):
@unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
def test_check_template_type(self):
_test_check_tmpl_type(
'unsloth/Qwen3-32B-GGUF',
'qwen3',
gguf_meta={'general.name': 'Qwen3-32B'})
_test_check_tmpl_type(
'lmstudio-community/granite-3.3-2b-instruct-GGUF',
'granite3.3',