Skip to content

Conversation

aadyotb
Copy link
Contributor

@aadyotb aadyotb commented Aug 27, 2025

What does this PR do?

This PR fixes a bug where autoresumption fails when specifying a custom CheckpointSaver that saves to a remote folder. The bug occurs because when attempting to autoresume, Trainer, will look at self._checkpoint_saver.folder; however this is set to a local path, instead of the remote path:

self.folder = local_folder

This PR adds a check for a remote folder in the checkpoint saver to resolve the issue.

What issue(s) does this change relate to?

Fixes: #3902

Before submitting

  • Have you read the contributor guidelines?
  • Is this change a documentation change or typo fix? If so, skip the rest of this checklist.
  • Was this change discussed/approved in a GitHub issue first? It is much more likely to be merged if so.
  • Did you update any related docs and document your change?
  • Did you update any related tests and add any new tests related to your change? (see testing)
  • Did you run the tests locally to make sure they pass?
  • Did you run pre-commit on your change? (see the pre-commit section of prerequisites)

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.

Incorrect autoresumption behavior with non-default CheckpointSaver
1 participant