Hi @Benitoski! If you just want to use an existing ONNX checkpoint in jina-embeddings-v2-base-es
, you can simply load it with:
from optimum.onnxruntime import ORTModelForMaskedLM
model = ORTModelForMaskedLM.from_pretrained("jinaai/jina-embeddings-v2-base-es", file_name="onnx/model.onnx")
The command you ran actually exports the model from the PyTorch checkpoint.