Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/FP8_QUANT/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ This end-to-end example utilizes the common set of interfaces provided by `fms_m

```python
from llmcompressor.modifiers.quantization import QuantizationModifier
from llmcompressor.transformers import SparseAutoModelForCausalLM, oneshot
from llmcompressor.transformers import SparseAutoModelForCausalLM
from llmcompressor import oneshot

model = SparseAutoModelForCausalLM.from_pretrained(model_args.model_name_or_path, torch_dtype=model_args.torch_dtype)
tokenizer = AutoTokenizer.from_pretrained(model_args.model_name_or_path)
Expand Down
3 changes: 2 additions & 1 deletion fms_mo/run_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@ def run_fp8(model_args, data_args, opt_args, fp8_args):
"""

# Third Party
from llmcompressor import oneshot
from llmcompressor.modifiers.quantization import QuantizationModifier
from llmcompressor.transformers import SparseAutoModelForCausalLM, oneshot
from llmcompressor.transformers import SparseAutoModelForCausalLM

logger = set_log_level(opt_args.log_level, "fms_mo.run_fp8")

Expand Down
Loading