# text-generation-webui

text-generation-webui（2026年4月更名为TextGen）是一个免费、开源的[Gradio](https://www.edgepedia.org/zh/gradio)网页界面，用于在用户自己的硬件上加载本地开放权重的大语言模型并进行对话，由化名开发者oobabooga于2022年12月21日首次发布。<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup><sup> • </sup><sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup> 该项目由单一开发者维护，采用AGPL-3.0许可证，保持免费，没有付费层级，也没有托管版本。<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup><sup> • </sup><sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 面向本地大语言模型的Gradio网页界面，主要用Python编写（87.6%）<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup> |
| 创建时间 | 2022年12月21日，由化名维护者oobabooga创建<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup> |
| 许可证与费用 | AGPL-3.0，免费，无付费层级，无托管版本<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup><sup> • </sup><sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup> |
| 当前后端 | llama.cpp、ik_llama.cpp、Transformers、ExLlamaV3、TensorRT-LLM<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup> |
| 社区规模 | 截至2026年4月16日约46,734颗星、5,950次复刻、380名贡献者（厂商自报；一份独立评测给出47,600+颗星）<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup><sup> • </sup><sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup> |
| 最新版本 | v4.5.2，发布于2026年4月15日；共104个版本<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup> |
| 更名 | 2026年4月更名为TextGen；仓库迁至github.com/oobabooga/textgen<sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup> |

## 起源与发布历史

该仓库创建于2022年12月21日。<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup> 维护者以oobabooga为化名工作；除化名外，来源未描述开发者经核实的身份，现有证据中也没有该项目的下载量记录。

2023年，维护者获得了一笔一次性的[安德森·霍洛维茨](https://www.edgepedia.org/zh/andreessen-horowitz)（Andreessen Horowitz）开源资助，以支持全职开发。据一份2026年的独立评测，该资助是对开发者所投入时间的补助，而非对商业产品的投资，且未改变许可证，也未引入付费层级。<sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup>

## 工作原理：后端、格式与硬件

该工具的核心设计是加载器架构：同一界面置于多个推理引擎之前，用户无需重启即可在后端和模型之间切换。<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup> 当前阵容为llama.cpp、ik_llama.cpp、[Transformers](https://www.edgepedia.org/zh/transformers)、ExLlamaV3和[TensorRT-LLM](https://www.edgepedia.org/zh/tensorrt-llm)。<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup> 较早版本的README还列出过ExLlamaV2，并注明TensorRT-LLM通过其自有的Dockerfile提供支持。<sup>[3](https://github.com/oobabooga/text-generation-webui/blob/a0b5599e/README.md)</sup> 加载器集合随时间变化：AutoGPTQ、AutoAWQ以及最初的ExLlama/ExLlamaV2加载器已不再出现在当前README中，被当前五种所取代。<sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup> 证据未将vLLM列入支持的后端，也不包含各后端在速度或内存占用方面差异的实测比较。

在硬件与平台方面，该项目为Windows、Linux和macOS上的[GGUF](https://www.edgepedia.org/zh/gguf)（量化本地大语言模型的文件格式）模型提供便携式零配置构建（解压即运行），或提供用于安装完整功能集的一键安装程序。<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup> 一个第三方软件目录称其支持NVIDIA、AMD和Apple Silicon后端。<sup>[4](https://app.softwarehope.com/software/text-generation-webui)</sup>

## 功能

除对话外，该项目提供兼容OpenAI/Anthropic的API，包含Chat、Completions和Messages端点，并支持工具调用，定位为这些云API的本地直接替代品；支持在多轮对话或原始文本数据集上进行LoRA微调，并可恢复中断的训练；支持视觉与多模态输入；支持PDF和DOCX文件附件；并提供一个基于diffusers的图像生成标签页。<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup> 2026年4月7日发布的4.4版本新增MCP服务器支持，用户可在Chat标签页中通过URL添加远程MCP服务器，工具会被自动发现并与本地工具一同使用。<sup>[5](https://github.com/oobabooga/text-generation-webui/releases/tag/v4.4)</sup>

该项目声称100%离线且私密，零遥测、无外部资源、无远程更新请求；此为厂商声明，并非独立审计。<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup>

功能集也有明显空白。它没有专门的角色扮演工具，即没有设定集或群聊功能，没有多用户登录系统，也没有商业支持层级。<sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup><sup> • </sup><sup>[6](https://huggingface.co/spaces/blaketm/text-generation-webui/blob/main/docs/03%20-%20Parameters%20Tab.md)</sup>

## 数据一览

GitHub仓库报告称，截至2026年4月16日最后一次推送，约有46,734颗星、5,950次复刻和380名贡献者，共104个版本。<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup> 一份2026年的独立评测给出47,600+颗星、约6,000次复刻和约380至395名贡献者。<sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup> 两个星数相差约900；仓库自身的数据是更直接的测量。2026年春季的发布节奏密集：4.4版（4月7日）、4.5.2版（4月15日）、4.6.2版（4月23日）、4.7.3版（5月3日）、4.8版（5月7日）和4.9版（5月20日）在六周内相继发布。<sup>[1](https://www.github.com/oobabooga/text-generation-webui)</sup><sup> • </sup><sup>[5](https://github.com/oobabooga/text-generation-webui/releases/tag/v4.4)</sup><sup> • </sup><sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup>

## 与其他本地前端的比较

一份2026年的独立评测这样归纳主要区别。[LM Studio](https://www.edgepedia.org/zh/lm-studio)是最简单的开箱即用GGUF图形界面，但为闭源。KoboldCpp专为创意写作和角色扮演打造，常被用作SillyTavern的轻量级直接替代后端。[Open WebUI](https://www.edgepedia.org/zh/open-webui)是基于服务器的多用户前端，通常置于Ollama或其他后端之前。相比之下，text-generation-webui是单用户的桌面或本地应用，本身即推理引擎宿主，且比KoboldCpp更广泛、更可配置，拥有更多后端引擎、LoRA训练和更完整的API。<sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup> SillyTavern本身可以将text-generation-webui用作其后端之一，许多角色扮演用户正是这样将两者结合使用的。<sup>[2](https://www.promptquorum.com/local-llms/text-generation-webui-review)</sup>

一个软件目录将其描述为本地大语言模型实验的高级用户之选，尤其在创意写作和角色扮演社区中广受欢迎。<sup>[4](https://app.softwarehope.com/software/text-generation-webui)</sup>

## References

1. [oobabooga/text-generation-webui (GitHub repository)](https://www.github.com/oobabooga/text-generation-webui)
2. [text-generation-webui (TextGen) 2026: Full Review](https://www.promptquorum.com/local-llms/text-generation-webui-review)
3. [README.md (pinned revision)](https://github.com/oobabooga/text-generation-webui/blob/a0b5599e/README.md)
4. [Text Generation WebUI — Overview, Features & Pricing (2026)](https://app.softwarehope.com/software/text-generation-webui)
5. [v4.4 - MCP server support! (release notes)](https://github.com/oobabooga/text-generation-webui/releases/tag/v4.4)
6. [docs/03 - Parameters Tab.md · blaketm/text-generation-webui at main](https://huggingface.co/spaces/blaketm/text-generation-webui/blob/main/docs/03%20-%20Parameters%20Tab.md)

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Model families and named models › Open-weight ecosystem, formats, and licensing

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/text-generation-webui

English original: https://www.edgepedia.org/text-generation-webui
