.. _jax-neuron-known-issues:


.. meta::
   :description: JAX NeuronX Known Issues - AWS Neuron SDK documentation
   :keywords: AWS Neuron, Inferentia, JAX, JAX NeuronX, Trainium, setup, torch-neuronx
   :date-modified: 2026-11-13


JAX NeuronX Known Issues
------------------------
- ``Threefry`` RNG algorithm is not completely supported. Use ``rbg`` algorithm instead. This can be configured by setting the following config option ``jax.config.update("jax_default_prng_impl", "rbg")``
- ``Philox`` RNG algorithms (``philox2x32`` and ``philox4x32``) are not supported with JAX ``0.11.2``. Use ``rbg`` algorithm instead.
- Mesh configurations which use non-connected Neuron cores might crash during execution. You might observe compilation or Neuron runtime errors for such configurations. Device connectivity can be determined by using ``neuron-ls --topology``.
- Not all dtypes supported by JAX work on Neuron. Check :ref:`neuron-data-types` for supported data types.
- Converting floating point values to integer dtypes (for example, ``x.astype(jnp.int32)``) rounds to the nearest integer instead of truncating toward zero. Apply ``jnp.trunc`` before the conversion to get the expected result.
- ``jax.random.randint`` does not produce expected distribution of randint values. Run it on CPU instead.
- ``jax.lax.top_k`` is not supported when ``NEURON_RUN_TRIVIAL_COMPUTATION_ON_CPU=1`` is set. This includes APIs that use it, such as ``jax.random.categorical`` with ``replace=False``. Unset the environment variable for programs that use these APIs.
- With JAX ``0.11.2``, gradients of ``jnp.linalg.det`` for batched 2x2 and 3x3 matrices might be incorrect. Run it on CPU instead.
- Dynamic loops are not supported for ``jax.lax.while_loop``. Only static while loops are supported.
- ``jax.lax.cond`` is not supported.
- Host callbacks are not supported. As a result APIs based on callbacks from ``jax.debug`` and ``jax.experimental.checkify`` are not supported.
- ``jax.dlpack`` is not supported.
- ``jax.experimental.sparse`` is not supported.
- Sorting operations (``jax.lax.sort``, ``jnp.sort`` and ``jnp.argsort``) are not supported. Run them on CPU instead.
- ``jax.lax.reduce_precision`` is not supported.
- Certain operations (for example, rng weight initialization) might result in slow compilations. Try to run such operations on the CPU backend or by setting the following environment variable ``NEURON_RUN_TRIVIAL_COMPUTATION_ON_CPU=1``.
- Neuron only supports ``float8_e4m3`` and ``float8_e5m2`` for FP8 dtypes.
- Complex dtypes (``jnp.complex64`` and ``jnp.complex128``) are not supported.
- Variadic reductions are not supported.
- Out of bound indices in scatter and gather operations can produce incorrect results, compilation errors or runtime errors.
- Dot operations on int dtypes are not supported.
- ``lax.DotAlgorithmPreset`` is not always respected. Dot operations occur in operand dtypes. This is a configurable parameter for ``jax.lax.dot`` and ``jax.lax.dot_general``.
