Closed dvianisoho closed 9 months ago
The eos list is already in reverse order for that reason:
eos = []
...
for i in range(len(input_ids)):
...
eos.insert(0, i)
You are right. For some reason when I implemented this I was appending to the list, not inserting at the beginning.
Believe line 116 should be
for i in sorted(eos, reverse=True):
to cover the case where a multiple prompts finish at the same time and one closer to the front of the queue gets popped first.