glonlas / Stable-Diffusion-Apple-Silicon-M1-Install

Stable Diffusion Install script with GPU support for Apple Silicon M1/M2
48 stars 5 forks source link

M1 Max supported? #3

Closed edbarbier closed 2 years ago

edbarbier commented 2 years ago

Describe your environment

Monterey 12.5.1 MBP 14" M1 Max

Describe the problem:

Explain the problem you have encountered

Post installation, when launching the script, it seems like the script doesn't recognize my CPU as Apple Silicon even though it is.

Steps to reproduce:

  1. Follow Installation steps.
  2. Run ./install-stable-diffusion-apple-silicon.sh

Observed Results:

+-----------------------------------------+ Stable Diffusion Apple Silicon Install script

+-----------------------------------------+ Script Version: 0.1.2 Source of the script: https://github.com/glonlas/Stable-Diffusion-Apple-Silicon-M1-Install Apple CPU not supported We are sorry, but this script supports only Apple Silicon CPU (M1, M1Pro, ...)

glonlas commented 2 years ago

Good catch!

Could you run the following command please: uname -m

Then paste the output. The CPU might been seen differently that M1

edbarbier commented 2 years ago

Sure thing.

Here is the output: x86_64

jjsanderson commented 2 years ago

Do you have Terminal set to 'Open using Rosetta', by any chance? (right-click the Terminal icon in Applications, select Get Info).

glonlas commented 2 years ago

To @edbarbier: @jjsanderson is right. Your terminal runs in X86_64 mode instead of arm64. Hence this is why when the script runs if [[ $(uname -m) != 'arm64' ]] it cannot detect is it in a arm64 env.

I will close the ticket for now. Please feel free to re-open it if the error persists once you are on arm64. setup.

Note: the current install (with the version 0.1.2) is broken. Since the LStein project was rename InvokeAI and includes tons of refactoring this script install does not work anymore. A patch is coming this week.