Skip to main content

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.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 torchref-kernels 0.2.1
File Size Uploaded Provenance Actions
torchref_kernels-0.2.1.tar.gz 27.8 kB With provenance Details for torchref_kernels-0.2.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for torchref-kernels 0.2.1
File Actions
torchref_kernels-0.2.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for torchref_kernels-0.2.1-cp310-abi3-win_amd64.whl
torchref_kernels-0.2.1-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.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
torchref_kernels-0.2.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for torchref_kernels-0.2.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
torchref_kernels-0.2.1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for torchref_kernels-0.2.1-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 1.8 MB

Release files / torchref_kernels-0.2.1.tar.gz

Download URL torchref_kernels-0.2.1.tar.gz
Size 27.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ece4e5c6b58c76f576389a3ef9e3bd3f7039ef2821c8e48ec774a7fef89fa4de
BLAKE2b-256 checksum
How to use checksums
804d9e1d33ba047a641f7959fc1257565e8390e266e6191d2a7b799c8ddfce9e
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 16, 2026.

Transparency log

Release files / torchref_kernels-0.2.1-cp310-abi3-win_amd64.whl

Download URL torchref_kernels-0.2.1-cp310-abi3-win_amd64.whl
Size 464.1 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
439f63e80634630532ec64d244f43a025e9c3767762cf4fc5a95fe5f40082928
BLAKE2b-256 checksum
How to use checksums
2790222ff6265656133d3327d025318d2e4f044ff0f276addd4858a3f1f50992
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 16, 2026.

Transparency log

Release files / torchref_kernels-0.2.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL torchref_kernels-0.2.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 582.5 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
1eb1f2aada0166d332c008e05e3c120aab3fcdedacc1390d286e85db1c3db984
BLAKE2b-256 checksum
How to use checksums
982bcc30efdda4d1cf49b17417c42c36969721b6303471cb1947862ca1d51c9e
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 16, 2026.

Transparency log

Release files / torchref_kernels-0.2.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL torchref_kernels-0.2.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 394.9 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
7d8b06de366c8adfe6966cbdfdc229f3666eab149a8f3e0b081300ee860face0
BLAKE2b-256 checksum
How to use checksums
13a84a64ac703a2cdd18141cc4ebf59c9e992aca6833597ad57894b40ea587fb
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 16, 2026.

Transparency log

Release files / torchref_kernels-0.2.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL torchref_kernels-0.2.1-cp310-abi3-macosx_11_0_arm64.whl
Size 365.1 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3af7fdd204af363c635ce0c35f19f16291fa0e48d362c1f41b3ef44bdb0e13be
BLAKE2b-256 checksum
How to use checksums
79b5974441ee247f6ee9674c43033e71da89c7a61cf8edcfb234c28831c698a2
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 16, 2026.

Transparency log

Security for torchref-kernels 0.2.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

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for torchref_kernels-0.2.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 Nov 16, 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.

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