Régis Pierrard

regisss

AI & ML interests

None yet

Recent Activity

Articles

Organizations

Hugging Face's profile picture Habana AI's profile picture Hugging Face Optimum's profile picture group2's profile picture Hugging Face H4's profile picture Hugging Face OSS Metrics's profile picture HuggingFace Doc Builds's profile picture Blog-explorers's profile picture AI Energy Score Project's profile picture Social Post Explorers's profile picture Hugging Face Machine Learning Optimization's profile picture Optimum Internal Testing's profile picture SLLHF's profile picture Privacy Preserving AI Hackathon (Zama, Hugging Face, Entrepreneur First)'s profile picture

Posts 2

view post
Post
1374
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:
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