From 42afe1ddd51508efad7f37fbbb3c08d05d993b45 Mon Sep 17 00:00:00 2001 From: Dennis Huang Date: Mon, 4 Aug 2025 12:57:21 +0800 Subject: [PATCH] [model] Support MiniCPM-V 4.0 (#8813) --- src/llamafactory/extras/constants.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/llamafactory/extras/constants.py b/src/llamafactory/extras/constants.py index 9a49918f..7e83d93c 100644 --- a/src/llamafactory/extras/constants.py +++ b/src/llamafactory/extras/constants.py @@ -1714,6 +1714,16 @@ register_model_group( multimodal=True, ) +register_model_group( + models={ + "MiniCPM-V-4": { + DownloadSource.DEFAULT: "openbmb/MiniCPM-V-4", + DownloadSource.MODELSCOPE: "OpenBMB/MiniCPM-V-4", + }, + }, + template="minicpm_v", + multimodal=True, +) register_model_group( models={