-
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
Transformers cannot load ModernBERT for sequence classification #35362
Comments
Currently need to compile the latest transformers
source: https://huggingface.co/answerdotai/ModernBERT-base/discussions/3 |
Any idea why I am getting this error during a
|
upgrading to |
I am getting the following error when trying to import
I am using Python 3.12.8, PyTorch 2.5.1, and also have |
System Info
I am trying to test the new ModernBER, following this notebook from the official documentation: https://github.com/AnswerDotAI/ModernBERT/blob/main/examples/finetune_modernbert_on_glue.ipynb model for sequence classification but I am getting the following error:
I am using:
The code snippet used is this:
Thank you very much!
Who can help?
@ArthurZucker
@stevhliu
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Just executing
the problem will arise
Expected behavior
To load the model normally
The text was updated successfully, but these errors were encountered: