CosyVoice 2/3 输出在 >= 4.53 的变换器上变成无法理解的语音: forward_one_step 传递了在提示长度处冻结的掩码
作者: xuyukuan创建于 2026年10月1日更新于 2026年10月1日
if (padding_length := kv_length + kv_offset - attention_mask.shape[-1]) > 0: local_padding_mask = torch.nn.functional.pad(attention_mask, (0, padding_length))
and the docstring of create_causal_mask states the 2D mask is
内容来源: QwenAudio/CosyVoice