You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: The checkpoint you are trying to load has model type modernbert but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
Expected behavior
Should be able to export to a directory with onnx artifacts
The text was updated successfully, but these errors were encountered:
System Info
Who can help?
@michaelbenayoun
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction (minimal, reproducible, runnable)
I'm running this command to convert a model to onnx:
optimum-cli export onnx --task sentence-similarity --opset 16 --trust-remote-code -m tomaarsen/ModernBERT-base-gooaq modernbert-base-gooaq
I get this error:
ValueError: The checkpoint you are trying to load has model type modernbert but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
Expected behavior
Should be able to export to a directory with onnx artifacts
The text was updated successfully, but these errors were encountered: