Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire committed Dec 11, 2024
1 parent 68a10cc commit ac0ced9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions lmdeploy/pytorch/check_env/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,14 @@ def check_awq(self, config):

try:
import awq_ext # noqa
except Exception:
except Exception as e:
logger.debug('Exception:', exc_info=1)
logger.warning('Failed to import `awq_ext`. '
'Try reinstall it from source: '
'https://github.com/casper-hansen/AutoAWQ_kernels')
self.log_and_exit(
e,
'awq_ext',
message='Failed to import `awq_ext`. '
'Try reinstall it from source: '
'https://github.com/casper-hansen/AutoAWQ_kernels')

def check(self):
"""check."""
Expand Down
2 changes: 1 addition & 1 deletion lmdeploy/pytorch/engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(self,
engine_config=engine_config,
trust_remote_code=trust_remote_code,
logger=logger)
checker.check()
checker.handle()

adapters = engine_config.adapters
self.engine_config = engine_config
Expand Down

0 comments on commit ac0ced9

Please sign in to comment.