Skip to content
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

cache initial-style jaxpr transformations #9196

Closed
wants to merge 1 commit into from

Conversation

mattjj
Copy link
Collaborator

@mattjj mattjj commented Jan 14, 2022

These changes reduce the tracing time on the shoyer version of the code in #3847 from ~50s to ~2.5s.

I'm a little wary to add more caching until we land #9188 to fix #9187. But otherwise this is straightforward!

I think we can say this fixes #3847, though there's a lot more improvement we could make in this area.

@mattjj mattjj requested a review from froystig January 14, 2022 05:05
@mattjj mattjj marked this pull request as ready for review January 14, 2022 05:07
@mattjj mattjj added the pull ready Ready for copybara import and testing label Jan 14, 2022
@mattjj mattjj self-assigned this Jan 18, 2022
mattjj added a commit to mattjj/jax that referenced this pull request Jan 18, 2022
copybara-service bot pushed a commit that referenced this pull request Jan 18, 2022
--
06deb73 by Matthew Johnson <mattjj@google.com>:

cache initial-style jaxpr transformations

COPYBARA_INTEGRATE_REVIEW=#9196 from mattjj:issue3847 06deb73
PiperOrigin-RevId: 422604879
@mattjj
Copy link
Collaborator Author

mattjj commented Jan 18, 2022

This was merged, but not marked as merged...

@mattjj mattjj closed this Jan 18, 2022
@mattjj mattjj mentioned this pull request Jan 18, 2022
@mattjj mattjj deleted the issue3847 branch March 7, 2022 05:32
mattjj added a commit to mattjj/jax that referenced this pull request Mar 7, 2022
In jax-ml#9196 I missed a related utilty function which needed memoization.
mattjj added a commit to mattjj/jax that referenced this pull request Mar 7, 2022
In jax-ml#9196 I missed a related utilty function which needed memoization.

Co-authored-by: Adam Paszke <apaszke@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
3 participants