[mtp] Fix EOS token leak in output_token_ids (#54) #60
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/54-mtp-eos-output"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
request.output_token_idson 3 early-return finish paths in_mtp_step()<|im_end|>appears inoutput_texton finished requestsRoot cause
request.append_output_token()was called before the stop-token check. On early-return paths, the appended stop token was never removed fromoutput_token_ids.Test results
Closes #54