Use stable diffusion webui on sagemaker studio lab for free.
- Register your sagemaker studio lab account
Normally you will be approved within 1 week
https://studiolab.sagemaker.aws/
-
Start your runtime with GPU
-
Open a terminal
$ cd ~
- Create a new conda env in case you mess up later
$ conda create --name webui python=3.9
$ conda activate webui
- Run the install.sh
This installation will install a base mode chilloutmix_NiPrunedFp32Fix.safetensors
for you by default. If you want to use other base model, feel free to replace it with other base model.
Because the disk is pretty restricted in the sagemaker studio lab. Highly suggest not to install more than 2 base models.
bash install.sh
- Start the webui
Before running the following script. Make sure you get an API key from the ngrok. And replace the REPLACE_ME
in the script with your own token.
bash start.sh
- After the first installation, next everytime you restart the runtime, you need to do the following steps to restart the webui
$ conda activate webui
$ bash start.sh
- If you want to use Lora from sources like civita, be sure to download the lora model to the new folder.