How to run Stable Diffusion locally on your computer

Created on and updated on

Hardware requirements

The minimum requirement is a computer with a graphics card that has at least 6GB VRAM. It is possible to work on 4GB with some tweaks, but in my opinion, it’s not worth trying. The perfect scenario is to have a top-tier graphics card like Nvidia RTX4090. I recommend reading the article about the ways and costs of generating graphics before you start.

Installers

Some of popular User Interfaces (UIs) have their own installers. Even if that’s just a simple script that downloads and configures everything for you, it’s still an installer. It’s better than forcing users to execute commands manually in the terminal.

This is the list of popular UIs with installers:

You need to read the documentation of each installer to know how to use it. Some of them has significantly better performance than others. Some of them supports FLUX, some not yet. Each of them has different features, so you need to choose the one that suits your needs.

Cons:

Stability Matrix

Stability Matrix is a Multi-Platform Package Manager for Stable Diffusion. Supports Windows, Linux and MacOS. You can use it to download and run UIs locally without unnecessary configuration.

Pros:

LynxHub

LynxHub is another Multi-Platform Package Manager for Stable Diffusion. Released for public in August 2024. Basically it does the same thing as Stability Matrix. Has a bit different features and UI. Here is a comment from the author about the differences between them. Personally, I didn’t have a chance to do large tests of LynxHub yet.

Pros:

Pinokio

Pinokio - is “a browser that lets you install, run, and programmatically control ANY application, automatically”. Pinokio is not focused on Stable Diffusion, but you can use it to run popular UIs. Community feedback is positive. However, due to the issues mentioned below, I have not tested it good enough yet.

Cons:

Docker

Docker is a platform that enables developers to automate the deployment of applications inside lightweight, portable containers. In easy words - you download an file that contains everything you need to run Stable Diffusion and you launch it. Anyway, it’s a bit more complicated than previous methods, because you will need to:

Pros:

Cons:

There are tons of Docker images created by the community. You need to find the one that suits your needs. Check Docker Hub and GitHub. Personally, I recommend using AI-Dock images. They are well maintained and they give you a cool feature to use Provisioning Scripts to “perform certain actions when starting a container, such as creating directories and downloading files”.