Skip to main content
Pre-release

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

Tokamax

nightly PyPI version

Tokamax is a library of custom accelerator kernels. It provides highly optimized implementations of key operators, including mixture-of-experts building blocks like grouped matrix multiplication and token gathers/scatters, attention variants like paged attention, splash attention, gated deltanet, Kimi delta attention and multiheaded latent attention, and TopK computation. The operator portfolio will evolve over time to support the latest OSS models running on the latest hardware accelerators, including Google TPUs and NVIDIA GPUs. The library also provides foundational infrastructure to simplify kernel authoring, maintenance, and deployment; for example, features like autotuning, low-overhead benchmarking, and so on.

Tokamax kernels are typically built on top of JAX and Pallas, but also expose native PyTorch APIs on TPUs for developer convenience.

Documentation

Detailed documentation can be found at openxla.org/tokamax, including a list of supported ops on different hardware accelerators, benchmarking infrastructure, and autotuning.

Getting Started

Installation

The latest Tokamax PyPI release:

pip install -U tokamax

The latest bleeding edge version from Github, with no stability guarantees:

pip install git+https://github.com/openxla/tokamax.git

Usage Examples

Please see the Colab notebooks here for usage examples.

Contributing

Please see documentation on how to contribute and our code style guide.

Metadata

Release files for tokamax 0.0.18.dev20261030

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

Source distribution (sdist)

Source distribution for tokamax 0.0.18.dev20261030
File Size Uploaded Provenance Actions
tokamax-0.0.18.dev20261030.tar.gz 2.3 MB With provenance Details for tokamax-0.0.18.dev20261030.tar.gz

Built distribution (wheel)

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

Total release size: 5.4 MB

Release files / tokamax-0.0.18.dev20261030.tar.gz

Download URL tokamax-0.0.18.dev20261030.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
f8a01c6f8f881e02ce43e6210090dcdcca5bf65ddf704c36e88a959ff180cf9f
BLAKE2b-256 checksum
How to use checksums
29cdc1c253d2939e560cb35249ff8a8ff5c9e70e74176690c87c3792567f7dd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Oct 30, 2026.

Transparency log

Release files / tokamax-0.0.18.dev20261030-py3-none-any.whl

Download URL tokamax-0.0.18.dev20261030-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2d6f389d5f3a0be6f4fa1a6eb3e56bb5bf75a3d578ffcb9150aef621907ff9d1
BLAKE2b-256 checksum
How to use checksums
e238b53dd71a5e003e4a7b0176ca83761b5ae117844a3633e32b07ba26ecbf40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Oct 30, 2026.

Transparency log

Security for tokamax 0.0.18.dev20261030

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 tokamax-0.0.18.dev20261030.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 Oct 30, 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

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