Skip to content

Commit

Permalink
[BugFix] gemma loading after quantization or LoRA. (#3553)
Browse files Browse the repository at this point in the history
  • Loading branch information
taeminlee authored and joerunde committed Mar 21, 2024
1 parent 443dcbe commit cd4af85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vllm/model_executor/models/gemma.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ def load_weights(self,
weight_loader(param, loaded_weight, shard_id)
break
else:
# lm_head is not used in vllm as it is tied with embed_token.
# To prevent errors, skip loading lm_head.weight.
if "lm_head.weight" in name:
continue
# Skip loading extra bias for GPTQ models.
if name.endswith(".bias") and name not in params_dict:
continue
Expand Down

0 comments on commit cd4af85

Please sign in to comment.