A short guide to getting DeepSpeed Working #2254
LoFiApostasy
started this conversation in
General
Replies: 1 comment
-
I followed the exact steps, but im getting valuerror: Please specify the ZeRO optmizations config in the DeepSpeed config. Any suggestions? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After a lot of frustrating attempts to get deep speed working I think i have distilled it to a short and sweet list of steps. My hope is that the accelerate script can eventually generate this file by default from the wizard.
My environment is dual 3090s with Ubuntu WSL installed.
Fresh install of Kohya including deepspeed, noting the activate here because its not in the current instructions:
Create deepspeed-config.json file and take note of the path using the following:
Then kick off configure accelerate so we can reference the file:
During the wizard choose YES to "Do you want to specify a json file to a DeepSpeed config?"
provide the path and file name.
example: /home/myuser/kohya-ss/deepspeed-config.json
After its working feel free to tinker with the config file using the main help for reference: https://www.deepspeed.ai/docs/config-json/
############ Search tags ############
The errors i was getting out of the box was:
############
The file path to your deepspeed config can be updated in the kohya "default_config.yaml" located here:
/home/myuser/.cache/huggingface/accelerate/
The entry in the yaml looks like this:
Beta Was this translation helpful? Give feedback.
All reactions