Update model card
Browse files
README.md
CHANGED
|
@@ -49,8 +49,8 @@ The linear modules **albert.encoder.albert_layer_groups.0.albert_layers.0.ffn_ou
|
|
| 49 |
### Load with Intel® Neural Compressor:
|
| 50 |
|
| 51 |
```python
|
| 52 |
-
from
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
)
|
| 56 |
```
|
|
|
|
| 49 |
### Load with Intel® Neural Compressor:
|
| 50 |
|
| 51 |
```python
|
| 52 |
+
from optimum.intel.neural_compressor import IncQuantizedModelForSequenceClassification
|
| 53 |
+
|
| 54 |
+
model_id = "Intel/albert-base-v2-sst2-int8-static"
|
| 55 |
+
int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(model_id)
|
| 56 |
```
|