echarlaix HF staff commited on
Commit
4439326
1 Parent(s): a372eb5

update loading instructions

Browse files
Files changed (1) hide show
  1. README.md +3 -4
README.md CHANGED
@@ -38,9 +38,8 @@ The original fp32 model comes from the fine-tuned model [yoshitomo-matsubara/ber
38
  #### Load with Intel® Neural Compressor:
39
 
40
  ```python
41
- from optimum.intel.neural_compressor.quantization import IncQuantizedModelForSequenceClassification
42
 
43
- int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(
44
- "Intel/bert-large-uncased-rte-int8-static",
45
- )
46
  ```
 
38
  #### Load with Intel® Neural Compressor:
39
 
40
  ```python
41
+ from optimum.intel import INCModelForSequenceClassification
42
 
43
+ model_id = "Intel/bert-large-uncased-rte-int8-static"
44
+ int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
 
45
  ```