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
{{ message }}
Repository navigation
Enable MPS backend for bitsandbytes quantization #13361
The issue is that diffusers does not allow me to use the quantization on Apple hardware, because of the error No GPU found. A GPU is needed for quantization. from here
raiseRuntimeError("No GPU found. A GPU is needed for quantization.")
.
Describe the solution you'd like.
I modified the above lines to
ifnot (torch.cuda.is_available() ortorch.xpu.is_available() ortorch.mps.is_available()):
raiseRuntimeError("No GPU found. A GPU is needed for quantization.")
Activity
Vargol commentedon Jun 9, 2026
Hi, I've just had a go a getting ideogram working and it required the change flagged above and a change to
update_device_mapI'd really like to see the mps restriction lifted without me having to change the code
asomoza commentedon Jun 9, 2026
cc: @sayakpaul WDYT?
sayakpaul commentedon Jun 10, 2026
Sure why not.
akshan-main commentedon Jun 10, 2026
@LucasSte are you still planning to PR it? I'd be happy to take this
LucasSte commentedon Jun 10, 2026
Now that someone has approved the change, I'll open a PR.
LucasSte commentedon Jun 10, 2026
The PR is here: #13915