Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
[Bugfix] handle hf_config with architectures == None (vllm-project#3982)
Browse files Browse the repository at this point in the history
Signed-off-by: Travis Johnson <[email protected]>
Co-authored-by: Simon Mo <[email protected]>
  • Loading branch information
2 people authored and SageMoore committed Apr 11, 2024
1 parent dfbd725 commit 0b6c223
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vllm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ def _verify_load_format(self) -> None:

# TODO: Remove this check once HF updates the pt weights of Mixtral.
architectures = getattr(self.hf_config, "architectures", [])
if "MixtralForCausalLM" in architectures and load_format == "pt":
# architectures can be None instead of []
if architectures and "MixtralForCausalLM" in architectures \
and load_format == "pt":
raise ValueError(
"Currently, the 'pt' format is not supported for Mixtral. "
"Please use the 'safetensors' format instead. ")
Expand Down

0 comments on commit 0b6c223

Please sign in to comment.