Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview
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.cpp
or

Install via npx

npx @hexmos/ipm i leejet/stable-diffusion.cpp

Prerequisites

Git

system_package

Make

system_package

CMake

system_package

C++ Compiler

system_package

Python 3

system_package

Version: >=3.8

CUDA Toolkit

driver

Version: >=11.0

Vulkan SDK

driver

ROCm

driver

Version: >=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.zip

Download 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.zip

Download 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.zip

Download 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.zip

Download 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.zip

Download 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.zip

Download 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.zip

Download 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.zip

Build from Source

git clone https://github.com/leejet/stable-diffusion.cpp

cd stable-diffusion.cpp

make

Post 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"