Skip to content

Commit

Permalink
Fix GPTQ import error after torchao refactor
Browse files Browse the repository at this point in the history
Summary: Fix broken import after pytorch/ao#275

Reviewed By: jerryzh168

Differential Revision: D57888168
  • Loading branch information
andrewor14 authored and facebook-github-bot committed May 29, 2024
1 parent c665c17 commit 8058ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/models/llama2/source_transformation/quantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def quantize(
if calibration_tasks is None:
calibration_tasks = ["wikitext"]

from torchao.quantization.GPTQ import InputRecorder
from torchao._eval import InputRecorder
from torchao.quantization.quant_api import Int8DynActInt4WeightGPTQQuantizer

if tokenizer_path is None:
Expand Down

0 comments on commit 8058ade

Please sign in to comment.