-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Mono-Electra model type not recognised #30807
Comments
Hi @PrithivirajDamodaran, thanks for raising an issue! Inspecting the model's config, one can see the model type If you're interesting in using this model, I'd suggest opening a discussion topic on the repo asking how to use it. |
Thank you, I examined the files in the repo for any custom code to load the model but there is none. If no custom code and there is no implementation, looks like it's a good idea open a discussion as you suggested to see if the team is actively working on this. Could you please keep this issue open in the mean time? But IMHO, as for the model name / code goes "mono" is just a prefix for mono-lingual electra and it should work with modeling_electra.py, but I am not sure. |
This depends on the checkpoints. If they're compatible with, i.e. have the same architecture as, the transformer's implementation of electra, then changing this value to "electra" in the config would work. |
System Info
4.39.3 and 4.40.2
Who can help?
@younesbelkada @ArthurZucker
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Throws exception
As per the model config, 4.39.3 is the right transformers version. Tried also with 4.40.2
Expected behavior
Model should load fine without exceptions
The text was updated successfully, but these errors were encountered: