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 4 commits into
base: main
Choose a base branch
from

Conversation

ssmmnn11
Copy link
Member

@ssmmnn11 ssmmnn11 commented Mar 21, 2025

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.


📚 Documentation preview 📚: https://anemoi-training--211.org.readthedocs.build/en/211/


📚 Documentation preview 📚: https://anemoi-graphs--211.org.readthedocs.build/en/211/


📚 Documentation preview 📚: https://anemoi-models--211.org.readthedocs.build/en/211/

@@ -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
@github-actions github-actions bot added graphs config Affects the config files to training CI/CD labels Aug 21, 2025
@japols japols force-pushed the feat/act_checkpoint_config branch from ec6151d to 497bd71 Compare August 21, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD config Affects the config files to training graphs models training
Projects
Status: Now In Progress
Development

Successfully merging this pull request may close these issues.

3 participants