Skip to content

Commit

Permalink
[Bugfix] Fix ModelScope models in v0.5.5 (vllm-project#8037)
Browse files Browse the repository at this point in the history
Signed-off-by: Alvant <alvasian@yandex.ru>
  • Loading branch information
NickLucche authored and Alvant committed Oct 26, 2024
1 parent 3ed186b commit f49c421
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vllm/transformers_utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def get_hf_image_processor_config(
revision: Optional[str] = None,
**kwargs,
) -> Dict[str, Any]:
# ModelScope does not provide an interface for image_processor
if VLLM_USE_MODELSCOPE:
return dict()
# Separate model folder from file path for GGUF models
if Path(model).is_file() and Path(model).suffix == ".gguf":
model = Path(model).parent
Expand Down

0 comments on commit f49c421

Please sign in to comment.