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

Commit

Permalink
Update convert_llama.py
Browse files Browse the repository at this point in the history
  • Loading branch information
intellinjun authored May 28, 2024
1 parent b847728 commit 235cd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neural_speed/convert/convert_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ def load_some_model(path: Path) -> ModelPlus:
if path.is_dir():
# Check if it's a set of safetensors files first
files = list(path.glob("model-00001-of-*.safetensors"))
if not files
if not files:
files = list(path.glob("model*.safetensors")) # for only one safetensor
if not files:
# Try the PyTorch patterns too, with lower priority
Expand Down

0 comments on commit 235cd03

Please sign in to comment.