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

[BUG] How to checkpoint the specific microbatch in pipeline parallelism? #767

Open
robotsp opened this issue Apr 7, 2024 · 2 comments
Open

Comments

@robotsp
Copy link

robotsp commented Apr 7, 2024

Your question
Ask a clear and concise question about Megatron-LM.

I saw there is a microbatch-level checkpointing implementation of https://arxiv.org/pdf/2205.05198.pdf in schedules.py. But I do not know how to enable it with the arguments: num_microbatches_with_partial_activation_checkpoints, checkpoint_activations_microbatch

@robotsp
Copy link
Author

robotsp commented Apr 8, 2024

I tried to set a batch number, but got an error "
TypeError: forward_step() takes 2 positional arguments but 3 were given"

Does it mean we have not implemented the microbatch-level checkpointing yet? @sublee @jaredcasper @aaronp24 @dweekly

@robotsp robotsp changed the title [QUESTION] How to checkpoint the specific microbatch in pipeline parallelism? [BUG] How to checkpoint the specific microbatch in pipeline parallelism? Apr 8, 2024
@robotsp
Copy link
Author

robotsp commented Apr 15, 2024

@deepakn94 Hi deepakn, do you know how to solve the problem?

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

No branches or pull requests

1 participant