All projects

exllamav3-inference

Python · CUDA kernels · LLM inference

Self-contained, optimised inference for ExLlamaV3 models: a minimal prefill-decode loop, custom fused CUDA kernels and an optional FP8 KV cache.

Language
Python · CUDA
PyPI
0.4.0
CUDA
≥ 12.8

Fewer launches per token

A fused RMSNorm + residual kernel removes 36 kernel launches per token; temperature, top-k, Gumbel noise and argmax run as one sampling kernel. The upstream 1000-line generator is replaced by a direct prefill-decode loop with no job queue.

Memory

An E4M3FN FP8 KV cache saves about half the VRAM, and a prefix cache snapshots the system prompt’s KV and recurrent state to pinned CPU memory. Vision and video inputs are supported.

Stack

  • Python
  • CUDA
  • PyTorch
  • FP8