RuntimeError: The size of tensor a (32) must match the size of tensor b (8) at non-singleton dimension 1

用户在 ComfyUI 中使用 HiDream-O1-Image 模型工作流时,每次生成均在第一个采样步骤触发失败。该问题在 commit b481bc15a(对应 PR #14772)之后出现,父版本及更早版本工作正常。即使更新到当前最新 master(5697b9701),问题依旧存在。
![RuntimeError: shape '[0, 6, 16]' is invalid for input of size 72](https://www.chat-gpts.plus/wp-content/uploads/2026/07/14879-05a9e426-768x403.jpg)







