You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.
For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.
✅ 36 untouched benchmarks
Comparing clarify-moffat-beta-deriv (aa9d01a) with main (51df286)
beckermr
changed the title
fix: ensure we properly indicate to jax that beta does not have grads for moffat
fix: ensure we properly indicate to jax that beta does not have grads for moffat and spergel
Feb 9, 2026
Look reasonable, and I think this should solve the gradient problems, but I'd have to run my test script to be sure, which I can only do tonight (I've been surprised by similar things in the past, like the stop gradient not actually preventing the computation of some gradients on the path).
GPU Benchmark: clarify-moffat-beta-deriv vs main vs besssel_improv
┌────────────────┬─────────┬────────────────┬───────────────────────────┐
│ Metric │ main │ besssel_improv │ clarify-moffat-beta-deriv │
├────────────────┼─────────┼────────────────┼───────────────────────────┤
│ Fwd HLO │ 5,472 │ 5,169 │ 5,476 │
├────────────────┼─────────┼────────────────┼───────────────────────────┤
│ Grad HLO │ 6,349 │ 9,384 │ 6,353 │
├────────────────┼─────────┼────────────────┼───────────────────────────┤
│ Fwd time │ 0.647ms │ 1.161ms │ 0.648ms │
├────────────────┼─────────┼────────────────┼───────────────────────────┤
│ Grad time │ 23.0ms │ 135.9ms │ 24.1ms │
├────────────────┼─────────┼────────────────┼───────────────────────────┤
│ Grad/Fwd ratio │ 35.6x │ 117.1x │ 37.3x │
└────────────────┴─────────┴────────────────┴───────────────────────────┘
This branch is essentially identical to main in performance (within noise). The stop_gradient(beta) and
documentation changes don't affect HLO or timing. The besssel_improv regression is not present here since
this branch is based on main's bessel.py.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I updated the doc string and I added a stop_gradient call to help JAX along instead of asking it to propagate zeros everywhere.
closes #184