#49233·transformers

编码器重复惩罚在束扇或采样回传扩展后使用了不正确的源行

作者: gitedmond创建于 2026年10月1日更新于 2026年10月2日
标签bug

With `encoder_repetition_penalty != 1`, generation retains the original source IDs inside the processor while expanding score rows for beams or returned samples. Some hypotheses receive another source's token preferences, and later hypotheses receive no encoder penalty at all.

内容来源: huggingface/transformers