Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on M1 crashes the UI #4

Open
benjamin-bertram opened this issue Mar 1, 2024 · 14 comments
Open

Running on M1 crashes the UI #4

benjamin-bertram opened this issue Mar 1, 2024 · 14 comments

Comments

@benjamin-bertram
Copy link

I run the sanity check but it crashes when loading the UNet1024.
Does it not yet work with Apple?

Total progress: 100%|████████████████████████████████████████| 20/20 [01:00<00:00, 3.01s/it]
[Layer Diffusion] LayerMethod.FG_ONLY_ATTN███████████████████| 20/20 [01:00<00:00, 2.41s/it]
To load target model SDXL
Begin to load 1 model
Moving model(s) has taken 31.84 seconds
100%|████████████████████████████████████████████████████████| 20/20 [00:58<00:00, 2.92s/it]
To load target model AutoencoderKL███████████████████████████| 20/20 [00:53<00:00, 2.71s/it]
Begin to load 1 model
Reuse 1 loaded models
Moving model(s) has taken 10.24 seconds
To load target model UNet1024
Begin to load 1 model
Moving model(s) has taken 0.54 seconds
0%| | 0/8 [00:00<?, ?it/s]/AppleInternal/Library/BuildRoots/9941690d-bcf7-11ed-a645-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSCore/Types/MPSNDArray.mm:706: failed assertion `[MPSTemporaryNDArray initWithDevice:descriptor:] Error: NDArray dimension length > INT_MAX'
webui.sh: line 292: 9330 Abort trap: 6 "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
Benjamins-MBP:stable-diffusion-webui-forge benjaminbertram$ /opt/homebrew/Cellar/[email protected]/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '

@cocktailpeanut
Copy link

I have the exact same issue, M1 Max 64G

@hlk-trkn
Copy link

hlk-trkn commented Mar 2, 2024

same here M1 Max 32GB

@jeantimex
Copy link

Same here M1 Max 64G

@jet3004
Copy link

jet3004 commented Mar 3, 2024

Same here on Apple Silicon, M3 Max. This looks so promising!

@dmanning23
Copy link

I am having the same problem on M1 Ultra 64G but get a different error message:

Begin to load 1 model
Moving model(s) has taken 0.09 seconds
To load target model UNet1024
Begin to load 1 model
Moving model(s) has taken 0.24 seconds
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:01<00:00, 4.01it/s]
/AppleInternal/Library/BuildRoots/0032d1ee-80fd-11ee-8227-6aecfccc70fe/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArraySort.mm:287: failed assertion `(null)" Axis = 4. This class only supports axis = 0, 1, 2, 3
'
/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
./webui.sh: line 292: 51091 Abort trap: 6 "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"

@jeantimex
Copy link

I see some discussions here and here, I tried ./webui.sh --no-half, no luck, and I don't think it's do to with OOM, so I guess some packages might need to be downgraded, like tqdm, but haven't tried it yet.

@jiangdi0924
Copy link

same issue M1 Max 64G

@benjamin-bertram
Copy link
Author

I see some discussions here and here, I tried ./webui.sh --no-half, no luck, and I don't think it's do to with OOM, so I guess some packages might need to be downgraded, like tqdm, but haven't tried it yet.

Seems not to work. I uninstalled tqdm, ran it without --no-half and got the same error. With the flag, however, I got @dmanning23 s error

@starush
Copy link

starush commented Mar 17, 2024

The same with mac studio with M1 Max 32Gb

@booraddley
Copy link

booraddley commented Apr 16, 2024

Issue with crashing on 2021 Macbook Pro 64Gb RAM , Apple M1 Max:
/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArraySort.mm:287: failed assertion `(null)" Axis = 4. This class only supports axis = 0, 1, 2, 3 '
Happen in SD Farge and with Stability Matrix's inference UI.

I can try with an M3 Max, but I doubt that will be better.

@wzx1229
Copy link

wzx1229 commented Apr 18, 2024

I even experienced two pink screens and restarts. And got a popup warning: Python quit unexpectedly.Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple. mini M1 16g

/AppleInternal/Library/BuildRoots/495c257e-668e-11ee-93ce-926038f30c31/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArraySort.mm:287: failed assertion `(null)" Axis = 4. This class only supports axis = 0, 1, 2, 3
'
./webui.sh: line 292: 1167 Abort trap: 6 "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
(SD1111) test@bogon stable-diffusion-webui-forge % /opt/homebrew/Cellar/[email protected]/3.10.14/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '

@madjuju
Copy link

madjuju commented Apr 29, 2024

+1

@forgetphp
Copy link

forgetphp commented May 5, 2024

I am having the same problem on M1 Ultra 64G but get a different error message:

got prompt model_type EPS Using split attention in VAE Using split attention in VAE clip missing: ['clip_l.logit_scale', 'clip_l.transformer.text_projection.weight'] Requested to load SD1ClipModel Loading 1 new model Requested to load BaseModel Loading 1 new model 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:14<00:00, 1.36it/s] Requested to load AutoencoderKL Loading 1 new model /opt/anaconda3/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:76: FutureWarning:get_down_blockis deprecated and will be removed in version 0.29. Importingget_down_blockfromdiffusers.models.unet_2d_blocksis deprecated and this will be removed in a future version. Please usefrom diffusers.models.unets.unet_2d_blocks import get_down_block, instead. deprecate("get_down_block", "0.29", deprecation_message) /opt/anaconda3/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:213: FutureWarning: get_up_blockis deprecated and will be removed in version 0.29. Importingget_up_blockfromdiffusers.models.unet_2d_blocksis deprecated and this will be removed in a future version. Please usefrom diffusers.models.unets.unet_2d_blocks import get_up_block, instead. deprecate("get_up_block", "0.29", deprecation_message) 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:02<00:00, 3.34it/s] /AppleInternal/Library/BuildRoots/0032d1ee-80fd-11ee-8227-6aecfccc70fe/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArraySort.mm:287: failed assertion (null)" Axis = 4. This class only supports axis = 0, 1, 2, 3`

@eminem412
Copy link

I am having the same problem on M2 24G

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests