ONNX Model Zoo

fxmarty/distilbert-base-uncased-finetuned-sst-2-english-int8-dynamic

By fxmarty · ↓ 3 · ♥ 0 · Updated 2022-09-22

What's in this repo

This page lists the files in fxmarty/distilbert-base-uncased-finetuned-sst-2-english-int8-dynamic, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 8 files, including 4 .json, 1 .md, 1 .onnx, 1 .txt
  • Last updated 2022-09-22

ONNX files

File Size Download
model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

This model is a fork of https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english , quantized using dynamic Post-Training Quantization (PTQ) with ONNX Runtime and 🤗 Optimum library.

It achieves 0.901 on the validation set.

To load this model:

from optimum.onnxruntime import ORTModelForSequenceClassification

model = ORTModelForSequenceClassification.from_pretrained("fxmarty/distilbert-base-uncased-finetuned-sst-2-english-int8-dynamic")

Model info

text-classification transformers
transformers onnx distilbert text-classification dataset:sst2 dataset:glue license:apache-2.0 endpoints_compatible region:us
↓ 3 ♥ 0

Created: 2022-09-22

Updated: 2022-09-22

View on Hugging Face

Files (8)

.gitattributes
README.md
config.json
eval_results.json
model.onnx ONNX
ort_config.json
tokenizer_config.json
vocab.txt

Related models