How to run Stable Diffusion as an API on AWS SageMaker
Not downloaded yet
In this archive from Oct 2023 to Mar 2026
Hi there, I have a stable diffusion pipeline that uses the diffusers library from hugging face. It works perfectly, but I am wondering is there a way to store and cache models using AWS or some other similar service? Right now i am storing the model cache in a local directory called "models". I am t...
Hey great question! So there is no warm up period because the GPU is always on. The inference time is ~5 seconds for Stable Diffusion 1.5 to create one image. It's extremely reliable.
SageMaker does support a serverless option, but it's useless for Stable Diffusion because it only works on the CPU. For some reason AWS doesn't support serverless GPUs.
Hey there, I haven't tried running ComfyUI yet. Looks really interesting. Will record a video on it a bit tho.
Hey guys I prepared a tutorial on using the diffusers library from hugging face to set up some common pipelines including text to image, image to image, upscaling, and controlnet.
I've also created a Google Colab that you can use for FREE (just be sure to select GPU as the runtime): https://colab.research.google.com/drive/16Yrf8YzHl_7zaiFgtQsD-rfIkOLum3-L
Hey guys, went through a hassle trying to run Stable Diffusion Web UI on my laptop. It ended up not working on my laptop and apparently you can't run it on Google Colab anymore so I found SageMaker Studio. Recorded this tutorial on how to do it on AWS Sagemaker Studio for free using a GPU. Hopefully you find it helpful.
ahh ok this does makes sense, and yup have used colab but am looking to run on a VM, will probably go with AWS