Skip to content

Commit

Permalink
Fix OPT param names (vllm-project#1819)
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosukKwon authored Nov 28, 2023
1 parent eaee060 commit f5ef9f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vllm/model_executor/models/opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ def load_weights(self,
model_name_or_path, cache_dir, load_format, revision):
if "lm_head.weight" in name:
continue
if name.startswith("decoder."):
name = "model." + name

for (param_name, weight_name, shard_id) in stacked_params_mapping:
if weight_name not in name:
continue
Expand Down

0 comments on commit f5ef9f2

Please sign in to comment.