Skip to content

Commit

Permalink
Update resize padding multiple in test_transformers_logits_vocab_size
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Oct 3, 2023
1 parent 1171e68 commit f43a47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/text/generate/test_integration_transfomers.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def test_transformers_logits_vocab_size():

# Artificially increase the weights/logits size relative
# to the vocabulary
model.model.resize_token_embeddings(pad_to_multiple_of=2)
model.model.resize_token_embeddings(pad_to_multiple_of=3)

assert len(model.tokenizer.vocabulary) == 1024
assert model.model.base_model.wte.weight.shape[0] == 1026
Expand Down

0 comments on commit f43a47f

Please sign in to comment.