Commit 4e23f2ad authored by 王敏's avatar 王敏
Browse files

[fix]解决单测test_encode报错问题

parent a715dfbe
......@@ -989,6 +989,7 @@ class LLMEngine:
output = [outputs_by_sequence_group[0][i]]
# tree style speculative decoding may generate empty output in first step
if outputs and isinstance(output[0], SamplerOutput):
samples = [o.samples[0] for o in output]
valid_samples = [
sample for sample in samples
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment