Skip to content

Commit

Permalink
Include test for negative case
Browse files Browse the repository at this point in the history
  • Loading branch information
njhill committed Jul 24, 2024
1 parent d25ddbd commit 15358f2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/spec_decode/e2e/test_seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,13 @@ def test_seeded_consistency(baseline_llm_generator, test_llm_generator,
temperature=temperature,
seeded=True,
force_output_len=True)

# Ensure this same test does fail if we _don't_ include per-request seeds
with pytest.raises(AssertionError):
run_equality_correctness_test(baseline_llm_generator,
test_llm_generator,
batch_size,
max_output_len=output_len,
temperature=temperature,
seeded=False,
force_output_len=True)

0 comments on commit 15358f2

Please sign in to comment.