在机器具有 MPS 加速器时,wait_for_everyone() 在 MULTI_CPU 上会引发 NotImplementedError (阻塞器获取设备 ID)
作者: JoeyTan21创建于 2026年9月28日更新于 2026年9月28日
"""
Minimal reproduction: PartialState.wait_for_everyone() crashes under DistributedType.MULTI_CPU
on a machine that has a non-CUDA accelerator (e.g. Apple Silicon / MPS).
内容来源: huggingface/accelerate