Known issues
JAX environment workarounds
If distributed jobs hang during communication or report CUDA graph / ragged all-to-all errors, try the opt-in environment helper at program startup on every process:
from jztree.jax_compat import fix_jax_environment
fix_jax_environment()
Call it before JAX backend initialization, including jax.devices(), array
creation, or jax.distributed.initialize(). Restart the process or notebook
kernel if JAX has already initialized. For this repository’s tests, use
pytest --jax-fixes instead.
The helper applies GPU environment workarounds for JAX 0.11/0.12: it disables
the ragged all-to-all NCCL barrier optimization, enables the NCCL send/recv
fallback, disables command buffers, and sets NCCL_CUMEM_ENABLE=0. On JAX 0.12
it also disables multi-host ragged all-to-all decomposition. Other JAX versions
are left unchanged. Unrelated environment settings are preserved; conflicting
explicit settings raise an error rather than being silently overwritten.
These settings can affect performance and do not resolve every cause of a hang. They are not enabled automatically.