Skip to content

Commit

Permalink
add import warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Xu-Kai committed Aug 17, 2023
1 parent 6ce0b81 commit cdb3181
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions colossalai/gptq/cai_gptq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import warnings

HAS_AUTO_GPTQ = False

try:
import auto_gptq
HAS_AUTO_GPTQ = True
except ImportError:
warnings.warn('please install auto-gptq from https://github.com/PanQiWei/AutoGPTQ')
HAS_AUTO_GPTQ = False

if HAS_AUTO_GPTQ:

if HAS_AUTO_GPTQ:
from .gptq_triton import gptq_fused_linear_triton
from .cai_quant_linear import make_cai_quant_linear, CaiQuantLinear
from .gptq_op import CaiGPTQLinearOp

0 comments on commit cdb3181

Please sign in to comment.