Intel/bart-large-mrpc-int8-dynamic-inc
By Intel · ↓ 12 · ♥ 0 · Updated 2024-03-21
What's in this repo
This page lists the files in Intel/bart-large-mrpc-int8-dynamic-inc, including model.onnx.
- 1 ONNX models (.onnx files)
- 10 files, including 5 .json, 1 .md, 1 .txt, 1 .onnx, 1 .bin
- Last updated 2024-03-21
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
INT8 bart-large-mrpc
Post-training dynamic quantization
PyTorch
This is an INT8 PyTorch model quantized with huggingface/optimum-intel through the usage of Intel® Neural Compressor.
The original fp32 model comes from the fine-tuned model bart-large-mrpc.
Test result
| INT8 | FP32 | |
|---|---|---|
| Accuracy (eval-f1) | 0.9051 | 0.9120 |
| Model size (MB) | 547 | 1556.48 |
Load with optimum:
from optimum.intel import INCModelForSequenceClassification
model_id = "Intel/bart-large-mrpc-int8-dynamic"
int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
ONNX
This is an INT8 ONNX model quantized with Intel® Neural Compressor.
The original fp32 model comes from the fine-tuned model bart-large-mrpc.
Test result
| INT8 | FP32 | |
|---|---|---|
| Accuracy (eval-f1) | 0.9236 | 0.9120 |
| Model size (MB) | 764 | 1555 |
Load ONNX model:
from optimum.onnxruntime import ORTModelForSequenceClassification
model = ORTModelForSequenceClassification.from_pretrained('Intel/bart-large-mrpc-int8-dynamic')
Model info
Created: 2022-04-21
Updated: 2024-03-21
View on Hugging Face