Downloads · 30 days
24
6% of all-time downloads
juliensimon/distilbert-amazon-shoe-reviews-onnx-optimized
distilbert-amazon-shoe-reviews-onnx-optimized is a text classification model from juliensimon. Use it when you need a label for a piece of text. It is set up for transformers.
Graph-optimized ONNX export of juliensimon/distilbert-amazon-shoe-reviews for faster CPU inference using Optimum.
Downloads · 30 days
24
6% of all-time downloads
All-time downloads
433
Public
Repo size
536 MB
Likes
0
Public
Click a slice to open those files.
.onnx268 MB · 100%
From the Hugging Face model README
Graph-optimized ONNX export of juliensimon/distilbert-amazon-shoe-reviews for faster CPU inference using Optimum.
Video walkthrough: Accelerate Transformer inference on CPU with Optimum and ONNX
| Detail | Value |
|---|---|
| Base model | juliensimon/distilbert-amazon-shoe-reviews |
| Task | Star rating prediction (1–5 stars) from shoe reviews |
| Format | ONNX with graph optimizations (operator fusion, constant folding) |
from optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer, pipeline
model = ORTModelForSequenceClassification.from_pretrained("juliensimon/distilbert-amazon-shoe-reviews-onnx-optimized")
tokenizer = AutoTokenizer.from_pretrained("juliensimon/distilbert-amazon-shoe-reviews-onnx-optimized")
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
classifier("These shoes are incredibly comfortable!")