Skip to main content

Reliable productivity primitives for the JAX ecosystem

Project description

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

  • CPython 3.14 with the standard GIL-enabled build
  • glibc Linux x86-64/AArch64, Windows x86-64, or Apple Silicon macOS
  • The exact JAX ecosystem versions declared by Tinax

Grain 0.2.18 does not provide a cp314t wheel, so free-threaded CPython is not supported.

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.

Public API

  • tinax.arrays: explicit NumPy, JAX, and DLPack copy and materialization policy
  • tinax.grain: deterministic training/evaluation pipelines and managed worker lifetime
  • tinax.randomness: typed keys, deterministic coordinate derivation, and explicit split ownership
  • tinax.diagnostics: bounded nonfinite callbacks and profiler scopes completed across arrays and effects
  • tinax.nnx: independent graph snapshots, explicit restoration, and alias-preserving graph clones
  • tinax.stdlib: explicit argparse-to-config conversion and isolated standard-library stream loggers
  • tinax.checkpointing: immutable Orbax V1 checkpointables and explicit restore targets
  • tinax.checkpointing.legacy.v0: visibly legacy Orbax V0 readers and writers
  • tinax.sharding: explicit meshes, layouts, placement, inspection, and NNX integration
  • tinax.weights: validated manifests and bounded, atomic Safetensors interchange

Documentation

License

Apache-2.0. See LICENSE.

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

tinax-0.0.9.tar.gz (142.8 kB view details)

Uploaded Source

Built Distribution

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

tinax-0.0.9-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file tinax-0.0.9.tar.gz.

File metadata

  • Download URL: tinax-0.0.9.tar.gz
  • Upload date:
  • Size: 142.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for tinax-0.0.9.tar.gz
Algorithm Hash digest
SHA256 cd6eda130ab2686b30be3fce626672e34d281a4424b858b991052440997f20c2
MD5 22b4fddbce67ffe6ba89963ba83685f1
BLAKE2b-256 723e60369634d2cae723e257b4fde10db6125d2203db2a3c8616cacbad360011

See more details on using hashes here.

File details

Details for the file tinax-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: tinax-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for tinax-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d77417ccfe05b895e87cfbe6c73364045a077a6d1f7239a74f74568f181f4e8d
MD5 ebd3d6e6d9da5b9080c237bac31c7309
BLAKE2b-256 380fbf1105b3185c841d20da04d00d9970a9034a4e6dfa0e0231b0839dd085da

See more details on using hashes here.

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