Instructions to use juliensimon/distilbert-amazon-shoe-reviews-onnx-quantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use juliensimon/distilbert-amazon-shoe-reviews-onnx-quantized with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="juliensimon/distilbert-amazon-shoe-reviews-onnx-quantized")# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("juliensimon/distilbert-amazon-shoe-reviews-onnx-quantized", dtype="auto") - Notebooks
- Google Colab
- Kaggle
DistilBERT Amazon Shoe Reviews β ONNX Quantized
Dynamically quantized ONNX export of juliensimon/distilbert-amazon-shoe-reviews for maximum CPU inference speed using Optimum.
Video walkthrough: Accelerate Transformer inference on CPU with Optimum and ONNX
Model Details
| Detail | Value |
|---|---|
| Base model | juliensimon/distilbert-amazon-shoe-reviews |
| Task | Star rating prediction (1β5 stars) from shoe reviews |
| Format | ONNX with dynamic quantization (INT8 weights) |
Usage
from optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer, pipeline
model = ORTModelForSequenceClassification.from_pretrained("juliensimon/distilbert-amazon-shoe-reviews-onnx-quantized")
tokenizer = AutoTokenizer.from_pretrained("juliensimon/distilbert-amazon-shoe-reviews-onnx-quantized")
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
classifier("These shoes are incredibly comfortable!")
Related Models
- distilbert-amazon-shoe-reviews β Original PyTorch model
- distilbert-amazon-shoe-reviews-onnx β Vanilla ONNX export
- distilbert-amazon-shoe-reviews-onnx-optimized β ONNX with graph optimizations
- distilbert-amazon-shoe-reviews-quantized β PyTorch dynamic quantization
- Downloads last month
- 4
Model tree for juliensimon/distilbert-amazon-shoe-reviews-onnx-quantized
Base model
juliensimon/distilbert-amazon-shoe-reviews