modelscope / ms-swift

Use PEFT or Full-parameter to finetune 300+ LLMs or 80+ MLLMs. (Qwen2, GLM4v, Internlm2.5, Yi, Llama3.1, Llava-Video, Internvl2, MiniCPM-V-2.6, Deepseek, Baichuan2, Gemma2, Phi3-Vision, ...)
https://swift.readthedocs.io/zh-cn/latest/Instruction/index.html
Apache License 2.0
3.38k stars 289 forks source link

model_type: 'minicpm-v-v2_5-chat' is not registered. #977

Closed zfy1041264242 closed 3 months ago

zfy1041264242 commented 3 months ago

I do pip install 'ms-swift[llm]' -U and still get an error: model_type: 'minicpm-v-v2_5-chat' is not registered.

Jintao-Huang commented 3 months ago

git clone https://github.com/modelscope/swift.git cd swift pip install -e '.[llm]'

zfy1041264242 commented 3 months ago

git clone https://github.com/modelscope/swift.git cd swift pip install -e '.[llm]'

I tried to do that, but get a new error: TypeError: Subscripted generics cannot be used with class and instance checks

ZHANG-SH97 commented 3 months ago

I use the new code and meet the same problem. Even i can't train minicpm-v-v2

ZHANG-SH97 commented 3 months ago

I use the new code and meet the same problem. Even i can't train minicpm-v-v2

i solved this by update the transformers version ==4.41.0

zfy1041264242 commented 3 months ago

I use the new code and meet the same problem. Even i can't train minicpm-v-v2

i solved this by update the transformers version ==4.41.0

Have you solved it? I still seem to get dependency conflicts here. GYLT6T)GUK`GJGZX}NA5VWK

ZHANG-SH97 commented 3 months ago

I use the new code and meet the same problem. Even i can't train minicpm-v-v2

i solved this by update the transformers version ==4.41.0

Have you solved it? I still seem to get dependency conflicts here. GYLT6T)GUK`GJGZX}NA5VWK

emmm,is effective for me,maybe other reason? I try to pull the new code and retry the installation steps, then update the version of transformers. I'm not sure which step takes effect