-
Notifications
You must be signed in to change notification settings - Fork 247
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
ImportError #249
Comments
Maybe you should uninstall the transformers and follow our instructions to install the customized one? Or you can try with the colab notebook for comparison |
I did uninstall and re-install |
Sorry, I mean, the |
I just figured it out. It is because the dependency on DL framework (e.g., PyTorch) when using |
Hello, I followed the instructions in
huggingface
to use OFA model, but it turned out to be an surprising error saying:ImportError: cannot import name 'OFAModel' from 'transformers'.
I guess it is because I didn't install the customized version of
transformers
right, which should have incorporatedOFAModel
andOFATokenizer
. But I have not done anything apart from your instructions:Could you please help me figure it out why this happens? Is there something I miss in the preparation steps?
The text was updated successfully, but these errors were encountered: