Skip to content

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
Copy link
Member

@hmgaudecker hmgaudecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for taking so long to look at this. Very, very nice -- thanks a lot!!!

@hmgaudecker hmgaudecker merged commit bbe69ce into endogenize_investments Jul 16, 2025
0 of 3 checks passed
@hmgaudecker hmgaudecker deleted the reduce_memory branch July 16, 2025 11:17
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.

3 participants