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

[QUESTION] Limit Number of Saved Checkpoints #1354

Open
GuokunWang opened this issue Jan 13, 2025 · 0 comments
Open

[QUESTION] Limit Number of Saved Checkpoints #1354

GuokunWang opened this issue Jan 13, 2025 · 0 comments

Comments

@GuokunWang
Copy link

Hi,

I'm wondering if Megatron-LM supports keeping only the latest N checkpoints. When using a small save_interval for frequent checkpointing, the storage occupied by checkpoints grows rapidly. It would be very helpful if there was a parameter similar to save_total_limit in the Transformers library, which would allow us to constrain the maximum number of checkpoints saved. This would effectively reduce storage consumption.

Thanks!

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