leejet/stable-diffusion.cpp

Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++

69
/ 100
Established

Built on ggml with zero external dependencies, it supports diverse architectures—image generation (SD1.x through FLUX.2), video (Wan2.1/2.2), and editing models—alongside LoRA, ControlNet, and quantized GGUF weights. Multi-backend acceleration includes CUDA, Vulkan, Metal, and OpenCL, with optimizations like Flash Attention, VAE tiling, and latent consistency models for efficient CPU/edge deployment.

5,579 stars. Actively maintained with 32 commits in the last 30 days.

No Package No Dependents
Maintenance 23 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 20 / 25

How are scores calculated?

Stars

5,579

Forks

551

Language

C++

License

MIT

Last pushed

Mar 16, 2026

Commits (30d)

32

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/diffusion/leejet/stable-diffusion.cpp"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.