Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xtinkt committed Jul 18, 2024
1 parent 5ca5822 commit b9d4d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_speculative_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_speculative_greedy_generation(tokenizer, model, model2, ref_model, max_
new_tokens[:, random_pos] = random.randrange(1, 100)

combined_ids = torch.cat((generated_ids, new_tokens), dim=1)
logits = model(combined_ids, start_from_position=1).logits
logits = model(combined_ids).logits

# Найти первую позицию, где токены совпали
match_length = 0
Expand Down

0 comments on commit b9d4d06

Please sign in to comment.