The official API server for Exllama. OAI compatible, lightweight, and fast.
  • Python 79.1%
  • JavaScript 10.6%
  • CSS 7.1%
  • HTML 1.3%
  • Jupyter Notebook 0.8%
  • Other 1.1%
Find a file
2026-11-04 17:32:39 +01:00
.github Docker: Add latest-extras image, solve dependency issues for [extras], tolerate infinity_emb import errors, add Docker smoke test workflow. Should fix #414 2026-08-08 15:08:35 +02:00
backends Decisions: Fix job registry and forced overrides 2026-11-04 17:32:39 +01:00
colab Start: Migrate options from cu121/118 to cu12 2025-08-19 22:56:58 -04:00
common Followup #495: 2026-11-04 01:19:16 +01:00
docker Docker: Add ROCm dockerfile and compose config 2026-10-07 21:32:42 +02:00
docs Followup #495: 2026-11-04 01:19:16 +01:00
endpoints Decisions: Fix job registry and forced overrides 2026-11-04 17:32:39 +01:00
loras Implement lora support (#24) 2023-12-08 23:38:08 -05:00
models Tree: Update documentation and configs 2023-11-16 02:30:33 -05:00
sampler_overrides Model: Update loop detection config to reflect new 1.6.6 loop detector 2026-10-31 22:00:21 +01:00
templates Tool calling: add LFM2 pythonic tool call parser 2026-09-05 20:21:10 +00:00
tests Decisions: Fix job registry and forced overrides 2026-11-04 17:32:39 +01:00
tools Auth: Allow multiple API keys, watch api_tokens.yml and reload keys on changes without restarting server, add tool to append new 128-bit tokens 2026-07-16 00:13:14 +02:00
update_scripts Start: Make linux scripts executable 2024-08-03 15:19:31 -04:00
.dockerignore Docker: Add latest-extras image, solve dependency issues for [extras], tolerate infinity_emb import errors, add Docker smoke test workflow. Should fix #414 2026-08-08 15:08:35 +02:00
.gitignore Tool calling: add LFM2 pythonic tool call parser 2026-09-05 20:21:10 +00:00
api_tokens_sample.yml Auth: Allow multiple API keys, watch api_tokens.yml and reload keys on changes without restarting server, add tool to append new 128-bit tokens 2026-07-16 00:13:14 +02:00
config_sample.yml Followup #515, docs and warning when draft_gpu_split is ignored 2026-11-04 00:18:15 +01:00
formatting.bat feat: workflows for formatting/linting (#35) 2023-12-22 16:20:35 +00:00
formatting.sh feat: workflows for formatting/linting (#35) 2023-12-22 16:20:35 +00:00
LICENSE Create LICENSE 2023-11-16 17:43:23 -05:00
main.py Config: Avoid importing Torch before allocator backend is set. 2026-10-11 21:29:46 +02:00
pyproject.toml Dependencies: Update exllamav3 2026-10-31 15:27:55 +01:00
README.md Dependencies: Add ROCm dependencies, accept AMD GPUs 2026-10-07 21:32:05 +02:00
start.bat Start: Add check for uv 2025-08-19 22:57:03 -04:00
start.py Dependencies: Add ROCm dependencies, accept AMD GPUs 2026-10-07 21:32:05 +02:00
start.sh Start: Add check for uv 2025-08-19 22:57:03 -04:00

TabbyAPI

Python 3.10 through 3.14 License: AGPL v3 Discord Server

Developer facing API documentation

Support on Ko-Fi

Important

In addition to the README, please read the Wiki page for information about getting started!

Warning

The ONLY official source for TabbyAPI information is this repository. Any other websites, downloads, or services claiming to represent TabbyAPI are unaffiliated and should be considered as malicious.

Note

Need help? Join the Discord Server and get the Tabby role. Please be nice when asking questions.

A FastAPI based application that allows for generating text using an LLM (large language model) using the Exllamav3 backend.

TabbyAPI is also the official API backend server for ExllamaV3.

Disclaimer

This project is marked as rolling release. There may be bugs and changes down the line. Please be aware that you might need to reinstall dependencies if needed.

TabbyAPI is a hobby project made for a small amount of users. It is not meant to run on production servers. For that, please look at other solutions that support those workloads.

Getting Started

Important

Looking for more information? Check out the Wiki.

For a step-by-step guide, choose the format that works best for you:

📖 Read the Wiki – Covers installation, configuration, API usage, and more.

🎥 Watch the Video Guide – A hands-on walkthrough to get you up and running quickly.

Docker

TabbyAPI publishes a CUDA image to GitHub Container Registry. Install Docker and the NVIDIA container toolkit, then start the published image with your models directory mounted into the container:

docker pull ghcr.io/theroyallab/tabbyapi:latest
docker run --gpus all --shm-size=8g --name tabbyapi -p 5000:5000 -v /path/to/models:/app/models ghcr.io/theroyallab/tabbyapi:latest

Replace /path/to/models with the folder that contains your local model directories. The API is exposed on http://localhost:5000. Keep the --shm-size flag: ExLlamaV3 uses POSIX shared memory for tensor parallelism and CPU MoE offload, and Docker's default of 64 MiB is too small for either.

Available tags: latest (CUDA 12.8), cu13 (CUDA 13), latest-rocm (AMD, Radeon RX 7900 series; other GPUs build from docker/Dockerfile.rocm), and latest-extras (CUDA 12.8 with the optional embeddings stack included). When building from source, pass --build-arg EXTRAS=1 to include the embeddings stack.

For Docker Compose, custom config mounts, or building the image locally, see the Docker instructions.

Features

  • OpenAI compatible API
  • Loading/unloading models
  • HuggingFace model downloading
  • Embedding model support
  • JSON schema + Regex + EBNF support
  • AI Horde support
  • Speculative decoding via draft models
  • Inbuilt proxy to override client request parameters/samplers
  • Flexible Jinja2 template engine for chat completions that conforms to HuggingFace
  • Concurrent inference with asyncio
  • Utilizes modern python paradigms
  • Continuous batching engine using paged attention
  • OAI style tool/function calling

And much more. If something is missing here, PR it in!

Supported Model Types

TabbyAPI uses Exllama as a powerful and fast backend for model inference, loading, etc. Therefore, the following types of models are supported:

  • Exl3 (Highly recommended)

  • FP16/BF16

In addition, TabbyAPI supports parallel batching using paged attention for Nvidia Ampere GPUs and higher.

Contributing

Use the template when creating issues or pull requests, otherwise the developers may not look at your post.

If you have issues with the project:

  • Describe the issue in detail

  • If you have a feature request, please indicate it as such.

If you have a Pull Request

  • Describe the pull request in detail, what, and why you are changing something

Acknowldgements

TabbyAPI would not exist without the work of other contributors and FOSS projects:

Developers and Permissions

Creators/Developers: