Skip to main content

Rixa

Rixa (Runtime Initialization by pmiX Adoption) is a high-performance library that provides a unified and efficient way to bootstrap distributed PyTorch jobs. It leverages PMIx 5.0 to seamlessly launch PyTorch workloads on large-scale HPC clusters, eliminating the need to manually specify the master IP address and port.

Why Rixa?

Standard PyTorch bootstrapping (TCP/File-store) is built for cloud portability but often struggles with scale and reliability on bare-metal HPC clusters. rixa bypasses these overheads by using PMIx as a native high-performance key-value store, providing

  1. Zero-config Launching: No master IP/Port orchestration required.

  2. HPC Native: Leverages existing Slurm, Flux, or OpenMPI environments.

  3. ABI Compatibility: Built on PMIx 5.0+ (ABI stable), ensuring portability across different MPI/PMIx versions.

Installation

In order to install one needs to specify the version of the library. Currently two versions are supported, pytorch and nvshmem. They can be easily installed with

# Install for PyTorch support
pip install "rixa[pytorch]"

# Install for NVSHMEM support
pip install "rixa[nvshmem]"

Usage

PyTorch

One can use rixa to start PyTorch distributed job with one simple line

import rixa
rixa.pytorch.init_process_group(pytorch_argument1, pytorch_argument2, keyword2=pytorch_parameter)

Jobs can be launched with any PMIx 5.0-compatible plugin, starting with prrte, some MPI implementations (OpenMPI 5.0), native job launcher plugins to SLURM or Flux. Example:

prterun -n 16 python3 -c "import rixa; rixa.pytorch.init_process_group(); import torch; print(torch.distributed.get_rank())"

Remember to manually finalize the backend!

torch.distributed.destroy_process_group()

NVSHMEM

Nvshmem usage is very similar to the pytorch usage, one needs to use a thin wrapper around the native nvshmem init. Example:

import rixa
from cuda.core import Device

store = rixa.PMIxStore(30) #manualy specify the PMIx backend with manual timeout, can become handy to set the device
dev = Device(0) #first device or just set based on the use case
rixa.nvshmem.init(dev, store) #device, store

Remember to manually finalize the backend!

nvshmem.finalize()

Roadmap

  • Support for NVSHMEM (pytorch, cupy)
  • Support for JAX

Metadata

Release files for rixa 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rixa 0.0.3
File Size Uploaded Provenance Actions
rixa-0.0.3.tar.gz 46.5 kB Without provenance Details for rixa-0.0.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rixa 0.0.3
File Interpreter ABI Platform Actions
rixa-0.0.3-cp310-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for rixa-0.0.3-cp310-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
rixa-0.0.3-cp310-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64, Linux glibc 2.24+ ARM64 Details for rixa-0.0.3-cp310-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Total release size: 5.3 MB

Release files / rixa-0.0.3.tar.gz

Download URL rixa-0.0.3.tar.gz
Size 46.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cacf6826e68842a0ee564d53317cc00c6b25f8b42af7f7bb4055984541a153fd
BLAKE2b-256 checksum
How to use checksums
7926e795b280377a4286893ac186f5000cb7c966c78c8f749fe7f983ccc2f0e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / rixa-0.0.3-cp310-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL rixa-0.0.3-cp310-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 2.7 MB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
7c61e3b47c7421b2325d4ed359a1a42622401b607e1541eccf3afc0cf3bf6c0d
BLAKE2b-256 checksum
How to use checksums
2dffacbde4bb4b1f819f3bb7e4d4769d8fced1d6b2e589dfa7b85e6c06aa74e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / rixa-0.0.3-cp310-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL rixa-0.0.3-cp310-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 2.6 MB
Tags CPython 3.10 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
c661ccf6286ee6f17a486495ba6f679c75b2da7fc970ec2ca7af3c65654ef872
BLAKE2b-256 checksum
How to use checksums
84fb4c285cdc34674facfe67ec70ec2b61286b5e3a9384adf00a63a39c7a9040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for rixa 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page