Scientific computing suite for AWS Trainium via NKI (FFT, BLAS, RAND, SOLVER, SPARSE, TENSOR)
Project description
trnsci
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trnsci-0.1.0.tar.gz.
File metadata
- Download URL: trnsci-0.1.0.tar.gz
- Upload date:
- Size: 40.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c05eb4c8addd4fe230886ec76326a0811ea7597c75cbbdcb8b378be19114722
|
|
| MD5 |
2bb8ef0824e458a802b361bd4dc03a59
|
|
| BLAKE2b-256 |
5f5e9ea74caa2398e2b9492a240c3a5cd98c844bd0c248ebac8330a9f1c1b157
|
Provenance
The following attestation bundles were made for trnsci-0.1.0.tar.gz:
Publisher:
publish.yml on trnsci/trnsci
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trnsci-0.1.0.tar.gz -
Subject digest:
1c05eb4c8addd4fe230886ec76326a0811ea7597c75cbbdcb8b378be19114722 - Sigstore transparency entry: 1282473482
- Sigstore integration time:
-
Permalink:
trnsci/trnsci@bce041ae4be18046a180337cc8aa9a40daf31afd -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/trnsci
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bce041ae4be18046a180337cc8aa9a40daf31afd -
Trigger Event:
release
-
Statement type:
File details
Details for the file trnsci-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trnsci-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7291764850565da2c74b4b73839cf13fa1acd922b4ded761fe26ee2e066c982
|
|
| MD5 |
33b12434297935d6d726388f90e87ab8
|
|
| BLAKE2b-256 |
8d1f04919f33960084c2aa467478e35be0e0d377e357b041a21b269ae2653fb9
|
Provenance
The following attestation bundles were made for trnsci-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on trnsci/trnsci
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trnsci-0.1.0-py3-none-any.whl -
Subject digest:
b7291764850565da2c74b4b73839cf13fa1acd922b4ded761fe26ee2e066c982 - Sigstore transparency entry: 1282473517
- Sigstore integration time:
-
Permalink:
trnsci/trnsci@bce041ae4be18046a180337cc8aa9a40daf31afd -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/trnsci
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bce041ae4be18046a180337cc8aa9a40daf31afd -
Trigger Event:
release
-
Statement type: