Skip to content

ExLlamaV3 and TabbyAPI Guide: Run EXL3 Models on Your GPU (2026)

10–14 minutes
Woman in a server room holding a tablet with an EXLLAMAV3 card, hook max model on your GPU

If you have an NVIDIA GPU and want the fastest way to run a quantized LLM that fits your VRAM exactly, ExLlamaV3 is worth a look.

It uses its own EXL3 format, which lets you pick any bitrate such as 3.0, 4.25 or 5.5 bits per weight, and it pairs with TabbyAPI to give you an OpenAI-compatible server on your own machine.

This guide covers what EXL3 is, how to install ExLlamaV3 and TabbyAPI on Windows or Linux, how to download or make EXL3 quants, how to load a model and call the API, and how to fix the usual install and VRAM errors.

It follows the official ExLlamaV3 README and conversion guide and the TabbyAPI Getting Started docs as of November 2026.

TL;DR

  • What it is: ExLlamaV3 is a GPU inference library with its own EXL3 quant format, based on Cornell’s QTIP method.
  • Server: TabbyAPI is the official server. It gives you an OpenAI-compatible API on port 5000.
  • Install: git clone https://github.com/theroyallab/tabbyAPI, then run start.bat (Windows) or start.sh (Linux) and pick your GPU library.
  • Models: download ready EXL3 quants from Hugging Face, or make your own with convert.py -b 4.0.
  • Needs: an NVIDIA GPU with CUDA 12.4 or newer through PyTorch. AMD works through a ROCm Docker image on Linux.

What ExLlamaV3 and EXL3 Are

ExLlamaV3 is an open-source inference library by turboderp for running local LLMs on consumer GPUs. It is the successor to ExLlamaV2 and its EXL2 format.

  • EXL3 quantization: a streamlined version of QTIP from Cornell RelaxML. You give it a full-precision Hugging Face model and a target bitrate, and it does the rest in one pass.
  • Cache quantization: the KV cache can be stored at 2 to 8 bits to save VRAM on long contexts.
  • Parallel inference: tensor-parallel and expert-parallel modes for multi-GPU setups.
  • CPU offloading: large mixture-of-experts (MoE) models can keep some experts in system RAM, with AVX2 and AVX512 support.
  • Generation features: continuous dynamic batching, speculative decoding and multimodal (image) input on supported models.

The library itself is for Python developers. Most people will use it through TabbyAPI, which the ExLlamaV3 README calls the official and recommended server.

EXL3 vs GGUF: Which Should You Use?

GGUF is the format used by llama.cpp, Ollama and LM Studio. If you are new to quant names like Q4_K_M, read our GGUF quantization guide first.

Point EXL3 (ExLlamaV3) GGUF (llama.cpp)
Hardware NVIDIA GPU (CUDA); AMD ROCm on Linux Almost anything: CPU, NVIDIA, AMD, Intel, Apple
Bitrate choice Any average, e.g. 2.5, 3.75, 4.0, 6.0 bpw Fixed types such as Q4_K_M, Q5_K_M, Q8_0
Quality at low bits Very strong around 3-4 bpw thanks to QTIP-style trellis coding Good, with imatrix quants helping at low bits
Offload Whole model on GPU; CPU offload only for MoE experts Flexible layer offload between CPU and GPU
Server TabbyAPI llama-server, Ollama, LM Studio
Best for Squeezing the biggest model into fixed VRAM Ease of use and mixed CPU/GPU setups

Simple rule: if the model fits fully in your NVIDIA VRAM and you want the best quality per GB, try EXL3. If you need CPU offload for a dense model, or you are on a Mac, stay with GGUF. Our vLLM vs llama.cpp vs Ollama comparison covers the other backends.

What You Need

Item Requirement
GPU NVIDIA with a CUDA 12.4+ build of PyTorch. Paged attention batching needs Ampere (RTX 30) or newer
Python 3.10 to 3.14 for TabbyAPI; 3.12 is the preferred version in its docs
PyTorch 2.6.0 or newer
OS Windows or Linux. Windows also needs triton-windows (installed as a dependency)
Disk Room for the model; for converting, room for a second copy in the work folder

Do not install Python from the Microsoft Store. TabbyAPI’s docs warn this breaks pip. Use the python.org installer, uv (preferred by the TabbyAPI team) or Miniconda.

Install TabbyAPI (Easiest Route)

TabbyAPI installs ExLlamaV3 for you, so this is the quickest way to get going.

  1. Install Git and Python 3.12 (or uv).
  2. Clone the repo: git clone https://github.com/theroyallab/tabbyAPI
  3. Go into the folder: cd tabbyAPI
  4. Run the start script: start.bat on Windows, or ./start.sh on Linux.
  5. When asked, pick the right GPU library (CUDA 12 or CUDA 13). The script creates a virtual environment and installs everything, including the ExLlamaV3 wheel.
  6. The server starts on http://127.0.0.1:5000 with no model loaded yet. The console prints your API key and admin key.

Prefer doing it by hand? Create a venv, activate it, then install the matching extra:

