Skip to content

Commit 04a012a

Browse files
committed
Update on "Add GPTQQuantizer"
Summary: Implement GPTQQuantizer with the unified quantizer API Test Plan: python test/quantization/test_quant_api.py Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
1 parent 461e4c0 commit 04a012a

File tree

4 files changed

+868
-350
lines changed

4 files changed

+868
-350
lines changed

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
packages=find_packages(),
1313
install_requires=[
1414
'torch',
15-
'lm-eval',
1615
],
1716
description='Package for applying ao techniques to GPU models',
1817
long_description=open('README.md').read(),

torchao/quantization/GPTQ.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def model_forward(model, x, input_pos):
5555
eval_wrapper = base.BaseLM
5656
get_task_dict = tasks.get_task_dict
5757
evaluate = evaluator.evaluate
58-
58+
else:
59+
print("lm_eval is not installed, GPTQ may not be usable")
5960

6061
def setup_cache_padded_seq_input_pos_max_seq_length_for_prefill(
6162
model: torch.nn.Module, # pyre-ignore[11]

0 commit comments

Comments
 (0)