Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: changwangss <[email protected]>
  • Loading branch information
changwangss committed Jun 19, 2024
1 parent 01649dd commit dcf3369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/quantization.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ Quantization methods include the following three types:
## Get Started
### Script:
```python
from neural_compressor.config import PostTrainingConfig
from neural_compressor.config import PostTrainingQuantConfig
from intel_extension_for_transformers.transformers.trainer import NLPTrainer
# Replace transformers.Trainer with NLPTrainer
# trainer = transformers.Trainer(......)
trainer = NLPTrainer(......)
q_config = PostTrainingConfig(
q_config = PostTrainingQuantConfig(
approach="static"
)
model = trainer.quantize(quant_config=q_config)
Expand Down

0 comments on commit dcf3369

Please sign in to comment.