FastChat is an open-source platform focused on the training, serving, and evaluation of large language models (LLMs). It was developed by the LMSYS team and is the official release repository for Vicuna and Chatbot Arena. FastChat once powered Chatbot Arena (later renamed LMArena, renamed Arena in January 2026), having cumulatively handled over 10 million chat requests, covering more than 70 LLMs, and collected over 1.5 million human votes to build an online LLM Elo leaderboard.
Key capabilities include:
- Training and evaluation: provides training and evaluation code for advanced models such as Vicuna and MT-bench.
- Distributed multi-model serving: supports a distributed multi-model serving system with a Web UI and an OpenAI-compatible RESTful API.
- Model support: supports a variety of models, including LLama 2, Vicuna, Alpaca, Baize, ChatGLM, Dolly, Falcon, FastChat-T5, GPT4ALL, Guanaco, MTP, OpenAssistant, OpenChat, RedPajama, StableLM, WizardLM, xDAN-AI, and others.
- Inference methods: supports command-line interface (CLI) inference, Web GUI serving, OpenAI-compatible API serving, the Hugging Face Generation API, and LangChain integration.
- Evaluation tools: provides MT-bench, a challenging set of multi-turn open-ended questions for evaluating models, and can use strong LLMs such as GPT-4 as judges to automate the evaluation process.
Usage:
- Installation: can be installed via pip or from source.
- Command-line inference: use the command to start chatting, automatically downloading weights from Hugging Face. Supports multiple devices (CPU, GPU, Mac MPS, Intel XPU, Ascend NPU), and 8-bit compression can be enabled via --load-8bit to reduce memory usage.
- Web GUI serving: requires three main components: a web server that interacts with users, model workers that host one or more models, and a controller that coordinates the two. After starting the controller, model worker, and Gradio web server, you can chat with the model through a browser.
- API serving: provides an OpenAI-compatible RESTful API that can serve as a local alternative to the OpenAI API, supporting the openai-python library and cURL commands.
- Evaluation: use MT-bench for model evaluation; the relevant instructions are located in fastchat/llm_judge.
- Training: provides fine-tuning code for Vicuna, based on Stanford Alpaca, supporting multi-turn conversations. Vicuna-7B can be trained using 4 x A100 (40GB). LoRA and SkyPilot for fine-tuning on any cloud are also supported.
Applicable scenarios:
- Researchers and developers training, fine-tuning, and evaluating large language models.
- Chatbot applications that require local deployment and serving.
- Building model comparison platforms similar to Chatbot Arena.
- Serving as a local alternative to the OpenAI API for development and testing.
Limitations:
- No new version has been released since v0.2.36 (February 2024).
- Vicuna is based on Llama 2 and is subject to the Llama model license.
- The ShareGPT training dataset will not be released.
- Some features (such as CPU offloading) only work on the Linux operating system.
- Memory requirements are relatively high: Vicuna-7B requires about 14GB of GPU memory, Vicuna-13B requires about 28GB of GPU memory; CPU inference requires about 30GB and 60GB of memory.