Skip to main content

megakernel

A megakernel compiles a whole computation — up to an entire model's forward pass — into a single persistent GPU kernel: one launch, one resident working set, an in-kernel scheduler, instead of thousands of separate kernel launches bouncing activations through device memory.

Today this package ships a probe that measures, on your GPU, the two overheads a megakernel removes:

pip install megakernel
python -m megakernel
device               : <your GPU>
kernel enqueue cost  :    x.xx us  (CPU-side submit)
kernel launch tax    :    x.xx us  (end-to-end, tiny kernel)
device copy bandwidth:  xxxx.x GB/s

A decode step composed of ~500 kernel launches pays roughly y.yy ms/token
in launch tax alone, before any math or memory traffic. A megakernel pays
it once.

Requires a CUDA build of PyTorch (the probe reports a clear message otherwise). Also usable as a library: from megakernel import probe.

Roadmap

This name is the future home of a residency-first megakernel compiler currently in development: real models compiled to single persistent kernels, adoptable without rewriting anything. Watch this package for the first public release.

Contact: goinyadeng976@gmail.com

Metadata

Release files for megakernel 0.1.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 megakernel 0.1.0
File Size Uploaded Provenance
megakernel-0.1.0.tar.gz 2.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 7.1 kB

Release files / megakernel-0.1.0.tar.gz

Download URL megakernel-0.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c977ac54ee1b3bc25a52dde4b5574cc6d4a317fb2462456a0203e26db1195813
BLAKE2b-256 checksum
How to use checksums
26c21d0615ddaf5b439da8a28352ca97791de89efb2e0ce7a32b2599f624c3ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","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":null}

Release files / megakernel-0.1.0-py3-none-any.whl

Download URL megakernel-0.1.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53e668b126191f89585e99d45f6dd231c2b705a4cf8cd9613b4b16ff78eef306
BLAKE2b-256 checksum
How to use checksums
3d4ef4cb5a940162710092048ba370ade044295fbd9b21b6fc12c1d9455e8d6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","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":null}

Security for megakernel 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No 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