rlmesh.jax

Experimental JAX-backed RLMesh clients and tensor helpers.

Experimentalimport rlmesh.jax

The JAX backend (experimental): the same clients, models, and sandbox sessions as the top-level package, with tensor leaves decoded to JAX arrays. JAX arrays are immutable, so there is no mutation hazard.

pip install "rlmesh[jax]"

Conversion semantics

  • asarray() imports over DLPack. XLA shares RLMesh’s 64-byte-aligned buffers zero-copy and copies otherwise.
  • from_array() moves the array to CPU if needed, blocks until ready, and copies it into a fresh RLMesh tensor.
  • int64, uint64, and float64 need JAX 64-bit mode (jax.config.update("jax_enable_x64", True)); without it JAX demotes them.
  • Requires jax >= 0.4.24, the first release with DLPack bool support.

Classes

Functions

Type aliases