Skip to content

Commit

Permalink
fix gguf
Browse files Browse the repository at this point in the history
  • Loading branch information
zifeitong committed Aug 21, 2024
1 parent cf830d4 commit 17ccce8
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 @@ -104,6 +104,9 @@ def get_hf_image_processor_config(
revision: Optional[str] = None,
**kwargs,
) -> Dict[str, Any]:
# Separate model folder from file path for GGUF models
if Path(model).is_file() and Path(model).suffix == ".gguf":
model = Path(model).parent
return get_image_processor_config(model, revision=revision, **kwargs)


Expand Down

0 comments on commit 17ccce8

Please sign in to comment.