torchref-kernels
Prebuilt CPU kernels for TorchRef, written in Rust.
The wheels link neither libtorch nor a specific CPython version (abi3), so one wheel per platform works with every torch and Python version TorchRef supports, and nothing is compiled when TorchRef is imported. On x86-64 each kernel is built for several microarchitecture levels and the best one for the running CPU is chosen on first use.
This package is an implementation detail of TorchRef and is installed with it; its entry points take raw tensor pointers and are not a public API.
Development
pip install -e ./kernels # or: maturin develop --release -m kernels/Cargo.toml
cargo test --manifest-path kernels/Cargo.toml
Rust changes are picked up only after rebuilding. torchref_kernels.build_info() reports
the build profile, the selected CPU variant and a hash of the sources it was built from.
Metadata
Release files for torchref-kernels 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| torchref_kernels-0.2.0.tar.gz | 26.9 kB | With provenance | Details for torchref_kernels-0.2.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| torchref_kernels-0.2.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for torchref_kernels-0.2.0-cp310-abi3-win_amd64.whl |
| torchref_kernels-0.2.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details for torchref_kernels-0.2.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| torchref_kernels-0.2.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details for torchref_kernels-0.2.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| torchref_kernels-0.2.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for torchref_kernels-0.2.0-cp310-abi3-macosx_11_0_arm64.whl |
Total release size: 1.7 MB
Release files / torchref_kernels-0.2.0.tar.gz
| Download URL | torchref_kernels-0.2.0.tar.gz |
|---|---|
| Size | 26.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ab7bdcaba3a7649b2c9dcdbc578a7fea22391c71a602c2a12a52a76991e818d
|
|
BLAKE2b-256 checksum How to use checksums |
532e51da12035c09e9f101738afe19c0e8ac4ec6a1a66501f606144ad88962b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 5, 2026.
Transparency logRelease files / torchref_kernels-0.2.0-cp310-abi3-win_amd64.whl
| Download URL | torchref_kernels-0.2.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 396.1 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e47b49e55b23865018b391f6eeb10fcc336930eb4cb13025c274c786a5ece5f5
|
|
BLAKE2b-256 checksum How to use checksums |
1deedc34755e4f6abe99d78cf160b2a74f34f827664eb34071c3346bf3cde9c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 5, 2026.
Transparency logRelease files / torchref_kernels-0.2.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | torchref_kernels-0.2.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 510.2 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8b4aef6517c9a108cf5dd39cf0a3ca93a3d3fb1a189ba89f6e18e0be53558d23
|
|
BLAKE2b-256 checksum How to use checksums |
b83d1d31d951ac90c081cfaa8a42e4dc79699e7e76d3c25f72bf6b9713273b45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 5, 2026.
Transparency logRelease files / torchref_kernels-0.2.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | torchref_kernels-0.2.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 381.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
e031f6cf8d57d6688f005841fd4d1585a3c5bb561778f3683e19fa87333403f0
|
|
BLAKE2b-256 checksum How to use checksums |
ec4d9589e42513927e86e879f9b189782f5cd7d8234a9df05d9ea5f36e1cf630
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 5, 2026.
Transparency logRelease files / torchref_kernels-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | torchref_kernels-0.2.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 356.9 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
51d52da9fba0694e388094b47b0dbc41cbaae5a13eba4d748f67f918113ba3bd
|
|
BLAKE2b-256 checksum How to use checksums |
59919870e340fcd65eec91c8fb279fc8416634a1bf64de3c10ce865429ceb26c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 5, 2026.
Transparency logSecurity for torchref-kernels 0.2.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.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for torchref_kernels-0.2.0.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 Nov 5, 2026.
Transparency logA 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.