Skip to content

Commit

Permalink
support downloading models from openmind_hub (#2563)
Browse files Browse the repository at this point in the history
  • Loading branch information
cookieyyds authored Oct 9, 2024
1 parent 677207b commit a5ee8df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lmdeploy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ def get_model(pretrained_model_name_or_path: str,
import os
if os.getenv('LMDEPLOY_USE_MODELSCOPE', 'False').lower() == 'true':
from modelscope import snapshot_download
elif os.getenv('LMDEPLOY_USE_OPENMIND_HUB', 'False').lower() == 'true':
from openmind_hub import snapshot_download
else:
from huggingface_hub import snapshot_download

Expand Down

0 comments on commit a5ee8df

Please sign in to comment.