lllyasviel / lllyasviel/sd-forge-layerdiffuse

Running on M1 crashes the UI

Open
#4 14 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
4.1k
Forks
352
PR merge metrics
No merged PRs in 30d

Description

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 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/python@3.10/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 '

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the sanity check on an Apple M1 and inspect webui.sh around line 292, then trace the UNet1024 loading path implicated by the MPS NDArray assertion. Done means the sanity check can load UNet1024 on Apple hardware without the abort.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.