Image GenerationOpen source codelllyasviel/stable-diffusion-webui-forge

Stable Diffusion WebUI Forge: Open Source AI Repository & Self-Hosting Guide

Memory-optimized Gradio WebUI fork by lllyasviel accelerating SDXL, Stable Diffusion 1.5, and FLUX.1 inference on mid-range consumer NVIDIA GPUs.

GitHub Stars
13,171 stars
Repository License
AGPL-3.0
Last Push (UTC)
Jul 31, 2025
Check the repo's license. Model weights may have a different license.
git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git
View on GitHub
Installgit clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git && ./webui.sh

Stable Diffusion WebUI Forge: Architecture & Practical Workflow

SD WebUI Forge overhauls ComfyUI-inspired backend memory management inside the familiar Automatic1111 Gradio UI—delivering faster U-Net/DiT sampling, native BitsAndBytes NF4/FP8 quantization, ControlNet, and integrated extensions on 6GB-12GB GPUs.

Recommended End-to-End Pipeline

Launch Forge with NF4 FLUX checkpoints on an 8GB RTX card to iterate text-to-image, inpainting, and ControlNet compositions interactively in browser.

Runtime Target
Self-Hosted / Windows / Linux (GitHub)
Primary Users
Local Creators, Low-VRAM GPU Users
Code License
AGPL-3.0
Focus Topics
open-source, github, webui, self-hosted, no-watermark

Quick Setup & Installation Steps

Platform target: Self-Hosted / Windows / Linux (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git && cd stable-diffusion-webui-forge`.
  2. 2Review the AGPL-3.0 license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git && ./webui.sh` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Launch Forge with NF4 FLUX checkpoints on an 8GB RTX card to iterate text-to-image, inpainting, and ControlNet compositions interactively in browser.)

Hardware & VRAM Notes

Hardware & VRAM guidance: Requires local GPU setup

GPU & VRAM

Requires local GPU setup

System RAM & Storage

16 GB–32 GB system RAM recommended plus 10 GB–40 GB free SSD space for container images, Python dependencies, and model weights.

Runtime Target

Self-Hosted / Windows / Linux (GitHub)

Strengths & Best For

  • Significantly faster on 6GB–8GB VRAM GPUs
  • Native FLUX & SDXL support
  • Local rendering with no forced watermark or cloud limits
  • Best suited for: Local Creators, Low-VRAM GPU Users

Limitations & Caveats

  • Requires local GPU setup
  • Some legacy A1111 extensions may need updates
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Image)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted Stable Diffusion WebUI Forge vs. Hosted Alternatives (Stable Diffusion WebUI (A1111) & FLUX.1 (Black Forest Labs))
FactorStable Diffusion WebUI Forge (Self-Hosted)Stable Diffusion WebUI (A1111)FLUX.1 (Black Forest Labs)
Execution & PrivacyRuns locally via Self-Hosted / Windows / Linux (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaAGPL-3.0 code; bound only by local CPU/GPU hardware.Open Source; subject to vendor free-tier limits or paid plans.Open Source; subject to vendor free-tier limits or paid plans.
Primary FitSignificantly faster on 6GB–8GB VRAM GPUs; Native FLUX & SDXL supportOpen-source local GUI for running Stable Diffusion & FLUX models privately.Open-source image model by the original Stable Diffusion team. Fast, high-quality, and free tier.
Key Trade-offRequires local GPU setupRequires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for Stable Diffusion WebUI Forge workflows.

Commercial Studio Travertine Product PhotographyImage · E-Commerce, Product, Commercial, Photorealistic
Open in Studio
Top-Down Flatlay of Accountant's Modern Oak DeskImage · Flatlay, Office, Desk, Photorealistic
Open in Studio
Golden Ratio Abstract Tech & Startup LogoImage · Branding, Vector, Minimalist, Logo
Open in Studio

Compare Alternatives

Compare Engine →

Compare Stable Diffusion WebUI Forge side-by-side on setup ease, privacy, and role scorecards.

More Open Source Image Generation Repositories

Frequently Asked Questions

What does Stable Diffusion WebUI Forge do and how does it work?

Stable Diffusion WebUI Forge (lllyasviel/stable-diffusion-webui-forge) is an open-source image generation project with 13,171 stars on GitHub. Memory-optimized Gradio WebUI fork by lllyasviel accelerating SDXL, Stable Diffusion 1.5, and FLUX.1 inference on mid-range consumer NVIDIA GPUs. SD WebUI Forge overhauls ComfyUI-inspired backend memory management inside the familiar Automatic1111 Gradio UI—delivering faster U-Net/DiT sampling, native BitsAndBytes NF4/FP8 quantization, ControlNet, and integrated extensions on 6GB-12GB GPUs.

Is Stable Diffusion WebUI Forge free to self-host and use commercially?

Stable Diffusion WebUI Forge provides open source code licensed under AGPL-3.0. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does Stable Diffusion WebUI Forge require?

Stable Diffusion WebUI Forge targets Self-Hosted / Windows / Linux (GitHub). Typical installation runs via `git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git && ./webui.sh`. Requires local GPU setup

How does self-hosting Stable Diffusion WebUI Forge compare to hosted tools like Stable Diffusion WebUI (A1111)?

Self-hosting Stable Diffusion WebUI Forge gives you full local data control, zero per-usage vendor fees, and customizable Self-Hosted / Windows / Linux (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, Stable Diffusion WebUI (A1111) (Open Source) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is Stable Diffusion WebUI Forge actively maintained and what workflow fits it best?

Repository metadata records 13,171 stars on GitHub with the latest recorded push on Jul 31, 2025. Launch Forge with NF4 FLUX checkpoints on an 8GB RTX card to iterate text-to-image, inpainting, and ControlNet compositions interactively in browser.