How to install leejet/stable-diffusion.cpp. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.
leejet/stable-diffusion.cpp Installation Guide
How to install leejet/stable-diffusion.cpp. Official project installation instructions and setup guide.
⚡
Automated Install (Recommended)
Quick installation instructions for leejet/stable-diffusion.cpp. This is the fastest way to complete project installation and setup.
Install via curl
curl -fsSL https://hexmos.com/ipm-install | bash &&
ipm i leejet/stable-diffusion.cppor
Install via npx
npx @hexmos/ipm i leejet/stable-diffusion.cppPrerequisites
Git
system_packageMake
system_packageCMake
system_packageC++ Compiler
system_packagePython 3
system_packageVersion: >=3.8
CUDA Toolkit
driverVersion: >=11.0
Vulkan SDK
driverROCm
driverVersion: >=5.0
Manual Installation Methods
Manual installation instructions. How to install from GitHub source.
Download Pre-built Binaries (Linux)
curl -L -O https://github.com/leejet/stable-diffusion.cpp/releases/download/master-913-b167b94/sd-master-b167b94-bin-Linux-Ubuntu-24.04-x86_64.zip
unzip sd-master-b167b94-bin-Linux-Ubuntu-24.04-x86_64.zipDownload Pre-built Binaries (Linux - Vulkan)
curl -L -O https://github.com/leejet/stable-diffusion.cpp/releases/download/master-913-b167b94/sd-master-b167b94-bin-Linux-Ubuntu-24.04-x86_64-vulkan.zip
unzip sd-master-b167b94-bin-Linux-Ubuntu-24.04-x86_64-vulkan.zipDownload Pre-built Binaries (Linux - ROCm)
curl -L -O https://github.com/leejet/stable-diffusion.cpp/releases/download/master-913-b167b94/sd-master-b167b94-bin-Linux-Ubuntu-24.04-x86_64-rocm-7.14.0.zip
unzip sd-master-b167b94-bin-Linux-Ubuntu-24.04-x86_64-rocm-7.14.0.zipDownload Pre-built Binaries (Windows - CPU)
curl -L -O https://github.com/leejet/stable-diffusion.cpp/releases/download/master-913-b167b94/sd-master-b167b94-bin-win-cpu-x64.zip
tar -xf sd-master-b167b94-bin-win-cpu-x64.zipDownload Pre-built Binaries (Windows - CUDA)
curl -L -O https://github.com/leejet/stable-diffusion.cpp/releases/download/master-913-b167b94/sd-master-b167b94-bin-win-cuda12-x64.zip
tar -xf sd-master-b167b94-bin-win-cuda12-x64.zipDownload Pre-built Binaries (Windows - Vulkan)
curl -L -O https://github.com/leejet/stable-diffusion.cpp/releases/download/master-913-b167b94/sd-master-b167b94-bin-win-vulkan-x64.zip
tar -xf sd-master-b167b94-bin-win-vulkan-x64.zipDownload Pre-built Binaries (Windows - ROCm)
curl -L -O https://github.com/leejet/stable-diffusion.cpp/releases/download/master-913-b167b94/sd-master-b167b94-bin-win-rocm-7.14.0-x64.zip
tar -xf sd-master-b167b94-bin-win-rocm-7.14.0-x64.zipDownload Pre-built Binaries (macOS)
curl -L -O https://github.com/leejet/stable-diffusion.cpp/releases/download/master-913-b167b94/sd-master-b167b94-bin-Darwin-macOS-26.6.2-arm64.zip
unzip sd-master-b167b94-bin-Darwin-macOS-26.6.2-arm64.zipBuild from Source
git clone https://github.com/leejet/stable-diffusion.cpp
cd stable-diffusion.cpp
makePost Installation Steps
- Download model weights (.ckpt, .safetensors, or .gguf)
- Example: curl -L -O https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors
- Run generation: ./bin/sd-cli -m ../models/v1-5-pruned-emaonly.safetensors -p "a lovely cat"
