Skip to main content

trnsci

License Docs

Scientific computing suite for AWS Trainium via NKI. Six focused libraries providing the cu* equivalents the Neuron SDK doesn't ship.

Suite

Project NVIDIA analog Scope
trnfft cuFFT FFT, complex tensors, complex NN layers
trnblas cuBLAS Level 1–3 BLAS, batched GEMM
trnrand cuRAND Philox PRNG, Sobol/Halton QMC, LHS
trnsolver cuSOLVER Cholesky/LU/QR, Jacobi eigh, CG/GMRES
trnsparse cuSPARSE CSR/COO, SpMV/SpMM, Schwarz screening
trntensor cuTENSOR einsum with contraction planning, CP/Tucker

Install

# Meta-package with all six sub-projects
pip install trnsci[all]

# Individual components
pip install trnsci[fft]     # just trnfft
pip install trnsci[blas]    # just trnblas
# ... etc

# On Neuron hardware
pip install trnsci[all,neuron]

Development install

git clone git@github.com:trnsci/trnsci.git
cd trnsci
make install-dev   # pip install -e on each sub-project + umbrella
make test-all      # run pytest across all sub-projects

Cross-project example

python examples/quantum_chemistry/df_mp2_synthetic.py --demo

DF-MP2 energy evaluation composing trnblas (half-transforms), trnsolver (Cholesky of DF metric), and trntensor (einsum contraction). See also examples/nvidia_samples/ for direct ports of canonical NVIDIA CUDA samples.

Status

All sub-projects are Alpha. CPU/PyTorch fallback is functional end-to-end. NKI kernels are scaffolded across the suite; on-hardware validation is the next milestone.

Community

License

Apache 2.0 — Copyright 2026 Scott Friedman

Metadata

Release files for trnsci 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 trnsci 0.1.0
File Size Uploaded
trnsci-0.1.0.tar.gz 40.4 kB Details

Built distribution (wheel)

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

Total release size: 47.0 kB

Release files / trnsci-0.1.0.tar.gz

Download URL trnsci-0.1.0.tar.gz
Size 40.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1c05eb4c8addd4fe230886ec76326a0811ea7597c75cbbdcb8b378be19114722
BLAKE2b-256 checksum
How to use checksums
5f5e9ea74caa2398e2b9492a240c3a5cd98c844bd0c248ebac8330a9f1c1b157
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 Apr 13, 2026.

Transparency log

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

Download URL trnsci-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7291764850565da2c74b4b73839cf13fa1acd922b4ded761fe26ee2e066c982
BLAKE2b-256 checksum
How to use checksums
8d1f04919f33960084c2aa467478e35be0e0d377e357b041a21b269ae2653fb9
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 Apr 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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