leejet/stable-diffusion.cpp
Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++
About the project
Diffusion model inference (Stable Diffusion, FLUX, Wan, Qwen Image, etc.) implemented in pure C/C++ on top of ggml — like llama.cpp but for image and video generation. Runs without external dependencies on CPU, CUDA, Vulkan, Metal and other backends.
Useful for
- Generate an image from a text prompt with a single sd-cli command locally
- Run Stable Diffusion or FLUX on CPU without a GPU or Python environment
- Convert model weights to GGUF format to reduce memory usage
README summarized by DeepSeek V4.1 Flash. Details may be inaccurate.
Why it’s trending
- 4 stars so far today, about 12 expected by the end of the day.
- Over the last two days the pace is 2.5× that of the previous week and a half.
- The spike has held for 2 days in a row — not a one-off blip.
- GitHub Trending C++ today: #5, +29 stars.
Stars per day
Bars are daily stars, the line is the usual pace. Red marks spike days.
Numbers
- Total stars
- 7,090
- Today
- 4 · ≈ 12 by evening
- Forks
- 799
- Issues and pull requests
- 1,838
- Watchers
- 77
- Language
- C++
- License
- MIT
- Latest release
- master-890-74988b2 · September 21, 2026
- Created
- August 13, 2023
- Last push
- September 21, 2026
Star trust
Growth looks organic: forks and discussion are in line with active projects, and stars arrive unevenly, the way people give them.
These are heuristics, not a verdict: we judge by the repository’s behavior, not by a list of stargazers.
Spotted in
- September 22, 2026GitHub Trending C++ today: #5, +29 stars
Similar by description
-
1.9
0xShug0/audio.cpp
A native C++ inference engine for audio models built on ggml: TTS, speech recognition, VAD, voice cloning, music generation. Runs without Python on CPU, CUDA, ROCm, Vulkan and Metal.
-
1.1
localai-org/kimodo.cpp
A C++/GGML port of NVIDIA's Kimodo text-to-motion model that generates skeleton motion from a text prompt on CPU or Vulkan. Supports SMPL-X, SOMA and Unitree G1 checkpoints, and ships a C API, safetensors-to-GGUF…
-
3.3
ggml-org/llama.cpp
LLM and VLM inference implemented in C/C++ with no dependencies, running on CPUs and GPUs across many hardware backends. Enables local model execution with minimal setup and quantization.
-
0.9
techjarves/Portable-Local-Studio
Offline local AI studio for Windows, Linux and macOS with a zero-setup GUI: image generation (Stable Diffusion), GGUF LLM chat, speech-to-text (Whisper) and text-to-speech (Kokoro TTS).
-
2.4
unslothai/unsloth
Desktop app and web UI for locally running, fine-tuning and serving LLMs, diffusion, embedding and audio models, with OpenAI-compatible API and integrations for Claude Code, Codex and MCP agents.
-
1.2
deepseek-ai/deepseek-recipe
A collection of Rust libraries and Python bindings that convert API requests in different formats (Messages, Chat Completions, Responses) into the Conversation format, encode them into prompts for DeepSeek V4/V4.1…