Skip to main content

ptloader

Load zip-based PyTorch checkpoints as NumPy arrays, without installing torch at runtime.

Quickstart

uv add ptloader
import ptloader

state = ptloader.load("model.pt")
print(type(state["layer.weight"]))  # numpy.ndarray

ptloader.load(...) supports str | pathlib.Path | BinaryIO and converts tensors to numpy.ndarray while preserving nested container structure.

Metadata

Release files for ptloader 0.3.0

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

Source distribution (sdist)

Source distribution for ptloader 0.3.0
File Size Uploaded Provenance Actions
ptloader-0.3.0.tar.gz 4.5 kB Without provenance Details for ptloader-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ptloader 0.3.0
File Interpreter ABI Platform Actions
ptloader-0.3.0-py3-none-any.whl Python 3 none any Details for ptloader-0.3.0-py3-none-any.whl

Total release size: 10.0 kB

Release files / ptloader-0.3.0.tar.gz

Download URL ptloader-0.3.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4d97502aea650c0f9b2ec6f8c0563f9483829aedcbc1951392bd58a6c79e0bfd
BLAKE2b-256 checksum
How to use checksums
a6e67be97b01d4fb7c4989d42f8229f8546f69730ea05ceea56015c86530602b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ptloader-0.3.0-py3-none-any.whl

Download URL ptloader-0.3.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08bceef691a5c5fa8e7dd21563e0c8d2e0e3b5bfc0169570a0fe8bd6295300b8
BLAKE2b-256 checksum
How to use checksums
e0a8cd541220b579ebc8b8a3f490882c7329c81932c1a30004991ecdfc4d3a0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ptloader 0.3.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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