Skip to content

Commit

Permalink
[BugFix] Fix a bug in loading safetensors (vllm-project#1732)
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosukKwon authored Nov 20, 2023
1 parent dfaf303 commit fb6865a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/model_executor/weight_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def hf_model_weights_iterator(
elif use_safetensors:
for st_file in hf_weights_files:
with safe_open(st_file, framework="pt") as f:
for name in f:
for name in f.keys(): # noqa: SIM118
param = f.get_tensor(name)
yield name, param
else:
Expand Down

0 comments on commit fb6865a

Please sign in to comment.