# Sonar

> vLLM-based inference engine with extra quantization and sampling support

- Category: Models & Inference / Serving & Deployment
- Language: Python
- Licence: AGPL-3.0
- Repository: https://github.com/dphnAI/sonar
- Website: https://sonar.dphn.ai
- Canonical page: https://ai-tldr.dev/tools/aphrodite-engine/

## In short

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.

1. 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.

```bash
curl -fsSL https://sonar.dphn.ai/install.sh | bash
```

2. Serve 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.

```bash
aphrodite serve Qwen/Qwen3-0.6B \
  --served-model-name qwen3
```

3. Check 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.

```text
# Model matrix:        https://sonar.dphn.ai/reference/models/
# Quantization matrix: https://sonar.dphn.ai/reference/quantization/
# Optimization guide:  https://sonar.dphn.ai/deployment/optimization/
```

## 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
