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

fix retry crash loop #1696

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

fix retry crash loop #1696

wants to merge 2 commits into from

Conversation

milocress
Copy link
Contributor

@milocress milocress commented Dec 9, 2024

When a run is killed and automatically restarts after training is complete, it is thrown into a retry loop due to Composer erroring when no training will happen. This PR short-circuits to the checkpoint upload step when this error is detected during a retry.

@milocress milocress requested a review from a team as a code owner December 9, 2024 19:30
@milocress milocress changed the title fixes retry crash loop fix retry crash loop Dec 9, 2024
Copy link
Collaborator

@dakinggg dakinggg left a comment

Choose a reason for hiding this comment

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

manual test run?

log.info(
'Training is already complete and detected retry. Skipping training and saving checkpoint.',
)
trainer.save_checkpoint_to_save_folder()
Copy link
Collaborator

Choose a reason for hiding this comment

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

i believe you don't want to call the composer save, just the hf save. because if the you get this error that means the last composer checkpoint was already saved successfully.

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.

2 participants