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

Improve memory performance of ODE solvers via diffrax.diffrax.SubSaveAt #326

Open
arik-shurygin opened this issue Jan 16, 2025 · 0 comments

Comments

@arik-shurygin
Copy link
Collaborator

diffrax.SubSaveAt allows you to define a function to apply to each timestep saved, this way we do not need to load our large compartments into memory and can instead pre-process them as they are solved by the diffrax.diffeqsolve()

See example described here: https://docs.kidger.site/diffrax/api/saveat/

I remember hearing about some out of memory errors from @kokbent, this may help if that issue ever comes back.

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

No branches or pull requests

1 participant