python -m venv venv
# Windows
.\venv\Scripts\activate
# Linux
source venv/bin/activate

pip install -U .[cu12]     # CUDA 12.x
# or
pip install -U .[cu13]     # CUDA 13.x (Python 3.12+)

python main.py

If uv is installed, the start scripts detect it and use it automatically.

Download an EXL3 Model

EXL3 models live in folders, one per quant. Many uploaders put each bitrate on its own Hugging Face branch, such as 3.0bpw, 4.0bpw or 6.0bpw.

Good places to find them:

  • turboderp’s EXL3 model collection on Hugging Face
  • Community quanters credited in the README, including ArtusDev, MikeRoz, MetaphoricalCode, Ready.Art and isogen
  • Any Hugging Face search for the model name plus exl3

TabbyAPI has a built-in downloader. Pick the branch with --revision:

# Windows
.\start.bat download turboderp/Qwen2.5-VL-7B-Instruct-exl3 --revision 4.0bpw

# Linux
./start.sh download turboderp/Qwen2.5-VL-7B-Instruct-exl3 --revision 4.0bpw

# Gated models need a Hugging Face token
./start.sh download meta-llama/Llama-3.1-8B --token YOUR_HF_TOKEN

Files go into the models folder inside tabbyAPI by default.

Which bitrate should I pick?

Bitrate When to use it
2.5-3.0 bpw Very large models on limited VRAM; expect some quality loss
3.5-4.25 bpw The usual sweet spot for 24-32 GB cards
5.0-6.0 bpw Close to full quality when you have room
8.0 bpw Near lossless; mainly for small models or testing

A rough size estimate is parameters times bpw divided by 8. A 32B model at 4.0 bpw is about 16 GB of weights, before the KV cache.

Configure and Load a Model

TabbyAPI works with defaults, but a config file lets you load a model at startup.

  1. Copy config_sample.yml to config.yml.
  2. Under model:, set model_name to the folder name inside models.
  3. Set max_seq_len (context length) and cache_size (in tokens, a multiple of 256).
  4. Optionally set cache_mode to 8,8 or 4,4 to quantize the KV cache.
  5. Restart TabbyAPI with start.bat or start.sh.
network:
  host: 127.0.0.1
  port: 5000
  disable_auth: false

model:
  model_dir: models
  model_name: Qwen2.5-VL-7B-Instruct-exl3
  max_seq_len: 32768
  cache_size: 32768
  cache_mode: 8,8

Key settings worth knowing:

Setting What it does
host 127.0.0.1 is local only. 0.0.0.0 exposes it on your network
disable_auth Turns off API keys. Only do this if nothing untrusted can reach the port
cache_mode FP16 by default; k_bits,v_bits from 2 to 8 saves VRAM
gpu_split_auto Splits the model across GPUs automatically (default on)
tensor_parallel Runs layers across GPUs in parallel for more speed
cpu_moe_offload_layers Moves MoE layers to the CPU when VRAM is short
draft_model_name Small draft model for speculative decoding

The sample config also turns on a safe_defaults sampler preset (temperature 0.8, top_k 40, top_p 0.95, min_p 0.05) for apps that send no sampler settings. Clear override_preset if you are benchmarking.

Call the OpenAI-Compatible API

TabbyAPI speaks the OpenAI format, so most chat apps and SDKs work once you point them at http://127.0.0.1:5000/v1 and give them your API key from the console (it is also saved in api_tokens.yml).

curl http://127.0.0.1:5000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TABBY_API_KEY" \
  -d '{
    "messages": [{"role": "user", "content": "Explain EXL3 in one sentence."}],
    "max_tokens": 200
  }'

In Python with the OpenAI SDK:

from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:5000/v1", api_key="YOUR_TABBY_API_KEY")
reply = client.chat.completions.create(
    model="Qwen2.5-VL-7B-Instruct-exl3",
    messages=[{"role": "user", "content": "Write a haiku about GPUs."}],
)
print(reply.choices[0].message.content)

TabbyAPI also supports model loading and unloading over the API (with the admin key), tool and function calling, JSON schema, regex and EBNF constrained output, embeddings and Jinja2 chat templates from Hugging Face. Front ends such as SillyTavern and Open WebUI can connect to it as an OpenAI-compatible endpoint.

Install ExLlamaV3 as a Python Library

Skip this section if you only use TabbyAPI. It is for writing your own scripts or converting models.

  1. Install a CUDA build of PyTorch first, because pip does not pull it in for you. For example: pip install torch --index-url https://download.pytorch.org/whl/cu128
  2. Pick the prebuilt wheel from the ExLlamaV3 GitHub releases page that matches your CUDA, torch and Python versions (for example cu128, torch2.8.0, cp312), and pip install its URL.
  3. Or run pip install exllamav3. This PyPI package has no prebuilt extension, so you need the CUDA toolkit and a compiler (VS Build Tools on Windows, gcc on Linux).
  4. Clone the repo to get the example and conversion scripts: git clone https://github.com/turboderp-org/exllamav3
  5. Try the chat example: python examples/chat.py -m /path/to/model -mode <prompt_mode> (run -h to see the modes).

