Skip to content

Commit

Permalink
Fix test string
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Aug 8, 2023
1 parent a065dce commit dac177a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_full_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def test_full_model_exact_match(

assert len(model.transformer.h) == model.config.num_hidden_layers

test_inputs = tokenizer("A quick brown fox was minding its own buisness", return_tensors="pt")["input_ids"]
test_inputs = tokenizer("A cat was minding its own business", return_tensors="pt")["input_ids"]
assert (test_inputs < crop_vocab_size).all(), f"The test string has token_ids >= {crop_vocab_size}"

with torch.inference_mode():
parallel_outputs = model.forward(test_inputs).logits
Expand Down

0 comments on commit dac177a

Please sign in to comment.