Skip to content

Commit 4f5d844

Browse files
authored
[Bugfix] Fix ModelScope models in v0.5.5 (#8037)
1 parent d05f0a9 commit 4f5d844

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vllm/transformers_utils/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ def get_hf_image_processor_config(
108108
revision: Optional[str] = None,
109109
**kwargs,
110110
) -> Dict[str, Any]:
111+
# ModelScope does not provide an interface for image_processor
112+
if VLLM_USE_MODELSCOPE:
113+
return dict()
111114
# Separate model folder from file path for GGUF models
112115
if Path(model).is_file() and Path(model).suffix == ".gguf":
113116
model = Path(model).parent

0 commit comments

Comments
 (0)