-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cake_eating_numerical] Numba time less than JAX #185
Comments
Sure, will take a look. |
Hi @mmcky, I checked the difference in timings and the main reason is the that the difference in the algorithms used. JAX is surely optimized to the fullest but the algorithm used by JAX to find the maximum is a brute force approach where as numba uses |
If the |
thanks @kp992 that is really helpful. Algorithms matter :-). @jstac (Smit) has identified the issue in timings here and there is a good explanation as to why the numba execution is faster than jax. It is a good example of how algorithms matter (just as much as technology). What do you think about making this point in the lecture? |
The lecture
cake_eating_numerical
was removed in #175 as thejax
time was longer thannumba
. We need to review the implementations in this lecture as a sense check.A copy of the lecture is here:
cake_eating_numerical.md
and the timings were at the bottom of this preview
https://6661340ed985e83faa0cb785--incomparable-parfait-2417f8.netlify.app/cake_eating_numerical
We would expect
jax
to outperformnumba
unless there is a good reason that we should explain.@kp992 do you have time to look into this lecture?
TODO:
numba
is less thanjax
for execution timeThe text was updated successfully, but these errors were encountered: