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

Adding general checkpointing infra to checkpoint inside a pass #297

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

Conversation

jkalloor3
Copy link
Contributor

These changes allow you to checkpoint subdirectories and make simple changes to checkpoint inside a long pass (such as ScanningGateRemoval on wide blocks). The changes include:

A new RestartCheckpointPass:

  • This pass allows you to restart a workflow from a checkpoint. It is more flexible than RestoreIntermediatePass as it allows for sub-blocks to be loaded and performs default passes if a checkpoint does not exist, allowing you to not have to write 2 workflows.

I also add changes to move the checkpoint loading to the ForEachBlockPass to load blocks rather than from the IntermediatePasses themselves. I keep RestoreIntermediate and SaveIntermediate for backwards compatibility, but they should not be needed anymore.

@jkalloor3 jkalloor3 marked this pull request as draft October 24, 2024 00:23
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