We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1109f98 commit 0258f04Copy full SHA for 0258f04
vllm/model_executor/model_loader/weight_utils.py
@@ -641,7 +641,6 @@ def safetensors_weights_iterator(
641
if safetensors_load_strategy == "eager":
642
loading_desc += " (eager)"
643
644
- state_dict = {}
645
leftover_state_dict: dict[str, torch.Tensor] = {}
646
647
for st_file in tqdm(
@@ -667,6 +666,7 @@ def safetensors_weights_iterator(
667
666
)
668
669
with safe_open(st_file, framework="pt") as f:
+ state_dict = {}
670
for name in f.keys(): # noqa: SIM118
671
state_dict[name] = f.get_tensor(name)
672
0 commit comments