Skip to main content

AOKit

Ahead-of-time compilation toolkit

aokit is a lightweight set of tools sitting on top of PyTorch ahead-of-time compilation APIs (e.g. torch.export.export and torch._inductor.aot*) to help organize, package, and distribute AoT artifacts within the Hugging Face ecosystem.

Extending PyTorch AOTInductor, aokit provides:

  • Regional compilation: compiles and loads individual submodules independently, with support for dynamic weight swapping even after quantization (e.g. with torchao)
  • Weight-less packaging: produces lightweight, composable, and reusable artifacts while decoupling graph and weights management
  • ZeroGPU compatibility: leverages lazy execution for seamless integration
  • kernels integration: automatically packages and loads required kernels (coming soon)

Installation

pip install aokit

Quickstart

Coming soon

API documentation

Coming soon

Metadata

Release files for aokit 0.1.1

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

Source distribution (sdist)

Source distribution for aokit 0.1.1
File Size Uploaded Provenance Actions
aokit-0.1.1.tar.gz 5.6 kB With provenance Details for aokit-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 13.1 kB

Release files / aokit-0.1.1.tar.gz

Download URL aokit-0.1.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
93558a0f2e4ad16b478667eadf7b66ecd46bc43680249dafb1b54fe4d4a18742
BLAKE2b-256 checksum
How to use checksums
48e7a80f42302c1979a7f20db3f39247b11a572f49efb9eaad0fccd97c2e4df5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 29, 2026.

Transparency log

Release files / aokit-0.1.1-py3-none-any.whl

Download URL aokit-0.1.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bbd449bb5372e8c86d32b74e670c2b366f76000b9500e921c9b11f00958217f
BLAKE2b-256 checksum
How to use checksums
f93c135172b6f2695418915ef74fb0fcd04006622c3c8c9b024d658b7d5ea5d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 29, 2026.

Transparency log

Security for aokit 0.1.1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aokit-0.1.1.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 May 29, 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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