Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Piper Loader

End-to-end weight loading, multi-tier host/NVMe caching, GPU streaming, and online LoRA hot-swapping for Piper Engine.

  • Rust core + thin Python wrapper (maturin / PyO3), single wheel per OS covering Linux + Windows and NVIDIA (CUDA) + AMD (ROCm/HIP) via runtime dynamic loading of cudart / amdhip64 (no build-time GPU SDK).
  • Disk-native .safetensors ingestion (single + sharded index, file-identity fingerprinting, metadata-only FileSlice.reshape(), zero-read dim=0/dim=1 narrow/split with windowed sequential NVMe reads, and format-agnostic QuantizedSpec.narrow/split for SP/TP/EP sharding) plus optional in-memory CPU tensor registration.
  • Unified 3-tier HostStore shared across models and 2–4 local GPUs:
    • Tier 2a: Portable pre-pinned slab arena ranked by H2D transfer heat.
    • Tier 2b: Private pageable slab arena using remaining system RAM (critical for Windows WDDM and fast Diffusion ↔ LLM model switching).
    • Direct NVMe + Bounce Ring: Multi-threaded O_DIRECT / FILE_FLAG_NO_BUFFERING reads streamed through a sticky pre-pinned ring.
  • Two GPU loaders on one deli-ticket event ring:
    • ModelLoader + stream(blocks, loader, next=...) / use(module, loader) — module-first hybrid residency (load(vram_budget=None) for zero-overhead CUDA/HIP Graph all-resident mode, load(vram_budget=...), set_vram_budget, unload, and overlapped ping-pong streaming backed by HostStore.transfer_batch, with no hidden nn.Module hooks).
    • ExpertPool + MoESlotLayout — full-VRAM static views (500+ TPS), load(vram_budget=...) / unload() lifecycle, zero-copy piper_kernels.ops.MoEWeights slab views, and partial-offload 1-DMA packed expert slabs with live GPU expert_to_slot, compact miss-list path, waves() fallback, 1-wave prefill scratch, and pluggable Rust eviction policies (s3_fifo, w_tinylfu, lru).
  • Format-agnostic quantized & online adapter bridge: plugs into piper-kernels QuantizedWeight transcode and in-place multi-LoRA / dense / per-path strength / meta / broadcast merge with adapter_epoch hot-swap.
  • Single-process multi-GPU CollectiveGroup: bridges dynamic cudart / amdhip64 FFI (full-mesh P2P enablement, RAII mapped coherent pinned host buffers, and Windows WDDM stream flushes) with piper_kernels.collectives for CUDA/HIP Graph-safe 2–4 GPU all_reduce (including fused epilogues), reduce_scatter, all_gather, and barrier.

Development

See AGENTS.md for engineering rules and docs/development.md for full setup, review, and release instructions.

# Run pure-Rust core tests (CPU, uses FakeGpuRuntime)
cargo test --workspace

# Build & install Python extension into local uv venv
uv sync --dev
uv run maturin develop

# Run Python test suite, lint, and typecheck
uv run pytest tests -q
uv run ruff check .
uv run pyright

Metadata

Release files for piper-loader 0.1.0rc2

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

Source distribution (sdist)

Source distribution for piper-loader 0.1.0rc2
File Size Uploaded Provenance Actions
piper_loader-0.1.0rc2.tar.gz 173.0 kB With provenance Details for piper_loader-0.1.0rc2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for piper-loader 0.1.0rc2
File Interpreter ABI Platform Actions
piper_loader-0.1.0rc2-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for piper_loader-0.1.0rc2-cp314-cp314-win_amd64.whl
piper_loader-0.1.0rc2-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for piper_loader-0.1.0rc2-cp314-cp314-manylinux_2_28_x86_64.whl

Total release size: 1.2 MB

Release files / piper_loader-0.1.0rc2.tar.gz

Download URL piper_loader-0.1.0rc2.tar.gz
Size 173.0 kB
Tags Source
SHA-256 checksum
How to use checksums
68fcd8d23a530aaaf11a522e68c6be79e5604196809454374f5ef35abff2bc8a
BLAKE2b-256 checksum
How to use checksums
545c75f1b7886315656cdcf54e25cfc18ce2e77f0cb655b411f451017d85f3ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Release files / piper_loader-0.1.0rc2-cp314-cp314-win_amd64.whl

Download URL piper_loader-0.1.0rc2-cp314-cp314-win_amd64.whl
Size 455.1 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
81a70277e8cae671b5b6d67b2806df36720c7f2d2c811c7676feefab1976787e
BLAKE2b-256 checksum
How to use checksums
36d428ae24476fefdc597f668b788b5f968006f4b5c4f53f8ad1ca914e65da2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Release files / piper_loader-0.1.0rc2-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL piper_loader-0.1.0rc2-cp314-cp314-manylinux_2_28_x86_64.whl
Size 612.8 kB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1e58a1a2d7743aec4ffde839fb44c3ebf0ccfd33aae69124dcadf4c5b4446fe4
BLAKE2b-256 checksum
How to use checksums
7ebc1028b88bd07b3a6787a953377aaf8047dcde1314030b7922d1469ea5a5cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Security for piper-loader 0.1.0rc2

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.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for piper_loader-0.1.0rc2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

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.

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