Optional Accelerate Launch
Add option to export ACCELERATE="True", which will in turn cause the application to be launched via accelerate launch, versus python.
I would like this
What is the benefit to having accelerate launch SDWUI right now? Wouldn't the functions required by Accelerate need to be implemented?
ie.
We are under the presumption that training_dataloader, model, optimizer, scheduler, and loss_function have been defined beforehand.
I pulled this and added set ACCELERATE=True in my webui-user.bat, but it didn't run the accelerate block in webui.bat. Is there possibly something wrong with this line?
if [%ACCELERATE%] == ["True"] goto :accelerate (webui.bat:31)
I pulled this and added
set ACCELERATE=Truein my webui-user.bat, but it didn't run the accelerate block in webui.bat. Is there possibly something wrong with this line?if [%ACCELERATE%] == ["True"] goto :accelerate(webui.bat:31)
Put "True" into quotes in your bat file. You'll also need to have restarted the app 2x, once to install the new requirements (accelerate), and again for the bat to find it in venv and run the accelerate launch command.
What is the benefit to having accelerate launch SDWUI right now? Wouldn't the functions required by Accelerate need to be implemented?
ie.
We are under the presumption that training_dataloader, model, optimizer, scheduler, and loss_function have been defined beforehand.
Perhaps an extension (like dreambooth) wants to utilize accelerate without having to make the user add a whole new script to launch the app properly. ;)
What does accelerating the launch do?
What does accelerating the launch do?
you can read more about it here: https://huggingface.co/docs/accelerate/index
What does accelerating the launch do?
you can read more about it here: https://huggingface.co/docs/accelerate/index
Could you simplify it for laymen, what does it do exactly? Some kind of parallelizing of tasks to potentially increase speed of image generation in batches?
Is it possible to accelerate launch using the linux version as well? can we stick if [%ACCELERATE%] == ["True"] goto :accelerate (webui.sh:31) into our sh file as well? I see the command in the webui.sh file to export accelerate="true" but i get an error when I uncomment it.