We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d2e6ee commit a47908bCopy full SHA for a47908b
vllm/config.py
@@ -93,9 +93,12 @@ def __init__(
93
# download model from ModelScope hub,
94
# lazy import so that modelscope is not required for normal use.
95
from modelscope.hub.snapshot_download import snapshot_download # pylint: disable=C
96
- model_path = snapshot_download(model_id=model,
97
- cache_dir=download_dir,
98
- revision=revision)
+ if not os.path.exists(model):
+ model_path = snapshot_download(model_id=model,
+ cache_dir=download_dir,
99
+ revision=revision)
100
+ else:
101
+ model_path = model
102
self.model = model_path
103
self.download_dir = model_path
104
self.tokenizer = model_path
0 commit comments