Skip to content

Update for jax 12 - #138

Merged
ASKabalan merged 2 commits into
mainfrom
update-for-jax-12
Nov 2, 2026
Merged

ASKabalan merged 2 commits into
mainfrom
update-for-jax-12

Conversation

@ASKabalan

Copy link
Copy Markdown
Member

Fix error due to change jax-ml/jax#41223
as of jax v0.12.0

  • VmapOf was experimental. The original idea was to make vmap a hijax primitive that only ran batching after autodiff. They abandoned it because changing the order of grad and vmap "would change where reduce_sums happened", which is worse for memory and changes numerics.
  • After that it survived only as a way to share batching logic between custom_jvp/custom_vjp and "user-defined primitives defining a batch_dim_rule". It added complexity without sharing much code, and it "still had bugs" (#41213).

@ASKabalan
ASKabalan merged commit 320cc39 into main Nov 2, 2026
7 checks passed
@ASKabalan
ASKabalan deleted the update-for-jax-12 branch November 2, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant