RelayServe
RelayServe is a minimal LLM inference server that adapts to heterogeneous devices.
Quick start
Install from PyPI:
pip install relayserve
relayserve
Defaults:
- HTTP server:
:8080 - Endpoints:
GET /healthzGET /v1/modelsPOST /v1/chat/completionsGET /metricsGET /debug/shardPOST /v1/chat/pretty(colorized text response)
- Backends: set
RELAYSERVE_BACKENDSto comma-separated llama.cpp servers
Environment
RELAYSERVE_PORT(default8080)RELAYSERVE_MODEL_ID(defaultrelay-gguf)RELAYSERVE_BACKENDS(comma-separated, e.g.http://localhost:8081,http://localhost:8082)RELAYSERVE_BATCH_SIZE(default4)RELAYSERVE_BATCH_WAIT_MS(default10)RELAYSERVE_METRICS_MAX_ITEMS(default1000)RELAYSERVE_TOTAL_LAYERS(default32)RELAYSERVE_PRETTY_JSON(set1for readable JSON responses)RELAYSERVE_PRETTY_DEFAULT(default1, set0for JSON by default)
Spawning llama.cpp backends
export LLAMA_SERVER_PATH=/path/to/llama.cpp/server
export LLAMA_MODEL_PATH=/path/to/models/phi-3-mini.gguf
export LLAMA_PORTS=8081,8082
python scripts/spawn_backends.py
Then run the RelayServe server with:
export RELAYSERVE_BACKENDS=http://localhost:8081,http://localhost:8082
relayserve
Metadata
Release files for relayserve 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| relayserve-1.1.tar.gz | 13.7 kB | Without provenance | Details for relayserve-1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| relayserve-1.1-py3-none-any.whl | Python 3 | none | any | Details for relayserve-1.1-py3-none-any.whl |
Total release size: 30.8 kB
Release files / relayserve-1.1.tar.gz
| Download URL | relayserve-1.1.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
566f3744885974e773d1f5c855541796ca6f38fe5ba44958a957f611619b13a8
|
|
BLAKE2b-256 checksum How to use checksums |
a9e3effd4b6cd089dd6bf0012d881516aae566a994fe651c3d49434d370620f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / relayserve-1.1-py3-none-any.whl
| Download URL | relayserve-1.1-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1ac140ac51d29de9c3546bd165c6304ad4068ff6b9173fca2e2a08a20b5f02b
|
|
BLAKE2b-256 checksum How to use checksums |
d7ec4d059074f3f78bd165b5ddfc600e6e73e1206768b980530037b0e5e847af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for relayserve 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.