mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 12:10:09 +01:00
fix ci
This commit is contained in:
@@ -198,7 +198,7 @@ template_info = [
|
||||
TemplateInfo(
|
||||
template=TemplateType.gemma,
|
||||
template_regex=
|
||||
f'.*{cases("gemma")}.*',
|
||||
f'{no("pali")}.*{cases("gemma")}.*',
|
||||
modelfile_prefix=
|
||||
'https://modelscope.oss-cn-beijing.aliyuncs.com/llm_template/ollama/gemma',
|
||||
),
|
||||
|
||||
@@ -63,7 +63,7 @@ class TestToOllama(unittest.TestCase):
|
||||
|
||||
template = TemplateLoader.load_by_model_id(
|
||||
'AI-ModelScope/gemma-2b-instruct')
|
||||
self.assertTrue(template is None)
|
||||
self.assertTrue(template.template_type == TemplateType.gemma)
|
||||
|
||||
template = TemplateLoader.load_by_model_id(
|
||||
'AI-ModelScope/gemma2-2b-instruct')
|
||||
|
||||
Reference in New Issue
Block a user