TrendWhat rose on GitHub, every day at 07:30 KST · 한국어

GitHub · as of November 8, 2026 · View on GitHub →

leejet/stable-diffusion.cpp

C++ diffusion inference engine

+84 stars in 7 days

Generate images and videos locally with a pure C/C++ engine and no external dependencies

You can process text-to-image or image-to-image tasks on your local machine using a single executable file. This tool is a pure C/C++ diffusion model inference engine that follows the same structure as llama.cpp. It simplifies the process of running a model and obtaining results with a single command, without complex environment setup.

New model support and web UI introduction

Recent updates added Day-0 support for Qwen-Image-2.1 and quickly incorporated the latest models such as LTX-2.5 and MiniMax-H3. In April 2026, a built-in web UI was introduced to improve usability. These changes indicate that the project is under active development, so note that the API and command-line options may change frequently.

Supported models and feature scope

It supports various image models, including Stable Diffusion 1.x through 3.5, FLUX, Qwen Image, and Z-Image.

  • Model formats It supports Pytorch checkpoints (.ckpt, .pth, .pt), Safetensors (.safetensors), and GGUF (.gguf) formats. It also provides a mode to convert model weights to .gguf or .safetensors.
  • Inference backends It supports CPU (with AVX, AVX2, and AVX512 support), CUDA, Vulkan, Metal, OpenCL, and SYCL. It uses flash attention to optimize memory usage.
  • Platforms It runs on Linux, Mac OS, Windows, and Android (Termux, Local Diffusion).

Execution methods and basic usage

You can download pre-built binaries from the release page or build directly from source. After preparing the model weight file, generate an image using the command ./bin/sd-cli -m [model_path] -p "prompt". For example, you can generate an image of "a lovely cat" using the Stable Diffusion v1.5 model. Refer to the CLI documentation for detailed command-line arguments.

Pre-use considerations

Since this project is in an active development stage and APIs and options change frequently, it is important to check the latest release. If you need performance optimization or want to reduce VRAM/RAM usage, you must review the performance guide and backend selection guide. If you intend to use it in other languages such as Golang, Python, or Rust, it is recommended to check the corresponding language binding projects. It is suitable for developers who want to generate images independently in a local environment or use it as a backend for existing tools like GIMP plugins or LocalAI.

Written by AI from this repository's README on October 18, 2026. For the facts, the original on GitHub is the reference.

By the numbers

GitHub trending history
1 day between Jun 19, when Trend began recording, and Nov 8, 2026 · first on Sep 24 · best daily rank #14 (Sep 24)

Read from GitHub, as of November 8, 2026.

Language
C++
Topics
ai · cplusplus · diffusion · flux · flux-dev · ggml · image-generation · image2image
Stars
7,938
Stars gained in 7 days
+84
Contributors
131
Forks
942
Latest release
master-1063-3d315c4 · November 8, 2026
Commits
1,066
Last commit
November 8, 2026
Open issues
229
Open pull requests
39

Related repositories

View on GitHub →

README badge

trend.ondo.sh · GitHub daily trending #14 · September 24, 2026

The badge above shows the highest this repository has ranked on GitHub's daily trending since June 19, 2026, and the day it did. Paste the Markdown below into your README. The badge opens this page, and it updates by itself when the repository climbs higher.

[![trend.ondo.sh](https://trend.ondo.sh/github/r/leejet--stable-diffusion.cpp/badge.en.svg)](https://trend.ondo.sh/github/r/leejet--stable-diffusion.cpp/en.html)