Text & LLMsOpen source codeoobabooga/textgen

text-generation-webui: Open Source AI Repository & Self-Hosting Guide

Feature-rich Gradio web workspace by oobabooga supporting Transformers, llama.cpp, ExLlamaV2, and TensorRT-LLM backends with prompt presets and LoRA loading.

GitHub Stars
47,757 stars
Repository License
AGPL-3.0
Last Push (UTC)
Aug 17, 2026
Check the repo's license. Model weights may have a different license.
git clone https://github.com/oobabooga/textgen.git
View on GitHub
Installgit clone https://github.com/oobabooga/text-generation-webui.git && ./start_linux.sh

text-generation-webui: Architecture & Practical Workflow

text-generation-webui gives power users granular sampler sliders (min_p, DRY, XTC), GGUF/EXL2/GPTQ weight hot-swapping, character chat formatting, and an OpenAI-compatible extensions API inside a single local Python setup.

Recommended End-to-End Pipeline

Benchmark different GGUF vs. EXL2 quantizations side by side with custom system prompts and sampler presets before deploying a chosen model in production.

Runtime Target
Self-Hosted / Python (GitHub)
Primary Users
Hobbyists, Experimenters
Code License
AGPL-3.0
Focus Topics
open-source, github, local-llm, web-ui, self-hosted

Quick Setup & Installation Steps

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

  1. 1Clone the repository from GitHub: `git clone https://github.com/oobabooga/textgen.git && cd textgen`.
  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/oobabooga/text-generation-webui.git && ./start_linux.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 (Benchmark different GGUF vs. EXL2 quantizations side by side with custom system prompts and sampler presets before deploying a chosen model in production.)

Hardware & VRAM Notes

Runs on standard developer workstations without specialized hardware unless loading large local weights.

CPU & Memory

Modern multi-core CPU with 8 GB–16 GB RAM for orchestration, CLI agents, OCR/document parsing, or UI workflows (32 GB+ if co-hosting large local LLMs).

GPU / VRAM

Optional unless running local neural weights; pairs cleanly with local inference servers (Ollama / llama.cpp) or remote endpoints.

Runtime Target

Self-Hosted / Python (GitHub)

Strengths & Best For

  • Multiple model loaders
  • Chat and notebook modes
  • Extensions
  • Best suited for: Hobbyists, Experimenters

Limitations & Caveats

  • Setup can be fiddly
  • Check each model’s license
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Text)

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

Browse all tools
Self-Hosted text-generation-webui vs. Hosted Alternatives (Open WebUI & Ollama)
Factortext-generation-webui (Self-Hosted)Open WebUIOllama
Execution & PrivacyRuns locally via Self-Hosted / Python (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 FitMultiple model loaders; Chat and notebook modesExtensible self-hosted ChatGPT-style web interface for Ollama and OpenAI-compatible local or cloud LLMs with built-in RAG.Free open-source runtime for downloading and running large language models locally and privately on macOS, Windows, and Linux.
Key Trade-offSetup can be fiddlyRequires 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 text-generation-webui workflows.

YouTube Video Description & SEO Optimization TemplateCopywriting · YouTube, Video SEO, Description, Timestamps
Open in Studio
High-Open B2B Cold Email SequenceCopywriting · Sales, Cold Email, Outreach, B2B
Open in Studio
B2B Cold Email That Gets 40%+ RepliesCopywriting · Low-Friction B2B Outreach
Open in Studio

Compare Alternatives

Compare Engine →

Compare text-generation-webui side-by-side on setup ease, privacy, and role scorecards.

More Open Source Text & LLMs Repositories

Frequently Asked Questions

What does text-generation-webui do and how does it work?

text-generation-webui (oobabooga/textgen) is an open-source text & llms project with 47,757 stars on GitHub. Feature-rich Gradio web workspace by oobabooga supporting Transformers, llama.cpp, ExLlamaV2, and TensorRT-LLM backends with prompt presets and LoRA loading. text-generation-webui gives power users granular sampler sliders (min_p, DRY, XTC), GGUF/EXL2/GPTQ weight hot-swapping, character chat formatting, and an OpenAI-compatible extensions API inside a single local Python setup.

Is text-generation-webui free to self-host and use commercially?

text-generation-webui 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 text-generation-webui require?

text-generation-webui targets Self-Hosted / Python (GitHub). Typical installation runs via `git clone https://github.com/oobabooga/text-generation-webui.git && ./start_linux.sh`. Setup can be fiddly

How does self-hosting text-generation-webui compare to hosted tools like Open WebUI?

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

Is text-generation-webui actively maintained and what workflow fits it best?

Repository metadata records 47,757 stars on GitHub with the latest recorded push on Aug 17, 2026. Benchmark different GGUF vs. EXL2 quantizations side by side with custom system prompts and sampler presets before deploying a chosen model in production.