[data] fix minicpmv plugin (#6801)

* fix template name

* tiny fix

* support minicpm-o-2.6

* support inference of minicpmv

* update readme

* support dpo of minicpmv

* update init audio

* update init audio

* [model]fix image process in minicpmo

Former-commit-id: 8f704c8b6228ef50f828014f85dce67fda868660
This commit is contained in:
Zhangchi Feng
2025-02-04 21:20:15 +08:00
committed by GitHub
parent 34746d6151
commit cfb926fb84
3 changed files with 7 additions and 6 deletions

View File

@@ -125,7 +125,7 @@ def patch_config(
setattr(config, "use_cache", False) # qwen2 does not support use_cache when using flash attn
if getattr(config, "model_type", None) == "minicpmo":
setattr(config, "init_audio", False)
setattr(config, "init_audio", True)
setattr(config, "init_tts", False)
if "LlavaLlamaForCausalLM" in getattr(config, "architectures", []):