← 返回事件
持续讨论AI发版4.422

viable/strict/1788369925: [MPS] Migrate constant pad to metal (#195368)

发生了什么

Following this PR #195153 I tried to pin down other ops which might make memory usage high as the nll_loss backward did. To make findings meaningful, I tried doing inference of various LLM/image/video generation models and found that for Wan-AI/Wan2.2-TI2V-5B-Diffusers memory usage explodes because of the pad function that is used during VAE decode phase of the model. PR migrates MPS Graph constant pad to metal kern…

摘要按规则整理自下方来源原文

为什么在扩散

来源