ONNX Model Zoo

Intel/MiniLM-L12-H384-uncased-mrpc-int8-dynamic-inc

By Intel · ↓ 4 · ♥ 0 · Updated 2022-12-28

What's in this repo

This page lists the files in Intel/MiniLM-L12-H384-uncased-mrpc-int8-dynamic-inc, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 5 files, including 2 .json, 1 .md, 1 .onnx
  • Last updated 2022-12-28

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 MiniLM-L12-H384-uncased-mrpc

Post-training dynamic quantization

ONNX

This is an INT8 ONNX model quantized with Intel® Neural Compressor.

The original fp32 model comes from the fine-tuned model Intel/MiniLM-L12-H384-uncased-mrpc.

Test result
INT8 FP32
Accuracy (eval-f1) 0.9107 0.9097
Model size (MB) 33 128
Load ONNX model:
from optimum.onnxruntime import ORTModelForSequenceClassification
model = ORTModelForSequenceClassification.from_pretrained('Intel/MiniLM-L12-H384-uncased-mrpc-int8-dynamic')

Model info

text-classification transformers
transformers onnx bert text-classification text-classfication int8 Intel® Neural Compressor PostTrainingDynamic en dataset:mrpc license:mit endpoints_compatible
↓ 4 ♥ 0

Created: 2022-12-28

Updated: 2022-12-28

View on Hugging Face

Files (5)

.gitattributes
README.md
config.json
model.onnx ONNX
tokenizer.json

Related models