Building from source with uv is also supported. The README lists extras such as cu124, cu126, cu128, cu129, cu130 and cu132, for example uv sync --extra cu130. If the build runs out of RAM, set MAX_JOBS=4.

Make Your Own EXL3 Quants

Converting is one command. The input must be an unquantized Hugging Face model folder with config.json, tokenizer.json and .safetensors files.

python convert.py -i /models/Qwen3-8B \
                  -o /models/Qwen3-8B-exl3-4.0bpw \
                  -w /tmp/exl3-work \
                  -b 4.0
Flag Meaning
-i Source model folder (full precision)
-o Output folder for the EXL3 model (overwritten if it exists)
-w Work folder for checkpoints; needs space for a full copy of the output
-b Target average bits per weight
-hb Bits for the output head layer (1-8, default 6)
-hq Gives attention and shared-expert layers more bits; a cheap quality boost for MoE models
-d 0,1 Use several GPUs to speed up conversion
-r Resume an interrupted job (use with -w only)

The README says small models convert in a couple of minutes, while 70B+ models can take a few hours on one high-end consumer GPU. If a long job stops, resume it with python convert.py -w /tmp/exl3-work -r.

VRAM, Multi-GPU and Speed Tips

  • Quantize the cache: cache_mode: 8,8 roughly halves KV cache memory compared with FP16, and 4,4 saves more for long contexts.
  • Lower context: drop max_seq_len and cache_size if you get out-of-memory errors during generation.
  • Leave headroom: autosplit_reserve keeps some MiB free on each GPU for the display and other apps.
  • Two GPUs: try tensor_parallel: true. Use the native backend over PCIe and nccl with NVLink.
  • Big MoE models: cpu_moe_split_experts keeps the coldest experts in system RAM and the hot ones in VRAM.
  • Speculative decoding: set a small draft model of the same family in draft_model_name. See our speculative decoding explainer for how drafting speeds things up.

Run TabbyAPI in Docker

TabbyAPI publishes a CUDA image. You need Docker and the NVIDIA Container Toolkit.

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

Keep --shm-size=8g. Docker’s default 64 MiB of shared memory is too small for tensor parallelism and CPU MoE offload. Other tags are cu13 (CUDA 13), latest-rocm (AMD Radeon RX 7900 series) and latest-extras (with the embeddings stack).

Troubleshooting

Problem Fix
“DLL load failed” on Windows Install the CUDA 12.x toolkit; torch could not provide the CUDA libraries itself
pip asks for VS Build Tools A dependency has no wheel for your Python version. Use Python 3.12, or install VS Build Tools 17.8 and retry
ExLlamaV3 will not import on Windows Install triton-windows; the attention and cache kernels need it
Build runs out of RAM Set MAX_JOBS=4 before installing, or use a prebuilt release wheel
Server starts but no model loads Set model_name in config.yml to the exact folder name in models
Port 5000 already in use TabbyAPI exits rather than moving; change port in the config
401 or unauthorized errors Send the API key from the console or api_tokens.yml; model loading needs the admin key
Out of memory while generating Reduce max_seq_len/cache_size, quantize the cache, or raise autosplit_reserve
Docker load fails with a shared memory error Add --shm-size=8g or --ipc=host
Replies feel odd or repetitive Check the sampler preset and that the model’s chat template is being used

If a GGUF model in Ollama is slow for you, our Ollama slow fix guide covers the GGUF side; EXL3 on a GPU is often the faster option once the model fits.

FAQ

Is ExLlamaV3 faster than llama.cpp?

On NVIDIA GPUs with the whole model in VRAM it is often very fast, and its main advantage is quality per GB at low bitrates. llama.cpp is more flexible when you need CPU offload or non-NVIDIA hardware. Test both with your own model.

Can I run EXL2 models in ExLlamaV3?

TabbyAPI lists EXL3 (highly recommended) and FP16/BF16 as its supported model types. Use EXL3 quants with ExLlamaV3; EXL2 belongs to the older ExLlamaV2.

Does ExLlamaV3 work on AMD GPUs?

Yes, on Linux through ROCm. TabbyAPI has a latest-rocm Docker image for the Radeon RX 7900 series, and other GPUs can build from its ROCm Dockerfile.

Can it run on CPU only?

No. It is a GPU library. Only MoE expert layers can be offloaded to the CPU. Use llama.cpp for CPU-only machines.

Which models are supported?

A long list, including Llama, Qwen 3 and 3.5, Gemma 3 and 4, Mistral, GLM, DeepSeek V3 and V4, GPT-OSS, MiniMax-M2, Phi and Nemotron. Several vision models are supported too. Check the README table for the exact architecture names.

Is TabbyAPI good for production?

Its own README says it is a hobby project for a small number of users and not meant for production servers. It is great for personal and small-team use.

Where do I get the API key?

TabbyAPI generates an API key and an admin key on first start, prints them in the console and stores them in api_tokens.yml.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a server room holding a tablet with an EXLLAMAV3 card, hook max model on your GPU