hrideymarwah15

Results comments of hrideymarwah15

PR #34491 has been created to address this issue. **Summary of changes:** - Changed `@jtu.skip_on_devices("gpu")` to `@jtu.skip_on_devices("cuda")` for two tests - Added TODO comments with issue reference for tracking -...

Confirming the root cause and tested fix locally: ### Root Cause 1. **Underflow to zero in summation regimes**: In `_entropy_small_mu` and `_entropy_medium_mu`, for larger $k$ (e.g. $k \ge 20$ when...

Confirming the root cause in `jax/_src/scipy/special.py:1378`: ```python log_val = lax.sub(_xlogx(safe_p), xlogy(safe_p, safe_q)) ``` The definition $p \log(p / q)$ is currently expanded into $_xlogx(p) - xlogy(p, q) = p \log(p)...

### Mathematical and Precision Analysis of the Variance Discrepancy In `_poisson_rejection` (`jax/_src/random/core.py`), the rejection threshold is evaluated as: ```python t = -lam + k * log_lam - lax_special.lgamma(k + 1)...

Looking at the compiled HLO, JAX lowers this cleanly as `stablehlo.power` followed by `stablehlo.log`, but XLA's `algsimp` fuses it into `multiply(log(abs(x)), constant(0.5))`: ``` %abs.1 = f64[] abs(%param_0.3) %log.2 = f64[]...

### Numerical Root Cause Analysis The premature underflow to zero comes from factoring out ^{-x}$ in the Euler-Maclaurin expansion of the Hurwitz zeta function: 1737\zeta(x, q) = q^{-x} \left( \frac{q}{x...

Looks like this comes from `sign = lax.sign(v)` in the hermitian branch of `jnp.linalg.svd` in `jax/_src/numpy/linalg.py`. Since `lax.sign(0.0) == 0.0`, the zero eigenvalue sets `sign` to 0, which zeroes out...

Confirmed the typing divergence and slowdown locally on main (0.69.0dev1). In `collatz_length_numba(np.uint64(10))`, `n = arg(0)` starts as `uint64`, but in `while n > 1:` with integer literals (`3`, `1`), the...

Looked into this in `numba/experimental/jitclass/overloads.py` - currently `class_instance_overload` guards with `if not isinstance(args[0], ClassInstanceType): return`, so it only inspects the left operand. For binary arithmetic ops, `register_simple_overload` also only registers...

A fix for this issue is now available in PR #8076: “Fix: CategoricalGibbsMetropolis now respects the tune parameter.” The sampler now correctly distinguishes between warmup and posterior samples, and all...