anna-researcher

Results issues of anna-researcher

### Description `jax.nn.scaled_matmul` crashes immediately on CPU with an internal `NotImplementedError` rather than raising a clear user-facing error indicating the function requires GPU/cuDNN. ## Minimal reproducer ```python import jax import...

bug

`jax.lax.nextafter` had no JVP rule, causing `NotImplementedError` when differentiating through it. Since nextafter returns the next representable float value, the gradient is zero almost everywhere, so `defjvp_zero` is the correct...

### Description `jnp.nextafter` and `jnp.spacing` raise `NotImplementedError: Differentiation rule for 'nextafter' not implemented` when used with `jax.grad`. Unlike `jnp.floor` which explicitly defines a zero JVP via `ad.defjvp_zero(floor_p)`, `nextafter_p` has no...

bug

### Description `jax.vmap` with batch size 1 produces results that differ from eager execution by up to `0.000732`. The eager output, JIT output, and JIT determinism checks all pass —...

bug

### Description `jax.jit` produces `nan` for `jnp.angle(jnp.logical_xor(t, t))` while eager mode correctly returns `0.0`. This is a JIT compiler correctness bug — XLA appears to mishandle the type conversion inside...

bug
XLA

### Description `jax.lax.betainc(a, b, x)` supports gradient computation with respect to `x` but raises `ValueError` when differentiating with respect to `a` or `b`. This makes `betainc` unusable in training loops...

enhancement
P3 (no schedule)

### Description `jax.jit` produces `nan` gradients for a function whose eager gradients are finite. The function involves `jnp.cross(x, x)` (which produces near-zero values due to float32 rounding) flowing into `jnp.linalg.cholesky`....

bug

### Description `jnp.trim_zeros` works correctly in eager mode but raises `ConcretizationTypeError` under `jax.jit`. Unlike similar JAX functions with data-dependent output sizes (`jnp.nonzero`, `jnp.unique`, `jnp.compress`, `jnp.extract`) which explicitly document their JIT...

documentation

### Description `jax.jit` produces `nan` for a function that divides `jnp.cross(x, x)` by itself, while eager mode correctly returns `1.0`. This is a compiler correctness bug — eager and JIT...

bug

### Description `jnp.compress` and `jnp.extract` crash with `TracerBoolConversionError` when called inside `jax.jit` without a `size` argument. The error originates inside JAX's own implementation of `jnp.compress` at `lax_numpy.py:9001`, where `reductions.any(extra)` is...

documentation