text-classfication int8 Intel® Neural Compressor QuantizationAwareTraining

INT8 MiniLM finetuned MRPC

QuantizationAwareTraining

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

Test result

INT8 FP32
Accuracy (eval-f1) 0.9068 0.9097
Model size (MB) 33.1 127

Load with optimum:

from optimum.intel import INCModelForSequenceClassification 

model_id = "Intel/MiniLM-L12-H384-uncased-mrpc-int8-qat"
int8_model = INCModelForSequenceClassification(model_id)

Training hyperparameters

The following hyperparameters were used during training: