Skip to content

Commit

Permalink
refine comments for lm_head gemma error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
taeminlee authored Mar 21, 2024
1 parent 959ceb9 commit 8c2b7b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vllm/model_executor/models/gemma.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,8 @@ def load_weights(self,
weight_loader(param, loaded_weight, shard_id)
break
else:
# lm_head is not used in vllm as it is tied weight with embed_token.
# Sometimes duplicate lm_head layers are added when the structure of the model is newly created by quantization, LORA, etc.
# To avoid the error that occurs, skip loading lm_head.weight.
# 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.
Expand Down

0 comments on commit 8c2b7b4

Please sign in to comment.