AI Inference Engine / Command-Line Tool
5.8k 2026-04-18
leejet/stable-diffusion.cpp
A lightweight, pure C/C++ inference engine for various diffusion models, enabling efficient image and video generation across multiple platforms and hardware.
Core Features
Pure C/C++ implementation based on ggml, with no external dependencies.
Supports a wide range of diffusion models including SD, SDXL, FLUX, Qwen, Z-Image, and Wan.
Optimized for various backends like CPU, CUDA, Vulkan, Metal, and OpenCL.
Includes features like LoRA, ControlNet, PhotoMaker, and an embedded web UI.
Cross-platform compatibility for Linux, macOS, Windows, and Android.
Detailed Introduction
stable-diffusion.cpp is a high-performance, cross-platform inference engine designed for diffusion models, implemented entirely in pure C/C++ and built upon the efficient ggml library. It aims to provide a super lightweight solution for running various image and video generation models, including Stable Diffusion, FLUX, Qwen, and Wan, with minimal external dependencies. The project supports a wide array of hardware backends, from CPUs to GPUs (CUDA, Metal, Vulkan), ensuring broad accessibility and optimized performance for AI-powered content creation.