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
Is checkpoint of Jax the same idea as the recompute_grad of tensorflow?: tensorflow has tf.keras to define layers in class. And after all the layers are defined I just wrap those adjacent layers I want to recompute into tf.keras.Sequential to make it work with tf.recompute_grad.
How is GPU-memory profiling done in Jax, if I need to show numbers to people that the $O(\sqrt n)$ memory usage can be achieved if those correctly select some "checkpoints"? It seems that tensorflow has its own internal allocator to do some smart strategy to save even more memory so I never know the real usage of GPU memory.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to migrate from tensorflow2 to Jax because of some problems, and in a hurry to implement something called gradient-checkpointing. I'm reading this: https://jax.readthedocs.io/en/latest/_autosummary/jax.checkpoint.html?#jax-checkpoint, but I'm not sure whether it can solve my problems or not:
checkpoint
of Jax the same idea as therecompute_grad
of tensorflow?: tensorflow hastf.keras
to define layers in class. And after all the layers are defined I just wrap those adjacent layers I want to recompute intotf.keras.Sequential
to make it work withtf.recompute_grad
.Beta Was this translation helpful? Give feedback.
All reactions