Open efsotr opened 8 months ago
This issue has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you!
Your current environment
🐛 Describe the bug
For example, in https://github.com/vllm-project/vllm/pull/646, if you examine the outputs generated by beam search:
You'll notice that the best(first) output is shorter than the others. This occurrence is abnormal in the context of beam search.
The specific code responsible for this abnormality can be found in line 265 of the following file: https://github.com/vllm-project/vllm/blob/7341c77d693edcecf0a9f5a6e399c5137177dfba/vllm/sequence.py#L254-L271
To rectify this issue,
seq_len = self.get_len()
should be modified toseq_len = self.get_output_len()
.