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 failing trainer ds tests #29057

Merged
merged 1 commit into from
Feb 16, 2024
Merged

fix failing trainer ds tests #29057

merged 1 commit into from
Feb 16, 2024

Conversation

pacman100
Copy link
Contributor

What does this PR do?

  1. After PR Allow resume_from_checkpoint to handle auto_find_batch_size #27568, when resuming from ckpt, it first loads the trainer_state.json file. As such, when bogus ckpt folder is passed it will throw file not found error. Earlier, the code would throw different invalid ckpt error in the function call deepspeed_load_checkpoint. As such, test_can_resume_training_errors tests were failing. This PR fixes the tests by removing the exact check on the error message when resuming from bogus ckpt.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

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

Thanks for the investigation, TIL

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@pacman100 pacman100 merged commit b262808 into main Feb 16, 2024
18 checks passed
@pacman100 pacman100 deleted the smangrul/fix-ds-tests branch February 16, 2024 11:48
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request Feb 19, 2024
itazap pushed a commit that referenced this pull request May 14, 2024
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.

4 participants