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 4a12210 commit e0e3708Copy full SHA for e0e3708
python/openai/openai_frontend/engine/utils/triton.py
@@ -362,6 +362,11 @@ def _get_vllm_lora_names(
362
repo_paths = [repo_paths]
363
for repo_path in repo_paths:
364
model_path = os.path.join(repo_path, model_name)
365
+ if os.path.normpath(model_path) != model_path:
366
+ raise ValueError(
367
+ f"Invalid model name: '{model_name}'. Model names must be valid file-system-path segment names."
368
+ )
369
+ model_path = os.path.normpath(model_path)
370
if not os.path.isdir(model_path):
371
# Cloud path?
372
return None
0 commit comments