mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 20:19:51 +01:00
Merge branch 'master' into release/1.20
This commit is contained in:
@@ -53,6 +53,12 @@ def no_multi_modal():
|
||||
template_info = [
|
||||
# llama
|
||||
## "llama3"
|
||||
TemplateInfo(
|
||||
template_regex=
|
||||
f'.*{cases("llama3.2", "llama-3.2")}.*{cases("vision")}.*',
|
||||
modelfile_prefix=
|
||||
'https://modelscope.oss-cn-beijing.aliyuncs.com/llm_template/ollama/llama3.2-vision',
|
||||
),
|
||||
TemplateInfo(
|
||||
template=TemplateType.llama3,
|
||||
template_regex=
|
||||
|
||||
@@ -121,6 +121,9 @@ 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(
|
||||
'AI-ModelScope/Llama-3.2-11B-Vision-Instruct-GGUF',
|
||||
'llama3.2-vision')
|
||||
_test_check_tmpl_type('LLM-Research/Meta-Llama-3.2-8B-Instruct-GGUF',
|
||||
'llama3.2')
|
||||
_test_check_tmpl_type('LLM-Research/Meta-Llama-3.1-8B-Instruct-GGUF',
|
||||
|
||||
Reference in New Issue
Block a user