Skip to main content

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pie-server 0.5.2
File Size Uploaded
pie_server-0.5.2.tar.gz 4.6 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pie-server 0.5.2
File
pie_server-0.5.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pie_server-0.5.2-cp310-abi3-manylinux_2_35_x86_64.whl CPython 3.10 abi3 Linux glibc 2.35+ x86-64 Details
pie_server-0.5.2-cp310-abi3-manylinux_2_35_aarch64.whl CPython 3.10 abi3 Linux glibc 2.35+ ARM64 Details
pie_server-0.5.2-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.2.tar.gz

Download URL pie_server-0.5.2.tar.gz
Size 4.6 MB
Tags Source
SHA-256 checksum
How to use checksums
840adbde2121dec7769896d59c3c4fc7ca4192d6a128ebc0bd491d361a264747
BLAKE2b-256 checksum
How to use checksums
8ba6659d0e12148786207586024fe20cfad137abc4ecb486003d4860e7661042
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.2-cp310-abi3-win_amd64.whl

Download URL pie_server-0.5.2-cp310-abi3-win_amd64.whl
Size 25.2 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
42fe5ca046f65ef54c272fe9b46cf859c68931cc8327281ee07fb92c82043f94
BLAKE2b-256 checksum
How to use checksums
b46d8393c543b55262b21e41c84bdce14e4ca2d9f458047507825578b37d470b
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.2-cp310-abi3-manylinux_2_35_x86_64.whl

Download URL pie_server-0.5.2-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
7fe6093a92af9ff844ad41a383e530a4d88aa35b8c995e09432dc6b45fdfd647
BLAKE2b-256 checksum
How to use checksums
3dab056f3e1f0ffcf73db0643b42985d07532810bf1fbfaccf8a1513cb2608ca
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.2-cp310-abi3-manylinux_2_35_aarch64.whl

Download URL pie_server-0.5.2-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
bcc005c2388bab2ec8fe7038f0c354b52b3ba973e396f285dfa5863db6349a1f
BLAKE2b-256 checksum
How to use checksums
a33da239a8a49cc1b7fe2f51d2775d574357285305b18d64461c1e1e96815884
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.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL pie_server-0.5.2-cp310-abi3-macosx_11_0_arm64.whl
Size 20.4 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d73081c17a04e11686c0eb77caf3877e3c543df62b65bc2aad9e16449e8337b5
BLAKE2b-256 checksum
How to use checksums
796e285c5efabb9be1f0442ebd3c3f55c6101fdb1956f2fed787b96f79b441e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.5.2 This release

5 release files

0.5.1

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page