text-generation-webui (now called textgen) is an open-source desktop application for local large language models, and it also provides a Gradio web interface. Its core idea is to let users run large models locally, achieving 100% offline operation and privacy protection; the software contains no telemetry, does not request external resources, and does not perform remote updates.
Main capabilities:
- Supports multiple model formats and backends, including llama.cpp, ik_llama.cpp, Transformers, ExLlamaV3, TensorRT-LLM, etc., and can switch backends and models without restarting.
- Provides instruct mode (instruction following similar to ChatGPT), chat-instruct, and chat mode (for conversing with custom characters); prompts are automatically formatted via Jinja2 templates.
- Supports vision (multimodal) functionality, allowing images to be attached to messages for visual understanding; supports uploading text files, PDFs, and .docx documents and conversing about their contents.
- Supports message editing, version switching, and conversation branching.
- Provides a Notebook tab for free text generation outside of conversations.
- Provides OpenAI/Anthropic-compatible APIs, including Chat, Completions, and Messages endpoints, and supports tool calling, serving as a local alternative to the OpenAI/Anthropic APIs.
- Supports tool calling, allowing models to call custom functions during conversations, including web search, page scraping, and mathematical calculations; each tool is a .py file; MCP servers are also supported.
Training and image generation:
- Training: Fine-tune LoRA on multi-turn conversations or raw text datasets, with support for resuming runs after interruption.
- Image generation: Provides a dedicated tab for diffusers models (such as Z-Image-Turbo), supports 4-bit/8-bit quantization, and a persistent gallery with image metadata.
Interface and extensions:
- Provides dark/light themes, code block syntax highlighting, and LaTeX rendering of mathematical expressions.
- Built-in and community extensions include TTS, voice input, and translation, among others.
Usage:
- Quick start: Download the portable package, extract it, and double-click textgen to open the window. The portable version supports Linux, Windows, and macOS, includes CUDA, Vulkan, ROCm, and pure CPU options, all dependencies are included, and it is compatible with GGUF (llama.cpp) models. If you need ExLlamaV3, Transformers, and other additional backends, training, image generation, and extensions, a full installation is required.
- Download models: Download GGUF model files from Hugging Face and place them in the user_data/models folder; the UI will automatically recognize them. Multi-file models (such as 16-bit Transformers models and EXL3 models) should be placed in subfolders under user_data/models, and these formats require a full installation rather than the portable version.
- One-click installation: Clone the repository or download and extract the source code, run the startup script for your system: start_windows.bat, start_linux.sh, or start_macos.sh, select the GPU vendor as prompted, and after installation is complete, open it in your browserhttp://127.0.0.1:7860。
- After installation, it can be restarted via the same start_ script; command-line arguments can be passed directly (e.g., ./start_linux.sh --help) or persisted in user_data/CMD_FLAGS.txt (e.g., --api to enable the API); it can be updated via the update_wizard_ script; deleting the installer_files folder and rerunning the start_ script will reinstall it.
- Internally, the script uses Miniforge to create a Conda environment in installer_files/; an interactive shell can be entered via cmd_linux.sh, cmd_windows.bat, or cmd_macos.sh.
- It also supports a full Conda-based installation and Docker Compose (requires v2.17 or above) deployment.
- To automatically load a model at startup, add the model filename to user_data/CMD_FLAGS.txt (e.g., replace my-model.gguf with the filename in user_data/models), with additional parameters one per line.
Use cases: Suitable for users who want to run large language models locally and privately, for scenarios such as text chat, multimodal understanding, document question answering, tool calling and web search, API replacement, LoRA fine-tuning, and image generation.
Limitations and supplements: Regarding specific fees, pricing, platform coverage, model performance and effects, the official text does not provide clear explanations, and they are not yet available.