Skip to content

Commit

Permalink
fix: load weights to modify stacked_params_mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
xulinhui committed Aug 9, 2024
1 parent 8a35916 commit 259d6db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vllm/model_executor/model_loader/veturboio.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ def deserialize(self, model):
tensors_dict = veturboio.load(model_file,
helper=helper,
**self.veturboio_args.deserializer_params)

model.load_state_dict(tensors_dict, strict=False, assign=True)
model.load_weights(iter(tensors_dict.items()))
del tensors_dict
# gc.collect() # do gc collect immediately
torch.cuda.empty_cache()
Expand Down

0 comments on commit 259d6db

Please sign in to comment.