pie-server
What pie serve boots (controller, gateway, worker, the built-in inferlets),
inside your Python process on the native GPU engines. Clients connect as they
would to a pie serve: over WebSocket with pie-client, or over the OpenAI /
Anthropic / Gemini HTTP routes.
import asyncio
from pie.config import Config, ModelConfig, ServerConfig
from pie.server import Server
async def main():
cfg = Config(server=ServerConfig(port=0), model=ModelConfig(hf_repo="Qwen/Qwen3.5-0.8B"))
async with Server(cfg) as server: # resolves once the model is loaded
client = await server.connect() # a PieClient over ws
print(server.http_url) # the OpenAI / Anthropic / Gemini routes
asyncio.run(main())
Config is what pie serve --config reads; Config.to_toml() renders it.
A Server garbage-collected without leaving the context still stops the
engine, on a background thread.
The wheel carries every engine its platform supports (Linux: CUDA, Vulkan,
wgpu; macOS: Metal, wgpu; Windows: CUDA, Vulkan); EngineConfig.type picks
one at boot. The Node.js twin is @pie-project/server (javascript/server).
Building
cd python/server
uv run --with maturin maturin develop --features cuda # or metal, vulkan, wgpu; several at once
The extension is abi3 (Python 3.10+), so one wheel per platform.
Metadata
Release files for pie-server 0.5.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 | |
|---|---|---|---|
| pie_server-0.5.1.tar.gz | 4.6 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pie_server-0.5.1-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| pie_server-0.5.1-cp310-abi3-manylinux_2_35_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.35+ x86-64 | Details |
| pie_server-0.5.1-cp310-abi3-manylinux_2_35_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.35+ ARM64 | Details |
| pie_server-0.5.1-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 102.1 MB
Release files / pie_server-0.5.1.tar.gz
| Download URL | pie_server-0.5.1.tar.gz |
|---|---|
| Size | 4.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50697076abd138a6006618d3fab0e4b62c53b475f22d72cadbecd0d460299315
|
|
BLAKE2b-256 checksum How to use checksums |
82d2ed6a6f261c723e2c52f9e675cbb9d0e84e9f0e1ad0b2a3004a891e954740
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pie_server-0.5.1-cp310-abi3-win_amd64.whl
| Download URL | pie_server-0.5.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 25.2 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f9d55faabad0325ca15bd6c3b5983cc2589eb7a579309c13be32f2567af17fb2
|
|
BLAKE2b-256 checksum How to use checksums |
f3aab13174eb8c329028aaec4c1038bcc4c289db70645c692177b051c458ef21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pie_server-0.5.1-cp310-abi3-manylinux_2_35_x86_64.whl
| Download URL | pie_server-0.5.1-cp310-abi3-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 26.9 MB |
| Tags | CPython 3.10 Linux glibc 2.35+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f51742cc36418be48c1d6f30583cc190007013e842072359ffa78799ab8f5278
|
|
BLAKE2b-256 checksum How to use checksums |
3616ade6f08db7ea0e1d5d7eeb9191e55b7d4781d8f647d4c2f8e5495ceae5ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pie_server-0.5.1-cp310-abi3-manylinux_2_35_aarch64.whl
| Download URL | pie_server-0.5.1-cp310-abi3-manylinux_2_35_aarch64.whl |
|---|---|
| Size | 25.0 MB |
| Tags | CPython 3.10 Linux glibc 2.35+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
7ab20033db34860f539f93d628bf99112134f667454ceda264e3cd0fc7d7091a
|
|
BLAKE2b-256 checksum How to use checksums |
adae0e6d033b13c6c93c0fda9c5e1b16f70275cd2dfe40e532493f7f348ea2c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pie_server-0.5.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | pie_server-0.5.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 20.3 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8a0c269c2417df17d277ae607dda76bf0ed6f4cab845deffeace4ae36563a7aa
|
|
BLAKE2b-256 checksum How to use checksums |
83ec2c3b3b73e92e6d041951914b23477fba3e4130d5e992b7ae443c37bbcb9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|