Skip to content

Commit

Permalink
add version check
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyouga committed Jun 30, 2023
1 parent e8d18a1 commit 5810278
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 @@ -231,6 +231,7 @@ def load_pretrained(
output_embedding_base_layer = model.transformer
output_embedding_layer_name = "output_layer"
else:
assert tokenizer.eos_token_id == 150005, "Please specify `use_v2` argument while using ChatGLM2-6B."
output_embedding_base_layer = model
output_embedding_layer_name = "lm_head"

Expand Down

0 comments on commit 5810278

Please sign in to comment.