Skip to content

Commit

Permalink
test fix WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tengomucho committed Feb 28, 2024
1 parent 0b3fbac commit 9080f68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions text-generation-inference/tests/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def create_request(
],
[
"It was a bright cold day in April, and the clocks were striking thirteen.",
1439,
" All",
775,
" We",
True,
],
],
Expand Down Expand Up @@ -140,6 +140,7 @@ def test_decode_single(input_text, max_new_tokens, generated_text, do_sample, mo
output = generations[0].generated_text
assert output.generated_tokens == max_new_tokens
assert output.finish_reason == 0
print(output.text)
assert output.text == generated_text


Expand Down

0 comments on commit 9080f68

Please sign in to comment.