Text Classification
Transformers
PyTorch
ONNX
English
distilbert
text-classfication
int8
neural-compressor
Intel® Neural Compressor
PostTrainingStatic
Eval Results (legacy)
text-embeddings-inference
Instructions to use Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc") model = AutoModelForSequenceClassification.from_pretrained("Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
bc1fc91
1
Parent(s): 201cac9
update int8 onnx model and readme
Browse filesSigned-off-by: dujun <jun.du@intel.com>
- README.md +2 -2
- model.onnx +2 -2
README.md
CHANGED
|
@@ -78,8 +78,8 @@ int8_model = ORTModelForSequenceClassification.from_pretrained(model_id)
|
|
| 78 |
|
| 79 |
| | PyTorch INT8 | ONNX INT8 | FP32 |
|
| 80 |
|---|---|---|---|
|
| 81 |
-
| **Accuracy (eval-accuracy)** |0.9037|0.
|
| 82 |
-
| **Model Size (MB)** |65|
|
| 83 |
|
| 84 |
| Training and Evaluation Data | Description |
|
| 85 |
| ----------- | ----------- |
|
|
|
|
| 78 |
|
| 79 |
| | PyTorch INT8 | ONNX INT8 | FP32 |
|
| 80 |
|---|---|---|---|
|
| 81 |
+
| **Accuracy (eval-accuracy)** |0.9037|0.9071|0.9106|
|
| 82 |
+
| **Model Size (MB)** |65|89|255|
|
| 83 |
|
| 84 |
| Training and Evaluation Data | Description |
|
| 85 |
| ----------- | ----------- |
|
model.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85bd16e8a193cff6bc2fe330e96e6dcaf56332c59b05616dd4129a6d5b1e5a08
|
| 3 |
+
size 92874949
|