Home Knowledge Base ExLlama (and its successor ExLlamaV2)

ExLlama (and its successor ExLlamaV2) is a hyper-optimized Python/C++/CUDA inference engine specifically designed for maximum speed on NVIDIA GPUs — writing custom CUDA kernels that bypass Hugging Face Transformers overhead to achieve the fastest possible inference for GPTQ and EXL2 quantized models, with ExLlamaV2 introducing the EXL2 format that enables mixed-precision quantization to perfectly fit any model into a specific VRAM budget.

What Is ExLlama?

Key Features

ExLlamaV2 vs Other Inference Engines

EngineSpeed (NVIDIA)QuantizationCPU SupportEase of Use
ExLlamaV2FastestGPTQ, EXL2NoModerate
llama.cppGoodGGUF (all types)ExcellentEasy
vLLMVery fastGPTQ, AWQ, FP16NoEasy (server)
TransformersBaselineGPTQ, AWQ, BnBYesEasiest
TensorRT-LLMVery fastFP16, INT8, INT4NoComplex

ExLlama is the performance-maximizing inference engine for NVIDIA GPU users — writing custom CUDA kernels that extract every possible token per second from quantized models, with ExLlamaV2's EXL2 format enabling precision-optimized quantization that perfectly fits any model into any VRAM budget.

exllamaquantizationinferencepythonfast inference

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.