Skip to main content

Serving LLMs at Scale

Project description

Breathing Life into Language

sonar

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.

Features

Quickstart

Install the engine (the Python package and CLI keep the historical aphrodite name for now):

pip install -U aphrodite-engine

Then launch a model:

aphrodite run Qwen/Qwen3.5-0.8B

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

Requirements

  • Operating System: Linux, Windows (WSL2)
  • Python: 3.10 to 3.13 (build from source for 3.14)

Build Requirements

  • CUDA >= 12

Notes

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

  2. You can view the full list of commands by running aphrodite run --help.

Acknowledgements

Sonar would have not been possible without the phenomenal work of other open-source projects. A (non-exhaustive) list:

Sponsors

Past and present, in alphabetical order:

Contributing

Everyone is welcome to contribute. You can support the project by opening Pull Requests for new features, fixes, or general UX improvements.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aphrodite_engine-0.22.0-cp38-abi3-manylinux1_x86_64.whl (290.6 MB view details)

Uploaded CPython 3.8+

File details

Details for the file aphrodite_engine-0.22.0-cp38-abi3-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for aphrodite_engine-0.22.0-cp38-abi3-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9fe930381563657c54b4d0b82457a400c179cb532505a4a99273a9ab5e1ea193
MD5 665a73740151263b3cf14655b473f9eb
BLAKE2b-256 ef4f170c7200116632c6dd477c1d04ab77432da9ccd43cded76d8110506f009f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page