-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Consolidate initial/final style custom_vjp primitives into one #28589
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
Merged
copybara-service
merged 1 commit into
jax-ml:main
from
dfm:consolidate-custom-vjp-primitives
May 13, 2025
Merged
Consolidate initial/final style custom_vjp primitives into one #28589
copybara-service
merged 1 commit into
jax-ml:main
from
dfm:consolidate-custom-vjp-primitives
May 13, 2025
Conversation
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
9ed9482 to
8941ee8
Compare
df642f1 to
a0cf239
Compare
0132a9c to
883e49b
Compare
copybara-service bot
pushed a commit
to google/aqt
that referenced
this pull request
May 12, 2025
In jax-ml/jax#28589, we're slightly tweaking the behavior of custom_vjp when staged out. Of relevance here, the Jaxpr parameter is now called `call_jaxpr` (for consistency with other internal higher-order primitives) instead of `fun_jaxpr`. This change supports old and new versions of JAX. PiperOrigin-RevId: 757772896
mattjj
approved these changes
May 12, 2025
Collaborator
mattjj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!!!!
copybara-service bot
pushed a commit
to google/aqt
that referenced
this pull request
May 12, 2025
In jax-ml/jax#28589, we're slightly tweaking the behavior of custom_vjp when staged out. Of relevance here, the Jaxpr parameter is now called `call_jaxpr` (for consistency with other internal higher-order primitives) instead of `fun_jaxpr`. This change supports old and new versions of JAX. PiperOrigin-RevId: 757772896
copybara-service bot
pushed a commit
to google/aqt
that referenced
this pull request
May 12, 2025
In jax-ml/jax#28589, we're slightly tweaking the behavior of custom_vjp when staged out. Of relevance here, the Jaxpr parameter is now called `call_jaxpr` (for consistency with other internal higher-order primitives) instead of `fun_jaxpr`. This change supports old and new versions of JAX. PiperOrigin-RevId: 757883900
883e49b to
74938be
Compare
copybara-service bot
pushed a commit
to jax-ml/jax-tpu-embedding
that referenced
this pull request
May 15, 2025
The primitive name is changed in jax-ml/jax#28589 PiperOrigin-RevId: 759252787
copybara-service bot
pushed a commit
to jax-ml/jax-tpu-embedding
that referenced
this pull request
May 15, 2025
The primitive name is changed in jax-ml/jax#28589 PiperOrigin-RevId: 759268475
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Having separate primitives for initial and final style meant that we needed some duplicated logic so this should be a net win.
Most of the tests pass, but there are a couple of failures related to closed-over tracers.All tests green after #28605 goes in.