标签: Python

RuntimeError: Expected all tensors to be on the same device, but got weight is on cpu, different from other tensors on xpu:0 (when checking argument in method wrapper_XPU___fused_rms_norm)

RuntimeError: Expected all tensors to be on the same device, but got weight is on cpu, different from other tensors on xpu:0 (when checking argument in method wrapper_XPU___fused_rms_norm)

该报错通常出现在 Intel XPU 环境下运行 ComfyUI 0.36.0(及 0.37.0 的 --novram 模式)执行 Minimax H3 VAE 视频解码时,核心 RMSNorm 的权重张量留在 CPU、而激活张量已在 xpu:0 ,导致设备不一致。优先排查/规避方向是设备放置一致性