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.0rc3

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.0rc3
File Size Uploaded Provenance Actions
piper_loader-0.1.0rc3.tar.gz 176.8 kB With provenance Details for piper_loader-0.1.0rc3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for piper-loader 0.1.0rc3
File Interpreter ABI Platform Actions
piper_loader-0.1.0rc3-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for piper_loader-0.1.0rc3-cp314-cp314-win_amd64.whl
piper_loader-0.1.0rc3-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.0rc3-cp314-cp314-manylinux_2_28_x86_64.whl

Total release size: 1.3 MB

Release files / piper_loader-0.1.0rc3.tar.gz

Download URL piper_loader-0.1.0rc3.tar.gz
Size 176.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f3f03a8092c3ead68ed62422a94be9763f607ec7aa3b8fe8dc6d95207792a7f9
BLAKE2b-256 checksum
How to use checksums
d5784bd3c98b17921b8f7e7e9315c380950ba6db777dbe400f3b33f0562107a9
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.0rc3-cp314-cp314-win_amd64.whl

Download URL piper_loader-0.1.0rc3-cp314-cp314-win_amd64.whl
Size 474.7 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
0afb5e365c4a7599bef02521e413f6e1098bbd6fe9995c74d6f2ee488d122534
BLAKE2b-256 checksum
How to use checksums
5074879164f3f956f217939e6e857438632d9dc39fe947e18f14fc829b13e85d
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.0rc3-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL piper_loader-0.1.0rc3-cp314-cp314-manylinux_2_28_x86_64.whl
Size 632.7 kB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
19c196903222806500a91b69d0edcd9b160f46d410189dcc3c17a4aca338d84b
BLAKE2b-256 checksum
How to use checksums
726079c8e4cc8395a703ee73af0d8591766beeb03d675bd22d2238c3d9d2fb17
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.0rc3

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.0rc3.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