Skip to content

Reduce memory usage #82

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

Open
wants to merge 3 commits into
base: endogenize_investments
Choose a base branch
from
Open

Reduce memory usage #82

wants to merge 3 commits into from

Conversation

mj023
Copy link
Collaborator

@mj023 mj023 commented Apr 7, 2025

This PR introduces multiple measures to reduce the memory usage of the gradient computation in skillmodels.

  • Move rematerialization checkpoint to the scans body function
  • Introduce the option to split the dataset and then add up the gradient values to save memory
  • Improve householder product with faster matrix updating

@mj023 mj023 requested a review from hmgaudecker April 27, 2025 15:46
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