Skip to content

Commit ce13e2c

Browse files
make sure GPTQ will not turn on triton when triton is not available
Signed-off-by: cliu-us <[email protected]>
1 parent ac0478d commit ce13e2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fms_mo/run_quant.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def quantize(
9292
"auto_gptq module not found. For more instructions on installing the appropriate "
9393
"package, see https://github.com/AutoGPTQ/AutoGPTQ?tab=readme-ov-file#installation"
9494
)
95+
gptq_args.use_triton = gptq_args.use_triton and available_packages["triton"]
9596
run_gptq(model_args, data_args, opt_args, gptq_args)
9697
elif opt_args.quant_method == "fp8":
9798
if not available_packages["llmcompressor"]:

0 commit comments

Comments
 (0)