Commit
·
510bdce
1
Parent(s):
127e325
Update README.md
Browse files
README.md
CHANGED
|
@@ -29,7 +29,7 @@ model-index:
|
|
| 29 |
|
| 30 |
### Post-training static quantization
|
| 31 |
|
| 32 |
-
This is an INT8 PyTorch model quantized with [Intel® Neural Compressor](https://github.com/intel/neural-compressor).
|
| 33 |
|
| 34 |
The original fp32 model comes from the fine-tuned model [elastic/distilbert-base-uncased-finetuned-conll03-english](https://huggingface.co/elastic/distilbert-base-uncased-finetuned-conll03-english).
|
| 35 |
|
|
@@ -42,11 +42,11 @@ The calibration dataloader is the train dataloader. The default calibration samp
|
|
| 42 |
| **Accuracy (eval-accuracy)** |0.9859|0.9882|
|
| 43 |
| **Model size (MB)** |64.5|253|
|
| 44 |
|
| 45 |
-
### Load with
|
| 46 |
|
| 47 |
```python
|
| 48 |
-
from neural_compressor.
|
| 49 |
-
int8_model =
|
| 50 |
'Intel/distilbert-base-uncased-finetuned-conll03-english-int8-static',
|
| 51 |
)
|
| 52 |
```
|
|
|
|
| 29 |
|
| 30 |
### Post-training static quantization
|
| 31 |
|
| 32 |
+
This is an INT8 PyTorch model quantized with [huggingface/optimum-intel](https://github.com/huggingface/optimum-intel) through the usage of [Intel® Neural Compressor](https://github.com/intel/neural-compressor).
|
| 33 |
|
| 34 |
The original fp32 model comes from the fine-tuned model [elastic/distilbert-base-uncased-finetuned-conll03-english](https://huggingface.co/elastic/distilbert-base-uncased-finetuned-conll03-english).
|
| 35 |
|
|
|
|
| 42 |
| **Accuracy (eval-accuracy)** |0.9859|0.9882|
|
| 43 |
| **Model size (MB)** |64.5|253|
|
| 44 |
|
| 45 |
+
### Load with optimum:
|
| 46 |
|
| 47 |
```python
|
| 48 |
+
from optimum.intel.neural_compressor.quantization import IncQuantizedModelForTokenClassification
|
| 49 |
+
int8_model = IncQuantizedModelForTokenClassification.from_pretrained(
|
| 50 |
'Intel/distilbert-base-uncased-finetuned-conll03-english-int8-static',
|
| 51 |
)
|
| 52 |
```
|