Skip to content

make activation checkpointing configurable #211

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ssmmnn11
Copy link
Member

Effort to make activation checkpointing configurable. With more GPU memory, small models will be able to run without full checkpointing and therefore we can increase throughput.

Also sets the processor default chunking values to more sane defaults.

@@ -189,6 +189,16 @@ def model(self) -> GraphForecaster:
freeze_submodule_by_name(model, submodule_name)
LOGGER.info("%s frozen successfully.", submodule_name.upper())

if self.config.training.activation_checkpointing.encoder:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we could get rid of this bit by using the model_config in the encoder_processor_decoder.

@anaprietonem anaprietonem marked this pull request as draft July 4, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Now In Progress
Development

Successfully merging this pull request may close these issues.

2 participants