text
Interested in performing inference with an ONNX model?⚡️
Interested in performing inference with an ONNX model?⚡️
new_line
new_line
text
The Optimum docs about model inference with ONNX Runtime is now much clearer and simpler!
The Optimum docs about model inference with ONNX Runtime is now much clearer and simpler!
new_line
new_line
text
You want to deploy your favorite model on the hub but you don't know how to export it to the ONNX format? You can do it in one line of code as follows:
You want to deploy your favorite model on the hub but you don't know how to export it to the ONNX format? You can do it in one line of code as follows:
new_line
code_fence
```py
from optimum.onnxruntime import ORTModelForSequenceClassification

# Load the model from the hub and export it to the ONNX format
model_id = "distilbert-base-uncased-finetuned-sst-2-english"
model = ORTModelForSequenceClassification.from_pretrained(model_id, export=True)
```
from optimum.onnxruntime import ORTModelForSequenceClassification

# Load the model from the hub and export it to the ONNX format
model_id = "distilbert-base-uncased-finetuned-sst-2-english"
model = ORTModelForSequenceClassification.from_pretrained(model_id, export=True)
py
new_line
text
Check out the whole guide 👉 
Check out the whole guide 👉 
link
https://huggingface.co/docs/optimum/onnxruntime/usage_guides/models
https://huggingface.co/docs/optimum/onnxruntime/usage_guides/models
Interested in performing inference with an ONNX model?⚡️

The Optimum docs about model inference with ONNX Runtime is now much clearer and simpler!

You want to deploy your favorite model on the hub but you don't know how to export it to the ONNX format? You can do it in one line of code as follows:
```py
from optimum.onnxruntime import ORTModelForSequenceClassification

# Load the model from the hub and export it to the ONNX format
model_id = "distilbert-base-uncased-finetuned-sst-2-english"
model = ORTModelForSequenceClassification.from_pretrained(model_id, export=True)
```
Check out the whole guide 👉 https://huggingface.co/docs/optimum/onnxruntime/usage_guides/models
👍
John6666 adeiza-x louisbrulenaudet Aurelien-Morgan itsbrex