-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: The model class you are passing has a config_class
attribute that is not consistent with the config class you passed (model has None and you passed <class 'transformers_modules.codefuse-ai.CodeFuse-CGE-Small.fd0871aa546be63188628752a09c4d42dd07250d.configuration_codefuse_cge_small.CodeFuseCGESmallConfig'>. Fix one of those so they match!
#3
Comments
ImportError when use transformers==4.39.2 to load "codefuse-ai/CodeFuse-CGE-Small" |
Hi,I can't reproduce this error when I using transformers==4.43,but I can reproduce this error when I using transformers==4.46,so can you post your python environment using pip list here? |
accelerate 0.28.0 |
Could you please install the following packages in a new Python environment and try again? |
In my case, everything works fine when I'm using the Python environment. While searching for the bug online, I came across this discussion: https://huggingface.co/zhihan1996/DNABERT-2-117M/discussions/6. Could you try loading the configuration first? |
Seemly the model can't be loaded automatically,so I fix it by downloading the model files manually. |
We apologize for the inconvenience caused during your use. We were unaware that you were not loading it through a download, which is why we couldn't reproduce the error. Thank you very much for using our service and helping us identify this bug. We have updated modeling.py to resolve the issue. |
ValueError when use transformers==4.43.0 to load "codefuse-ai/CodeFuse-CGE-Small"
ValueError: The model class you are passing has a
config_class
attribute that is not consistent with the config class you passed (model has None and you passed <class 'transformers_modules.codefuse-ai.CodeFuse-CGE-Small.fd0871aa546be63188628752a09c4d42dd07250d.configuration_codefuse_cge_small.CodeFuseCGESmallConfig'>. Fix one of those so they match!The text was updated successfully, but these errors were encountered: