Open jirayudech opened 1 year ago
The same case, but after training start I get
/AppleInternal/Library/BuildRoots/2d7aff41-c4cb-11ed-a6bc-ae4f7fab34c4/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArrayConvolutionA14.mm:4332: failed assertion 'destination datatype must be fp32'
zsh: abort bash webui.sh
(base)*****@MacBook-Pro-2 stable-diffusion-webui % /Library/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 '
I have the same error training a hypernetwork, on macbook air m1 16gb ram
/AppleInternal/Library/BuildRoots/9941690d-bcf7-11ed-a645-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArrayConvolutionA14.mm:4332: failed assertion `destination datatype must be fp32'
/Library/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 '
zsh: abort ./webui.sh
I also get the There appear to be 1 leaked semaphore objects to clean up at shutdown
error on an M1 Macbook.
And I'm unable to train a LORA successfully. I trained an embedding for 26 hours, never got an error in terminal, but after 100% of the steps were completed, the process hung and failed to output a model. Eventually I killed the process and got the semaphore error. Not sure if they're related or not.
But training a LORA on apple silicon is painfully slow and error prone 😢
I'm having the same error on a M2 Pro, and solved it by using --no-half
arg when starting. However, the memory is getting robbed by i don't really know what since the performances are CATASTROPHIC (100 Hours for a 3000 steps training on 400 pictures on a m2 pro 16gb)
Same problem on my M2 Air 24GB.
Same here M1 64GB.
You can train LORAs with Kohya, I do it on a Mac and it works. What doesn't work for me is Embeddings. Also it shouldn't take 26 hours, what Mac do you have?
I'm having the same error on a M2 Pro, and solved it by using
--no-half
arg when starting. However, the memory is getting robbed by i don't really know what since the performances are CATASTROPHIC (100 Hours for a 3000 steps training on 400 pictures on a m2 pro 16gb)
That's because with no-half the GPU won't do the work, so the CPU will be slow.
You can train LORAs with Kohya, I do it on a Mac and it works. What doesn't work for me is Embeddings. Also it shouldn't take 26 hours, what Mac do you have?
What I did is I started using InvokeAI's terminal GUI for embeddings, and now it's fine.
I'm running with arguments: --skip-torch-cuda-test --no-half --use-cpu all
Add those on webui-user.sh
on export COMMANDLINE_ARGS="--skip-torch-cuda-test --no-half --use-cpu all"
And as all comments too slow
I'm running with arguments:
--skip-torch-cuda-test --no-half --use-cpu all
Add those onwebui-user.sh
onexport COMMANDLINE_ARGS="--skip-torch-cuda-test --no-half --use-cpu all"
And as all comments too slow
Because you tell it to use CPU. Use it with GPU it works ok on MACs.
i'm getting fp32 error ,in khoya
Is there an existing issue for this?
What happened?
Use Macbook M1 Pro Ram 16GB
Steps to reproduce the problem
What should have happened?
/AppleInternal/Library/BuildRoots/9941690d-bcf7-11ed-a645-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArrayConvolutionA14.mm:4332: failed assertion `destination datatype must be fp32'
Commit where the problem happens
python: 3.10.9 • torch: 1.12.1 • xformers: N/A • gradio: 3.23.0 • commit: 22bcc7be • checkpoint: a4df55d292
What platforms do you use to access the UI ?
MacOS
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
List of extensions
Extension URL Version Update canvas-zoom https://github.com/richrobber2/canvas-zoom.git 1f442bfc (Mon May 8 21:12:31 2023) unknown openpose-editor https://github.com/fkunn1326/openpose-editor.git d74fdd72 (Tue May 2 09:49:03 2023) unknown sd-webui-aspect-ratio-helper https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git b03cce20 (Mon Apr 10 21:17:00 2023) unknown sd-webui-controlnet https://github.com/Mikubill/sd-webui-controlnet c9c8ca6e (Sun May 7 17:15:00 2023) unknown sd-webui-photopea-embed https://github.com/yankooliveira/sd-webui-photopea-embed 14d81ed9 (Sat May 6 09:25:11 2023) unknown sd-webui-text2video https://github.com/deforum-art/sd-webui-text2video.git 26822483 (Thu May 4 18:26:12 2023) unknown LDSR built-in
Lora built-in
ScuNET built-in
SwinIR built-in
prompt-bracket-checker built-in
Console logs
Additional information
No response