Skip to content

Commit

Permalink
BUG: no error raised on unsupported fmt (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
UranusSeven authored Sep 12, 2023
1 parent ee59c69 commit 73ff19a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xinference/model/llm/llm_family.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ def cache_from_huggingface(
f"(size: {llm_spec.model_size_in_billions}, format: {llm_spec.model_format}) "
f"after multiple retries"
)
else:
raise ValueError(f"Unsupported model format: {llm_spec.model_format}")

return cache_dir

Expand Down

0 comments on commit 73ff19a

Please sign in to comment.