Skip to main content

Scientific computing suite for AWS Trainium via NKI (FFT, BLAS, RAND, SOLVER, SPARSE, TENSOR)

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trnsci-0.1.0.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trnsci-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

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

Hashes for trnsci-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c05eb4c8addd4fe230886ec76326a0811ea7597c75cbbdcb8b378be19114722
MD5 2bb8ef0824e458a802b361bd4dc03a59
BLAKE2b-256 5f5e9ea74caa2398e2b9492a240c3a5cd98c844bd0c248ebac8330a9f1c1b157

See more details on using hashes here.

Provenance

The following attestation bundles were made for trnsci-0.1.0.tar.gz:

Publisher: publish.yml on trnsci/trnsci

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for trnsci-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7291764850565da2c74b4b73839cf13fa1acd922b4ded761fe26ee2e066c982
MD5 33b12434297935d6d726388f90e87ab8
BLAKE2b-256 8d1f04919f33960084c2aa467478e35be0e0d377e357b041a21b269ae2653fb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for trnsci-0.1.0-py3-none-any.whl:

Publisher: publish.yml on trnsci/trnsci

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page