Sonar (formerly Aphrodite Engine) is an inference engine that optimizes the serving of HuggingFace-compatible models at scale. Built on vLLM's Paged Attention technology, it delivers high-performance model inference for multiple concurrent users. Sonar serves as the backend engine powering the Dolphin Inference Network and PygmalionAI's chat platforms and API infrastructure.
Sonar builds upon and integrates the exceptional work from various projects, primarily vLLM.
- Continuous Batching
- Efficient K/V management with PagedAttention from vLLM
- Optimized CUDA kernels for improved inference
- Quantization support via AQLM, AutoRound, AWQ, BitNet, Bitsandbytes, ExLlamaV3, GGUF, GPTQ, QuIP#, SqueezeLLM, Marlin, [2] [3], NVIDIA ModelOpt, TorchAO, VPTQ, compressed_tensors, MXFP4, and more.
- Distributed inference
- Quantized KV cache using scaled and scale-less FP8, and TurboQuant
- Support for modern samplers such as DRY, XTC, Mirostat, and more
- Disaggregated inference
- Speculative decoding, including EAGLE, DFlash, ngram, MTP, and more
- Multimodal support
- Multi-LoRA support
Install the engine (the Python package and CLI keep the historical aphrodite name for now):
pip install -U aphrodite-engineThen launch a model:
aphrodite run Qwen/Qwen3.5-0.8BThis will create a OpenAI-compatible API server that can be accessed at port 2242 of the localhost. You can plug in the API into a UI that supports OpenAI, such as SillyTavern.
- Operating System: Linux, Windows (WSL2)
- Python: 3.10 to 3.13 (build from source for 3.14)
- CUDA >= 12
-
By design, Sonar takes up 92% of your GPU's VRAM. If you're not serving an LLM at scale, you may want to limit the amount of memory it takes up. You can do this in the API example by launching the server with the
--gpu-memory-utilization 0.6(0.6 means 60%). -
You can view the full list of commands by running
aphrodite run --help.
Sonar would have not been possible without the phenomenal work of other open-source projects. A (non-exhaustive) list:
- vLLM
- TensorRT-LLM
- xFormers
- Flash Attention
- llama.cpp
- AutoAWQ
- AutoGPTQ
- SqueezeLLM
- Exllamav2
- TabbyAPI
- AQLM
- KoboldAI
- Text Generation WebUI
- Megatron-LM
- Ray
Past and present, in alphabetical order:
Everyone is welcome to contribute. You can support the project by opening Pull Requests for new features, fixes, or general UX improvements.
