HyperCache: Host-Local NVMe Caching and Zero-Copy Direct Block DMA / GPUDirect Storage Acceleration for AI Workloads
pip install hypercache-io==0.9.3 Copy PIP instructions
The hypercache Python package integrates transparently into AI training and inference pipelines (PyTorch, Hugging Face, Safetensors) to provide zero-copy Direct Block DMA / GPUDirect Storage (GDS) checkpoint loading.
# Install from PyPI (imports as `import hypercache`) pip install hypercache-io # Or install in editable mode from the repository cd client-py pip install -e . # Optional GPU Direct Storage acceleration dependencies pip install "hypercache-io[gpu]" --extra-index-url https://pypi.nvidia.com Usage Examples 1. PyTorch & Safetensors Loading import torch import safetensors.torch from hypercache.fsspec_fs import register_hypercache_fsspec # Automatically registers hypercache:// protocol register_hypercache_fsspec() # Load tensors directly from striped NVMe storage into VRAM/Host memory with open("hypercache://models/llama-3/weights.safetensors", "rb") as f: tensors = safetensors.torch.load(f.read()) 2. Direct Python Client API from hypercache.client import HyperCacheClient from hypercache.datapath import get_data_reader # Connect to local Control Plane Daemon (auto-resolves /run/hypercache/hypercache.sock) client = HyperCacheClient() # Check daemon health & discovered drives devices = client.get_devices() print(f"Discovered {len(devices)} active striped devices.") # Locate checkpoint layout = client.locate("hypercache://models/llama-3/weights.safetensors", auto_ingest=True) if layout.is_hit: reader = get_data_reader() data = reader.read_chunks(layout.chunk_layout, layout.object_size) print(f"Read {len(data)/(1024*1024):.2f} MiB at hardware line rate!") Running Unit Tests pytest tests/ Project links Homepage Issues Repository Key dates PyPI data Data sourced directly from PyPI's database. Released: Oct 31, 2026 Latest release 1 maintainer PyPI data Data sourced directly from PyPI's database. neoth Credits Author: Looe Labs
ai pytorch safetensors vllm nvme gpudirect cache s3 fsspec
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




