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 mlflow model logging bug #692

Merged
merged 5 commits into from
Oct 25, 2023
Merged

Fix mlflow model logging bug #692

merged 5 commits into from
Oct 25, 2023

Conversation

dakinggg
Copy link
Collaborator

If the save interval for the hf checkpointer is set to 1dur and the max duration is set in epochs, the mlflow model logging would never happen, because the last save event happens on BATCH_CHECKPOINT, which is before the epoch is incremented, meaning that elapsed_duration would not be >= 1.0. This adds a special case for this setting to check if we are on the last batch.

@dakinggg dakinggg marked this pull request as ready for review October 25, 2023 03:24
@dakinggg dakinggg enabled auto-merge (squash) October 25, 2023 03:27
Copy link
Contributor

@irenedea irenedea left a comment

Choose a reason for hiding this comment

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

lgtm! one nit and one question about caching dataloader len

llmfoundry/callbacks/hf_checkpointer.py Outdated Show resolved Hide resolved
llmfoundry/callbacks/hf_checkpointer.py Outdated Show resolved Hide resolved
@dakinggg dakinggg merged commit bc687b7 into mosaicml:main Oct 25, 2023
@dakinggg dakinggg deleted the full-dur-bug branch December 11, 2023 23:44
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