Skip to content

Tried to run diffusers/stable_diffusion.ipynb on Mac M3 and ran into errors #9967

@chrismattmann

Description

@chrismattmann

Describe the bug

I tried to run diffusers/stable_diffusion.ipynb on Mac M3 and it failed in several parts, including:

  • nvidia-smi call doesn't work
  • wasn't able to download the torch models due to some weird issues like ImportError: cannot import name 'DIFFUSERS_SLOW_IMPORT' from 'diffusers.utils' due to conflicting libraries
  • cuda calls needed to be replaced with mps device

I went ahead and updated the notebook and have a PR I could submit if interested that fixes it. I just made a copy of the notebook and added _macosx.ipynb to it. I realize some fancier way could have been to try some if/else guess system types in the notebook else, but I just opted for fixing it separately.

Reproduction

Tried on a brand new Mac M3

Logs

Don't really have logs

System Info

Brand new Mac M3 Max running Sonoma 14.6

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions