"git@developer.sourcefind.cn:change/sglang.git" did not exist on "5fc4b6004e848596d3b8729b9d47e36bdb12ac67"
Commit 20dcbd21 authored by myhloli's avatar myhloli
Browse files

fix: include server_url in model key for backend model retrieval in vlm_analyze.py

parent 013ddc02
...@@ -27,7 +27,7 @@ class ModelSingleton: ...@@ -27,7 +27,7 @@ class ModelSingleton:
model_path: str | None, model_path: str | None,
server_url: str | None, server_url: str | None,
) -> BasePredictor: ) -> BasePredictor:
key = (backend,) key = (backend, server_url)
if key not in self._models: if key not in self._models:
if backend in ['transformers', 'sglang-engine'] and not model_path: if backend in ['transformers', 'sglang-engine'] and not model_path:
model_path = auto_download_and_get_model_root_path("/","vlm") model_path = auto_download_and_get_model_root_path("/","vlm")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment