Skip to main content

High-performance composable JAX library

Project description

xtrax

PyPI - Version Tests Docs Coverage License: Apache 2.0

A set of composable building blocks for JAX/Equinox training loops — engine + trainer orchestration, safety-checked steps, axis tiling strategies, inference-time sparsification, distributed/sharding helpers, streaming output callbacks, and orbax checkpointing — extracted from the author's research code.

Status

xtrax is alpha, experimental software built primarily for the author's personal research use. APIs may change without notice between releases; no backward-compatibility guarantees pre-1.0. Issues and pull requests are welcome, but support is best-effort — the project exists first to serve the author's own JAX training workflows.

Why xtrax?

  • Composable architecture: Modular training pipeline designed for flexibility and extensibility
  • Distributed training: Built-in support for multi-device and distributed JAX training
  • Sparse operations: Efficient sparse model support with automatic sparsification
  • Tiling and batching: Advanced tiling strategies for complex distributed scenarios
  • Production-ready: Designed for real-world training workflows with checkpointing and safety features

Install

pip install xtrax

Requires Python 3.13+.

Quick Start

from xtrax import Trainer, Engine

# Create a simple training configuration
trainer = Trainer()

# Create an engine for distributed execution
engine = Engine()

# Define your loss and training logic
trainer.train(engine=engine)

For more details, see the documentation.

Features

Streaming outputs

Use BoundedCallbackHandler to capture and stream training outputs during execution. Integrate custom callbacks to monitor metrics and log results in real time.

Checkpointing

Save and restore training state with orbax checkpoints via save_checkpoint() and load_checkpoint(). Ensures resumable training across interruptions.

Documentation

Full API documentation and tutorials are available at https://xtrax.readthedocs.io.

License

Licensed under the Apache License 2.0.

Citation

If you use xtrax in research, please cite it:

@software{xtrax,
  title = {xtrax: High-Performance Composable JAX Training},
  author = {Russo, Marielle},
  year = {2026},
  url = {https://github.com/maraxen/xtrax}
}

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

xtrax-0.2.0.tar.gz (308.8 kB view details)

Uploaded Source

Built Distribution

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

xtrax-0.2.0-py3-none-any.whl (49.5 kB view details)

Uploaded Python 3

File details

Details for the file xtrax-0.2.0.tar.gz.

File metadata

  • Download URL: xtrax-0.2.0.tar.gz
  • Upload date:
  • Size: 308.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xtrax-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4ba1ec28b960e61cd370bad5294722807f6657654628e1dedabf31412d94e6d7
MD5 1b043971037a7bbfe7a4a0d35a31458a
BLAKE2b-256 39d5351e78b7fdfbeaf897d22deac8ae05ba9fd7945e8afdb50f4c1197d3d35b

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtrax-0.2.0.tar.gz:

Publisher: publish.yml on maraxen/xtrax

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

File details

Details for the file xtrax-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: xtrax-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 49.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xtrax-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d40bcacbb34ae0ab843c2379445abb3eefcd1aebb7e4694faba561b59285260
MD5 b8fbf33b1148207a45b5298baa6be4e8
BLAKE2b-256 ae32bfba6b13c2f229d37b468a2b82e4b9994dd1c8d97fc18607777ba49f58b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtrax-0.2.0-py3-none-any.whl:

Publisher: publish.yml on maraxen/xtrax

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