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

Add support for remote checkpoints and train data files #237

Merged
merged 6 commits into from
Aug 2, 2023

Conversation

epwalsh
Copy link
Member

@epwalsh epwalsh commented Jul 31, 2023

  • Adds support for restarting training from a remote checkpoint by setting --load_path to a folder on S3 or GCS (e.g. gs://ai2-olmo/4245903).
  • Adds support for uploading checkpoints to S3 or GCS during training by setting --remote_save_folder to an S3/GCS "folder" (e.g. gs://ai2-olmo/ai2-llm/olmo-medium/tlui2x1q/step70000).
  • Adds support for specifying remote training data files (on S3 or CGS) in training configs (globs not supported).

@epwalsh epwalsh requested a review from dirkgr July 31, 2023 21:54
@epwalsh epwalsh changed the title Add support for remote checkpoints Add support for remote checkpoints and train data files Aug 1, 2023


def is_remote_file(path: PathOrStr) -> bool:
return re.match(r"[a-z0-9]+://.*", str(path)) is not None
Copy link
Member

Choose a reason for hiding this comment

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

I'm OK with this, but technically you can say "file://foo/bar.txt".

Copy link
Member Author

Choose a reason for hiding this comment

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

@epwalsh epwalsh merged commit 642d0fa into main Aug 2, 2023
10 checks passed
@epwalsh epwalsh deleted the remote-checkpoints branch August 2, 2023 20:22
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