mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-24 07:40:35 +08:00
[model] Rename GLMV template (#9595)
This commit is contained in:
@@ -1128,7 +1128,7 @@ register_template(
|
||||
|
||||
# copied from glm4 template
|
||||
register_template(
|
||||
name="glm4v_moe",
|
||||
name="glm4_5v",
|
||||
format_user=StringFormatter(slots=["<|user|>\n{{content}}<|assistant|>"]),
|
||||
format_assistant=StringFormatter(slots=["\n{{content}}"]),
|
||||
format_system=StringFormatter(slots=["<|system|>\n{{content}}"]),
|
||||
|
||||
@@ -969,14 +969,6 @@ register_model_group(
|
||||
DownloadSource.DEFAULT: "zai-org/GLM-4.1V-9B-Thinking",
|
||||
DownloadSource.MODELSCOPE: "ZhipuAI/GLM-4.1V-9B-Thinking",
|
||||
},
|
||||
"GLM-4.6V": {
|
||||
DownloadSource.DEFAULT: "zai-org/GLM-4.6V",
|
||||
DownloadSource.MODELSCOPE: "ZhipuAI/GLM-4.6V",
|
||||
},
|
||||
"GLM-4.6V-Flash": {
|
||||
DownloadSource.DEFAULT: "zai-org/GLM-4.6V-Flash",
|
||||
DownloadSource.MODELSCOPE: "ZhipuAI/GLM-4.6V-Flash",
|
||||
},
|
||||
},
|
||||
template="glm4v",
|
||||
multimodal=True,
|
||||
@@ -1011,9 +1003,17 @@ register_model_group(
|
||||
"GLM-4.5V-Air-Thinking": {
|
||||
DownloadSource.DEFAULT: "zai-org/GLM-4.5V",
|
||||
DownloadSource.MODELSCOPE: "ZhipuAI/GLM-4.5V",
|
||||
}
|
||||
},
|
||||
"GLM-4.6V": {
|
||||
DownloadSource.DEFAULT: "zai-org/GLM-4.6V",
|
||||
DownloadSource.MODELSCOPE: "ZhipuAI/GLM-4.6V",
|
||||
},
|
||||
"GLM-4.6V-Flash": {
|
||||
DownloadSource.DEFAULT: "zai-org/GLM-4.6V-Flash",
|
||||
DownloadSource.MODELSCOPE: "ZhipuAI/GLM-4.6V-Flash",
|
||||
},
|
||||
},
|
||||
template="glm4v_moe",
|
||||
template="glm4_5v",
|
||||
multimodal=True,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user