leejet/stable-diffusion.cpp - OSS Alternative - Discover Top Open Source Alternatives to Popular Software
AI Inference Runtime
5.9k 2026-05-01

leejet/stable-diffusion.cpp

A pure C/C++ implementation for efficient, cross-platform inference of various diffusion models, including Stable Diffusion, FLUX, Wan, and Qwen Image.

Core Features

Pure C/C++ implementation based on ggml, super lightweight with no external dependencies.
Supports a wide range of diffusion models (SD1.x, SDXL, FLUX, Qwen Image, Z-Image, Wan, etc.) and model types (image, image edit, video).
Optimized for various backends (CPU, CUDA, Vulkan, Metal) and platforms (Linux, Mac, Windows, Android).
Includes advanced features like ControlNet, LoRA, LCM, TAESD, ESRGAN, and Flash Attention.
Supports multiple weight formats (Pytorch, Safetensors, GGUF) and model conversion.

Detailed Introduction

stable-diffusion.cpp is a high-performance, cross-platform inference engine for diffusion models, meticulously crafted in pure C/C++ and leveraging the lightweight ggml library. It aims to provide an efficient and dependency-free solution for running a diverse array of generative AI models, from text-to-image (Stable Diffusion, FLUX) to image editing and video generation (Wan). By optimizing for various hardware backends and supporting multiple model formats, it empowers developers and users to deploy and experiment with cutting-edge AI models locally, offering speed, memory efficiency, and broad compatibility across different operating systems, including mobile.

OSS Alternative

Explore the best open source alternatives to commercial software.

© 2026 OSS Alternative. hotgithub.com - All rights reserved.