mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 04:01:10 +01:00
feat ollama template qwen3
This commit is contained in:
@@ -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}.*',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user