What is Sonar?
Sonar is an inference engine for Hugging Face-compatible language and multimodal models, published by dphnAI as the successor to the Aphrodite Engine. It provides continuous batching, paged KV-cache management, optimized kernels, quantization, speculative decoding, and distributed serving. It sits in the Serving & Deployment category of the Models & Inference tools and is open-source, written in Python and licensed AGPL-3.0.
Overview
Sonar is an inference engine for Hugging Face-compatible language and multimodal models, published by dphnAI as the successor to the Aphrodite Engine. It provides continuous batching, paged KV-cache management, optimized kernels, quantization, speculative decoding, and distributed serving.
It is based on vLLM and adds model and quantization formats, sampling methods, kernels, platforms, and deployment features on top. The project says it serves production workloads for the Dolphin Inference Network and PygmalionAI, so it is aimed at teams running open models themselves rather than calling a hosted API.
Serving a model starts an OpenAI-compatible server on port 2242 with health checks, metrics, and an OpenAPI schema, alongside Anthropic, pooling, scoring, reranking, transcription, and Kobold APIs. The command-line entry point is still `aphrodite`, and the installer covers Linux x86-64 (CUDA, ROCm, or CPU), Linux Arm64, and Apple silicon macOS.
What it does
- Continuous batching, paged KV-cache management, and prefix caching enabled by default
- Tensor, pipeline, data, and expert parallelism, plus multi-node multiprocessing without a Ray cluster
- Quantized weights and an FP8 KV cache, with a generated quantization support matrix
- Speculative decoding via MTP, EAGLE, DSpark, DFlash, n-gram, and other methods
- OpenAI, Anthropic, pooling, scoring, reranking, transcription, and Kobold API surfaces
- Image, audio, and video model support, LoRA adapter serving, and Prometheus metrics
Getting started
The automatic installer covers Linux x86-64 (NVIDIA CUDA, AMD ROCm, or CPU), Linux Arm64 (CPU), and Apple silicon macOS (Metal). Serving a model starts an OpenAI-compatible API on localhost port 2242.
Install the engine
Run the project's installer script. The full installation guide covers AMD ROCm, Intel XPU, CPU, Apple silicon, Google TPU, Docker, WSL 2, source builds, and nightly wheels.
curl -fsSL https://sonar.dphn.ai/install.sh | bashServe a model
Point the CLI at a Hugging Face repo id. The server listens on http://127.0.0.1:2242 by default and exposes OpenAI-compatible endpoints.
aphrodite serve Qwen/Qwen3-0.6B \
--served-model-name qwen3Check the support matrices before deploying
Model, quantization, and server-argument references are generated from the current source tree, so check them for your model, device, data type, and quantization method before you tune anything.
# Model matrix: https://sonar.dphn.ai/reference/models/
# Quantization matrix: https://sonar.dphn.ai/reference/quantization/
# Optimization guide: https://sonar.dphn.ai/deployment/optimization/Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Self-host an open LLM behind an OpenAI-compatible API so existing OpenAI client code keeps working
- Serve a quantized model with an FP8 KV cache to fit a larger model onto limited GPU memory
- Run a high-throughput backend for a chat platform or app handling many concurrent users
- Serve multimodal or LoRA-adapted models across multiple nodes without standing up a Ray cluster
How Sonar compares
Sonar alongside other open-source serving & deployment tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Transformers | ★ 169k | Hugging Face Transformers is a Python framework that defines and runs state-of-the-art pretrained models for text, vision, audio, and multimodal tasks, for both inference and training. |
| vLLM | ★ 97.9k | A high-throughput LLM serving engine that uses PagedAttention and continuous batching to serve many requests at once. |
| SGLang | ★ 39.2k | A serving framework for LLMs and multimodal models that boosts throughput by reusing shared prompt prefixes across requests. |
| Modular Platform | ★ 30.2k | Modular's AI platform: the MAX inference framework with an OpenAI-compatible serving endpoint and GPU kernel library, plus the Mojo language and compiler. |
| DeepInfer | ★ 26.5k | DeepSeek's own large-scale inference framework for its models, with expert parallelism, confidence-scheduled speculative decoding and NVIDIA plus Ascend support. |
| TensorRT-LLM | ★ 15.2k | NVIDIA's library that compiles LLMs into optimized engines for the fastest inference on its data-center GPUs. |
| OpenVINO | ★ 13.3k | An open-source toolkit from Intel that converts and optimizes deep learning models, then runs fast inference on CPU, GPU, and NPU hardware. |
| Sonar | ★ 1.9k | vLLM-based inference engine with extra quantization and sampling support |

