optimum-cli is still behind to convert it to onnx ?

#2
by hungrybiker - opened

I run the following to convert it into 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:

raise ValueError(
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.

Ive the latest for both optimum and sentence-transformer libs
optimum==1.23.3
sentence-transformers==3.3.1

Sign up or log in to comment