Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarques committed Nov 8, 2023
1 parent bf1b0cf commit 0c618a6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ def test_pipeline_for_ppl_eval(pipeline, prompt):
max_length=1,
)
assert hasattr(predictions, "generations")
assert hasattr(predictions, "input_tokens")
assert hasattr(predictions.generations[0], "score")
assert hasattr(predictions.generations[0], "input_tokens")
assert "input_ids" in predictions.generations[0].input_tokens
assert "attention_mask" in predictions.generations[0].input_tokens
assert "input_ids" in predictions.input_tokens
assert "attention_mask" in predictions.input_tokens


def test_streaming_mode_returns_generator(pipeline, prompt):
Expand Down

0 comments on commit 0c618a6

Please sign in to comment.