mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-28 21:17:08 +00:00
[NFC] polish colossalai/inference/quant/gptq/cai_gptq/__init__.py code style (#4792)
This commit is contained in:
committed by
Zian(Andy) Zheng
parent
eef96e0877
commit
07ed155e86
@@ -3,9 +3,10 @@ import warnings
|
|||||||
HAS_AUTO_GPTQ = False
|
HAS_AUTO_GPTQ = False
|
||||||
try:
|
try:
|
||||||
import auto_gptq
|
import auto_gptq
|
||||||
|
|
||||||
HAS_AUTO_GPTQ = True
|
HAS_AUTO_GPTQ = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
warnings.warn('please install auto-gptq from https://github.com/PanQiWei/AutoGPTQ')
|
warnings.warn("please install auto-gptq from https://github.com/PanQiWei/AutoGPTQ")
|
||||||
HAS_AUTO_GPTQ = False
|
HAS_AUTO_GPTQ = False
|
||||||
|
|
||||||
if HAS_AUTO_GPTQ:
|
if HAS_AUTO_GPTQ:
|
||||||
|
Reference in New Issue
Block a user