lllyasviel / lllyasviel/sd-forge-layerdiffuse

[M2 Mac] forge crashed with SD1.5 model

Open
#59 2 comments 0 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

Hello.
I tried to run the SD 1.5 model since it has been released and forge crashed with the following error.

crash log
[Layer Diffusion] LayerMethod.FG_ONLY_ATTN_SD15
To load target model BaseModel
Begin to load 1 model
Moving model(s) has taken 1.88 seconds
  4%|█████                                                                                                                         | 1/25 [00:02<01:00,  2.52s/it] progress:   0%|                                                                                                                      | 0/25 [00:00<?, ?it/s]
  8%|██████████                                                                                                                    | 2/25 [00:04<00:46,  2.02s/it]
 12%|███████████████                                                                                                               | 3/25 [00:05<00:41,  1.87s/it]
 16%|████████████████████▏                                                                                                         | 4/25 [00:07<00:37,  1.79s/it]
 20%|█████████████████████████▏                                                                                                    | 5/25 [00:09<00:34,  1.75s/it]
 24%|██████████████████████████████▏                                                                                               | 6/25 [00:10<00:32,  1.73s/it]
 28%|███████████████████████████████████▎                                                                                          | 7/25 [00:12<00:30,  1.70s/it]
 32%|████████████████████████████████████████▎                                                                                     | 8/25 [00:14<00:28,  1.68s/it]
 36%|█████████████████████████████████████████████▎                                                                                | 9/25 [00:15<00:26,  1.67s/it]
 40%|██████████████████████████████████████████████████                                                                           | 10/25 [00:17<00:25,  1.67s/it]
 44%|███████████████████████████████████████████████████████                                                                      | 11/25 [00:19<00:23,  1.66s/it]
 48%|████████████████████████████████████████████████████████████                                                                 | 12/25 [00:20<00:21,  1.67s/it]
 52%|█████████████████████████████████████████████████████████████████                                                            | 13/25 [00:22<00:19,  1.67s/it]
 56%|██████████████████████████████████████████████████████████████████████                                                       | 14/25 [00:24<00:18,  1.67s/it]
 60%|███████████████████████████████████████████████████████████████████████████                                                  | 15/25 [00:25<00:16,  1.67s/it]
 64%|██████████████████████████████████████████████████████████████████████████████ ██                                             | 16/25 [00:27<00:15,  1.68s/it]
 68%|█████████████████████████████████████████████████████████████████████████████████████                                        | 17/25 [00:29<00:13,  1.66s/it]
 72%|██████████████████████████████████████████████████████████████████████████████████████████                                   | 18/25 [00:30<00:11,  1.65s/it]
 76%|███████████████████████████████████████████████████████████████████████████████████████████████                              | 19/25 [00:32<00:09,  1.65s/it]
 80%|████████████████████████████████████████████████████████████████████████████████████████████████████                         | 20/25 [00:34<00:08,  1.65s/it]
 84%|█████████████████████████████████████████████████████████████████████████████████████████████████████████                    | 21/25 [00:35<00:06,  1.64s/it]
 88%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████               | 22/25 [00:37<00:04,  1.64s/it]
 92%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████          | 23/25 [00:38<00:03,  1.64s/it]
 96%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████     | 24/25 [00:40<00:01,  1.63s/it]
100%|██████████████████████████████████████████████████████████████████████████████100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 25/25 [00:42<00:00,  1.69s/it]
To load target model AutoencoderKL
Begin to load 1 model
Moving model(s) has taken 4.26 seconds
To load target model UNet1024
Begin to load 1 model
Moving model(s) has taken 0.73 seconds
 12%|███████████████▉                                                                                                               | 1/8 [00:01<0 25%|███████████████████████████████▊                                                                                              38%|███████████████████████████████████████████████▋                                                              50%|███████████████████████████████████████████████████████████████▌                              62%|██████████████████████████████████████████████████████████████████████████████ 75%|██████████████████████████████████████████████████████████████████████████████ 88%|██████████████████████████████████████████████████████████████████████████████100%|██████████████████████████████████████████████████████████████████████████████100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:03<00:00,  2.07it/s]
/AppleInternal/Library/BuildRoots/8e85887f-758c-11ee-a904-2a65a1af8551/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArraySort.mm:283: failed assertion `(null)" Axis = 4. This class only supports axis = 0, 1, 2, 3
  • forge version: commit 29be1da7cf2b5dccfc70fbdd33eb35c56a31ffb7
  • PC: M2 Mac mini
  • OS: macOS Ventura (13.6.4)
  • LayerDiffuse parameters:
    • Method: (SD1.5) Only Generate Transparent Image (Attention Injection)
    • Weight: 1
    • Stop At 1

Thank you!

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

The payload names no source files or tests. Start by reproducing SD1.5 Layer Diffusion on an M2 Mac with the listed parameters and compare the crash log; done means the run completes without the MPSNDArraySort axis assertion.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python
Domain
machine-learning, operating-systems
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.