Skip to content

Commit

Permalink
add 1 decode to test [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackmin801 committed Feb 7, 2025
1 parent 496b572 commit a061616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/srt/test_srt_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def test_8_engine_return_hidden_states(self):
tokenizer = AutoTokenizer.from_pretrained(model_path)
input_ids = tokenizer(prompts).input_ids

sampling_params = {"temperature": 0, "max_new_tokens": 1}
sampling_params = {"temperature": 0, "max_new_tokens": 2}

engine = sgl.Engine(
model_path=model_path,
Expand All @@ -203,7 +203,7 @@ def test_8_engine_return_hidden_states(self):
engine.shutdown()

for output in outputs:
self.assertEqual(len(output["meta_info"]["hidden_states"]), 1)
self.assertEqual(len(output["meta_info"]["hidden_states"]), 2)
for hidden_state in output["meta_info"]["hidden_states"]:
self.assertIsInstance(hidden_state, torch.Tensor)
# Checks that splicing of the batch was done correctly
Expand Down

0 comments on commit a061616

Please sign in to comment.