-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Xformers is not installed correctly. #24903
Comments
It looks like the |
Should be fixed by the PR linked above. |
same issue for me on this basic example:
Reinstalled transformers, using v.4.31.0 |
The fix is not in v4.31.0, you will need to use a source install. |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System Info
transformers
version: 4.30.2Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Edit: I know this model isn't trained for the "text-classification" task, I get the same problem with a private model I fine tuned.
Results in the message
But I'm using torch==2.0.1 and memory-efficient-attention states "If you have PyTorch 2.0 installed, you shouldn’t use xFormers!"
The message is confusing - I have torch 2.0 installed and pipeline is for inference. This message doesn't occur if I use
AutoModelForSequenceClassification.from_pretrained
Expected behavior
The documentation or the warning message are inconsistent.
The text was updated successfully, but these errors were encountered: