Skip to content

Commit

Permalink
Fix Readme Imports (#1165)
Browse files Browse the repository at this point in the history
## Purpose ##
* Readme clarity

## Changes ##
* Remove unneeded imports in the readme
* Change order of imports/appearance to match order of usage

Signed-off-by: Kyle Sayers <[email protected]>
Co-authored-by: Dipika Sikka <[email protected]>
  • Loading branch information
kylesayrs and dsikka authored Feb 19, 2025
1 parent 9d7b6bc commit 42c89b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ Note that the model can be swapped for a local or remote HF-compatible checkpoin
Quantization is applied by selecting an algorithm and calling the `oneshot` API.

```python
from llmcompressor.modifiers.quantization import GPTQModifier
from llmcompressor.modifiers.smoothquant import SmoothQuantModifier
from llmcompressor.modifiers.quantization import GPTQModifier
from llmcompressor.transformers import oneshot
from transformers import AutoModelForCausalLM

# Select quantization algorithm. In this case, we:
# * apply SmoothQuant to make the activations easier to quantize
Expand Down

0 comments on commit 42c89b8

Please sign in to comment.