-
Notifications
You must be signed in to change notification settings - Fork 364
🐛 [Bug] Compiling BERT model from transformers fails #1401
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
Comments
Looks like you need to move model to cuda device: model.eval().cuda(). |
Have tried this already but no help.
|
I have also tried
Same error |
For JIT trace are your example tensors on the GPU as well? |
I have reproduced the error with the described environment, and was able to resolve the issue in my environment with these changes:
Let me know if this resolves the issue on your end as well. |
|
This issue has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days |
Bug Description
While compiling a Pytorch model following this tutorial. Compilation fails with below error
To Reproduce
Here is the code used to compile
Steps to reproduce the behavior:
Environment
AWS g4dn.xlarge with DLAMI
Stack trace
The text was updated successfully, but these errors were encountered: