You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering the error TypeError: BFloat16 is not supported on MPS while using PyTorch with Apple's Metal Performance Shaders (MPS) backend. This issue arises across multiple projects, specifically Stable Diffusion WebUI Forge and ComfyUI, both of which depend on PyTorch for GPU acceleration.
🐛 Describe the bug
I am encountering the error
TypeError: BFloat16 is not supported on MPSwhile using PyTorch with Apple's Metal Performance Shaders (MPS) backend. This issue arises across multiple projects, specifically Stable Diffusion WebUI Forge and ComfyUI, both of which depend on PyTorch for GPU acceleration.Model: Intel(R) Xeon(R) W-2140B CPU
Speed: 3.20 GHz
Cores: 8 cores (with Hyper-Threading enabled)
Total RAM: 32 GB (34359738368 bytes)
Model: Radeon Pro Vega 56
VRAM: 8 GB
Bus: PCIe (x16)
Metal Support: Metal 3 (supports Apple's graphics framework)
Projects where this issue occurs:
Steps to Reproduce:
TypeError: BFloat16 is not supported on MPS
Observations:
System:
macOS : Sequoia (15.1.1) Intel, AMD
Request:
Can BFloat16 support be added to MPS in PyTorch, CPU is very very slow for this type of operations.
Versions
2.1.2
ALL VERSIONS
cc @seemethere @malfet @osalpekar @atalman @albanD @frank-wei @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @kulinseth @DenisVieriu97 @jhavukainen