服务默认监听 127.0.0.1:2242,需确认端口占用与外部访问配置;各特性依赖模型、设备、数据类型和量化方式,部署前要查模型矩阵和量化矩阵;源码构建需 Python 3.13 并指定 torch 后端(如 cu130)。

curl -fsSL https://sonar.dphn.ai/install.sh | bash
sonar serve Qwen/Qwen3-0.6B --served-model-name qwen3安装脚本支持 Linux x86-64(NVIDIA CUDA、AMD ROCm 或 CPU)、Linux Arm64(NVIDIA CUDA 或 CPU)及 Apple silicon macOS(Metal);完整指南另含 Intel XPU、Google TPU。README 未给出具体显存要求。
基于 vLLM 扩展的大规模 LLM 推理引擎,支持多模态与分布式生产部署
面向大规模部署的 LLM 推理引擎,支持 CUDA、ROCm、TPU、Inferentia 等多种硬件后端,并提供 LoRA 与投机解码等加速能力。
核心能力
- 连续批处理与分页 KV 缓存管理
- 默认开启前缀缓存,支持张量/流水线/数据/专家并行
- 无需 Ray 集群即可多节点多进程部署
- 支持 MTP、EAGLE、n-gram 等多种投机解码
- 提供 OpenAI、Anthropic、Kobold 等兼容 API
容易踩的坑
- v0.25.0最新正式版2026-11-08 · 2026-11-08 16:00 UTC
What's Changed
- fix(ci): serialize CUDA builds on the shared runner (#1799) (
416649116) by @AlpinDale - feat(ci): add ARM64 CUDA wheel builds (#1798) (
5b0ff3aff) by @AlpinDale - chore(ci): remove unused Buildkite infrastructure (
8af3878ff) by AlpinDale - fix(docs): preserve code formatting in generated kernel reference (
076845665) by AlpinDale - feat!: rename Aphrodite Engine to Sonar (
49c386154) by AlpinDale - refactor: separate duplicate-file moves to preserve history (
805ca6d6c) by AlpinDale - refactor: move aphrodite package paths to sonar (
e0334ee4b) by AlpinDale - feat: add support for lossless quantization of BF16 to NF12 (#1796) (
c824d853a) by @AlpinDale - chore(sync): sync to upstream b8c04dd3b (#1795) (
180c058c1) by @AlpinDale - perf(sm120): optimize DeepSeek-V4.1 inference (#1788) (
113398b9e) by @AlpinDale - fix(cpu): keep the triton-cpu URL dependency out of wheel metadata (#1792) (
03fbc02b7) by @AlpinDale - feat(cli): restore
aphrodite tokenizertokenizer-only server (#1791) (07449f1b5) by @AlpinDale - fix(ci): pin ROCm base image and fix empty Metal reconcile (#1790) (
634bc6216) by @AlpinDale - chore(sync): port vLLM through 255f14599 (#1787) (
11c991b7d) by @AlpinDale
Full Changelog: https://github.com/dphnAI/sonar/compare/v0.24.1...v0.25.0
- fix(ci): serialize CUDA builds on the shared runner (#1799) (
- v0.24.12026-09-11 · 2026-09-11 20:40 UTC
查看更新说明
What's Changed
- chore: change aphrodite ascii art to sonar (#1785) (
82b0cd8c2) by @lucyknada
Full Changelog: https://github.com/dphnAI/sonar/compare/v0.24.0...v0.24.1
- chore: change aphrodite ascii art to sonar (#1785) (
- v0.24.02026-09-08 · 2026-09-08 15:35 UTC
查看更新说明
What's Changed
- fix(docs): align Sharp dependency with Astro (
dc4e975c5) by AlpinDale - fix(ci): use managed Python for CPU wheel builds (#1780) (
1055453c8) by @AlpinDale - feat: add per-request phrase suppression with rollback (#1778) (
73b46abb3) by @AlpinDale - fix: restore hybrid DCP handling and repair sync test fixtures (
de21128fa) by AlpinDale - [sync] [Bugfix] Defer adaptive verification until after kernel warmup (#55455) (
3bef3dc0c) by AlpinDale - [sync] [CI] Align extraction test with canonical auxiliary layer order (#55457) (
f56b885a4) by AlpinDale - [sync] [Frontend] Expose multimodal metadata for disaggregated prefill (#54659) (
01daa08e0) by AlpinDale - [sync] [Bugfix][KV Offload] Stop offloading the final sampled token's KV slot (#54288) (
d33f08f8f) by AlpinDale - [sync] [Bugfix][KV Offload] Fix SWA store reachability during chunked prefill (#54362) (
78f10e1f3) by AlpinDale - [sync] [Bugfix] Fall back to T1 when ARC cannot reclaim enough entries from T2 (#55461) (
ed99e6ec7) by AlpinDale - [sync] [Bugfix][KV Offload] Skip cleaned-up async lookup batches (#55075) (
b9fa30c3b) by AlpinDale - [sync] [Perf] Use SDPA for BLIP-2 Q-Former attention (#55285) (
a02103572) by AlpinDale - [sync] [Kimi K3] Support internal prefix checkpoints with partial prefix caching and spec-decoding (#53614) (
5909fa1d1) by AlpinDale - [sync] Validate scale-out multimodal data before engine handoff (#51898) (
6e56e9cca) by AlpinDale - [sync] [Kernel] Add fused MoE tuned config for E=256,N=512 on NVIDIA A100 80GB PCIe (#55511) (
5c91ebd3f) by AlpinDale - [sync] [CPU] [Feat] Add native AMX-FP8 attention impl for Diamond Rapids (#49410) (
bef33149b) by AlpinDale - [sync] [Core] Sync DP state on the first step of a wave (#52957) (
cbc932146) by AlpinDale - [sync] [Bugfix][Multimodal] Bound renderer warmup to the prefill token budget (#55448) (
069b86e11) by AlpinDale - [sync] [Kernel][HY V4] Add Triton iHC pre/post fallback (#55059) (
4794ffa76) by AlpinDale - [sync] [Bugfix][Kernel] Build fused GDN MTP decode for SM110 (#53835) (
f87b9b5a8) by AlpinDale - [sync] [Bugfix][Qwen4Exp] fix state index strides in fused PLE conv (#55375) (
f6ebe7238) by AlpinDale - [sync] [Kernel] Fall back from persiste
- fix(docs): align Sharp dependency with Astro (
- v0.23.02026-07-31 · 2026-07-31 05:08 UTC
查看更新说明
What's Changed
- fix(release): apply manylinux tag before PyPI upload (
795396a3a) by AlpinDale - fix(release): attach all wheels to GitHub releases (#1749) (
ba857e9b9) by @AlpinDale - fix(build): package native artifacts in CUDA wheels (#1748) (
d23fda737) by @AlpinDale - fix(moe): support Kimi K3 DeepGEMM gather shape (#1747) (
a4a09745f) by @AlpinDale - fix(ci): allow execution in ROCm build cache (
6586b2889) by AlpinDale - fix(ci): isolate wheel builder storage (
a646aa2c4) by AlpinDale - fix(ci): pin ROCm backfill build driver (
c1279d75a) by AlpinDale - fix(ci): persist incremental ROCm build state (
4ac0eb0bb) by AlpinDale - docs: correct installer platform list (
2be97a6fc) by AlpinDale - docs: list automatic installer platforms (
4f8f6aa52) by AlpinDale - docs: update stale vLLM references (
d41a3ee16) by AlpinDale - refactor: remove vLLM compatibility names (
aae7ceb48) by AlpinDale - fix(sync): complete repository namespace port (
db6c97167) by AlpinDale - [sync] [ROCm]Migrating Deepseek V3.2 to vllm/models/deepseek_v32/ (#47207) (
1a6353405) by AlpinDale - [sync] [MyPy][1/N] Fix mypy errors in some tests/ directories and enforce follow-imports=silent (#49570) (
e1f8de1f6) by AlpinDale - [sync] docs(security): document Ray cluster trust model and env var propagation (#50397) (
6dbfb4973) by AlpinDale - [sync] [CPU] Bump up CPU kernels to latest version (#50387) (
da866b35c) by AlpinDale - [sync] [New model] Kimi K3 (#50000) (
9c06da9f0) by AlpinDale - [sync] [Test][ROCm] Account for gfx950 FP8 RMSNorm rounding (#49839) (
898ae52a7) by AlpinDale - [sync] [CI] Stabilize speculator memory teardown (#50284) (
d01367531) by AlpinDale - [sync] [CI][ROCm] Stabilize LLM GC teardown check (#50340) (
eeb1d2f8c) by AlpinDale - [sync] [Frontend] Lazily initialize chat media connectors (#49914) (
c1c9538a9) by AlpinDale - [sync] [ROCm] Add AITER FP8 ViT encoder attention (#49937) (
a28f50621) by AlpinDale - [sync] advance vllm-sha to 0028fc8d8 ([
580346f91](https://github.com/dphnAI/sonar/commit/580346f9163f110caaf5949498b61cde
- fix(release): apply manylinux tag before PyPI upload (
- v0.22.02026-07-19 · 2026-07-19 20:37 UTC
查看更新说明
What's Changed
- feat: add native Metal support by @AlpinDale in https://github.com/dphnAI/sonar/pull/1668
- chore: optimize metal backend performance by @AlpinDale in https://github.com/dphnAI/sonar/pull/1669
- perf: optimize GDN performance on Metal by @AlpinDale in https://github.com/dphnAI/sonar/pull/1670
- fix: logging messages in metal by @AlpinDale in https://github.com/dphnAI/sonar/pull/1671
- fix: gemma-4 with exllamav3 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1672
- feat: add dflash support for gemma-4 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1673
- sync: update to upstream 13c49f9845 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1678
- [sync] vLLM 2026-07-04 — 13 commit(s) (13c49f984..d0a258477) by @AlpinDale in https://github.com/dphnAI/sonar/pull/1679
- docs: rebrand aphrodite to sonar by @AlpinDale in https://github.com/dphnAI/sonar/pull/1681
- [sync] vLLM 2026-07-04 — 2 commit(s) (d0a258477..d63c8e944) (stopped early at d63c8e944) by @AlpinDale in https://github.com/dphnAI/sonar/pull/1680
- [sync] vLLM 2026-07-04 — 63 commit(s) (d63c8e944..4a6bf3c77) by @AlpinDale in https://github.com/dphnAI/sonar/pull/1682
- fix: restore APHRODITE_USE_PRECOMPILED by @AlpinDale in https://github.com/dphnAI/sonar/pull/1683
- feat: add DeepSeek Sparse Attention kernels for sm89 (ada) by @AlpinDale in https://github.com/dphnAI/sonar/pull/1684
- chore: pre-commit baseline by @AlpinDale in https://github.com/dphnAI/sonar/pull/1685
- [sync] vLLM 2026-07-06 — 91b564730..9fde043f5 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1688
- [sync] vLLM 2026-07-07 — 40cc2e832..d6875196a by @AlpinDale in https://github.com/dphnAI/sonar/pull/1689
- [sync] vLLM 2026-07-08 — d891b9bd5..f7fc0ca99 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1690
- [sync] vLLM 2026-07-08 — 567a78432..f7fc0ca99 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1691
- [sync] vLLM 2026-07-08 — 5e975eae1..5d5fab006 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1692
- [sync] vLLM 2026-07-08 — c0e8e1f12..a5d19cbb9 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1693
- fix(sampler): avoid IndexError on empty output_token_ids subset by @AlpinDale in https://github.com/dphnAI/sonar/pull/1695
- [sync] vLLM 2026-07-09 — 089e41287..2c17d33f4 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1694
- test(moe): scale modelopt_fp4 tolerance by k at all sizes by @AlpinDale in https://github.com/dphnAI/sonar/pull/1696
- fix(quantization): break flashinfer_utils circular import via lazy MoEActivation by @AlpinDale in https://github.com/dphnAI/sonar/pull/1697
- style: apply pre-commit fixes (ruff format/lint + spdx headers) by @AlpinDale in https://github.com/dphnAI/sonar/pull/1698
- [sync] vLLM 2026-07-09 — b8c7c8653..429f40574 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1699
- [sync] vLLM 2026-07-09 — a07765c6b..b0dec2a11 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1701
- [sync] vLLM 2026-07-09 — 2ded1b24e..ea0fa34f4 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1702
- feat: build qutlass fp4 kernels for SM110 (Thor) via the SM100 path by @AlpinDale in https://github.com/dphnAI/sonar/pull/1703
- fix: force 32 MiB cuBLAS workspace on Thor (SM 11.0) by @AlpinDale in https://github.com/dphnAI/sonar/pull/1704
- fix: point test assets back to the vllm-public-assets S3 bucket by @AlpinDale in https://github.com/dphnAI/sonar/pull/1705
- feat: bump torch to 2.13.0 (torchvision 0.28.0, triton 3.7.1) by @AlpinDale in https://github.com/dphnAI/sonar/pull/1706
- feat: swordfish kernels for Blackwell by @AlpinDale in https://github.com/dphnAI/sonar/pull/1707
- [sync] vLLM 2026-07-12 — 766469a4c..83762b77b by @AlpinDale in https://github.com/dphnAI/sonar/pull/1708
- [sync] vLLM 2026-07-12 — 5f8e73cb8..4c81772e8 by @AlpinDale in https://github.com/dphnAI/sonar/pull/1709
- [sync] vLLM 2026-07-15 — e26264f3e..647213129 by @AlpinDale in https://github.com/dphnAI/so
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。

Sonar is an inference engine for Hugging Face-compatible language and multimodal models. It provides continuous batching, paged KV-cache management, optimized kernels, quantization, speculative decoding, and distributed serving.
Sonar is based on vLLM. It includes additional model and quantization formats, sampling methods, kernels, platforms, and deployment features. It serves production workloads for the Dolphin Inference Network and PygmalionAI.
Documentation
Read the documentation at sonar.dphn.ai.
- Installation
- Supported models
- Quantization support
- Server arguments
- Optimization
- Parallelism
- Production deployment
The model, quantization, and server-argument references are generated from the current source tree.
Install
Run the automatic installer:
curl -fsSL https://sonar.dphn.ai/install.sh | bash
The installer supports Linux x86-64 (NVIDIA CUDA, AMD ROCm, or CPU), Linux Arm64 (NVIDIA CUDA or CPU), and Apple silicon macOS (Metal).
Use the complete installation guide for AMD ROCm, Intel XPU, CPU, Apple silicon, Google TPU, Docker, WSL 2, source builds, and nightly wheels.
Serve a model
sonar serve Qwen/Qwen3-0.6B \
--served-model-name qwen3
The server listens on http://127.0.0.1:2242 by default. It provides
OpenAI-compatible APIs, health checks, metrics, and an OpenAPI schema.
See the OpenAI-compatible API guide for streaming, embeddings, tool calls, reasoning output, and Sonar request parameters.
Key features
- Continuous batching and paged KV-cache management
- Prefix caching enabled by default
- Tensor, pipeline, data, and expert parallelism
- Multi-node multiprocessing without a Ray cluster
- Prefill/decode disaggregation through NIXL and other KV connectors
- Quantized weights and FP8 KV cache
- Speculative decoding with MTP, EAGLE, DSpark, DFlash, n-gram, and other methods
- Structured output, reasoning parsers, and automatic tool calling
- Image, audio, and video model support
- LoRA adapter serving
- Prometheus metrics and health endpoints
- OpenAI, Anthropic, pooling, scoring, reranking, transcription, and Kobold APIs
Support depends on the model, device, data type, and quantization method. Check the generated model matrix and quantization matrix before deployment.
Read the optimization guide before you tune scheduler, cache, compilation, quantization, or speculative decoding settings.
Development
git clone https://github.com/dphnAI/sonar.git
cd sonar
uv venv --python 3.13 --seed --prompt sonar
source .venv/bin/activate
SONAR_USE_PRECOMPILED=1 \
uv pip install --editable . --torch-backend=cu130