Privacy Preserving AI Hackathon (Zama, Hugging Face, Entrepreneur First)

Enterprise
community

AI & ML interests

None defined yet.

Recent Activity

ppaihack's activity

regisss 
posted an update 3 days ago
regisss 
posted an update 2 months ago
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
jeremyzacch 
updated a Space 3 months ago
WenqingZhang 
updated a Space 3 months ago
Sckathach 
updated a Space 3 months ago
Nos7 
updated a Space 3 months ago
gregoiregllt 
updated a Space 3 months ago
Nos7 
updated a Space 3 months ago