Skip to content

machine-moon/tinax

Repository files navigation

Tinax

Tinax is a small, typed library of explicit productivity primitives for JAX, Flax NNX, Optax, Orbax, Grain, Chex, and Safetensors workflows.

It provides stable policies for array and RNG ownership, bounded diagnostics, NNX graph copies, explicit stdlib application boundaries, deterministic input pipelines, complete checkpoints, sharding, and weight interchange. Tested ecosystem recipes live under examples/ without stable API guarantees.

Requirements

  • Python 3.12, 3.13, or 3.14

Install

pip install tinax

Install a JAX accelerator distribution when needed:

pip install "tinax[gpu]"
pip install "tinax[tpu]"

See the installation guide for platform and accelerator details.

Quick Start

import numpy as np

from tinax.arrays import from_numpy, inspect_array, to_numpy

host = np.arange(8, dtype=np.float32)
device = from_numpy(host, copy=True)
info = inspect_array(device)
round_trip = to_numpy(device, writable=False)

Importing tinax alone is inert. Import the domain that owns the behavior you need.

Documentation

License

Apache-2.0. See LICENSE.

About

Reliable productivity primitives for the JAX ecosystem

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
COPYING

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors