VideoChat2Config error

#1
by AnKhanh - opened

File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 584, in register
raise ValueError(
ValueError: The model class you are passing has a config_class attribute that is not consistent with the config class you passed (model has <class 'transformers_modules.OpenGVLab.InternVideo2-Chat-8B.93a925fb41865b8c7c9a9de20f33bc3cb2d8feb6.modeling_base.LLMConfig'> and you passed <class 'transformers_modules.OpenGVLab.InternVideo2-Chat-8B.93a925fb41865b8c7c9a9de20f33bc3cb2d8feb6.model_config.VideoChat2Config'>. Fix one of those so they match!

I'm using transformers 4.38.0 and this error occurs on newer transformers version also, what should I do.
Thank you for your help

OpenGVLab org

Thank you for your point out this issue. We have fix the config in modeling_base. Please try again.

Sign up or log in to comment