echarlaix HF staff commited on
Commit
45fbd5b
1 Parent(s): 510bdce

fix code snippet

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -45,8 +45,8 @@ The calibration dataloader is the train dataloader. The default calibration samp
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
  ```
45
  ### Load with optimum:
46
 
47
  ```python
48
+ from optimum.intel import INCModelForTokenClassification
49
+
50
+ model_id = "Intel/distilbert-base-uncased-finetuned-conll03-english-int8-static"
51
+ int8_model = INCModelForTokenClassification.from_pretrained(model_id)
52
  ```