Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyouga committed Jun 28, 2023
1 parent e61c4c1 commit 2d2cc06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def get_input_embeddings(self):
return self.transformer.embedding
model.get_input_embeddings = MethodType(get_input_embeddings, model)
model.lm_head = model.transformer.output_layer
tokenizer.eos_token = "</s>"
output_embedding_layer_name = "transformer.output_layer"
else:
output_embedding_layer_name = "lm_head"
Expand Down

0 comments on commit 2d2cc06

Please sign in to comment.