Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Take a separate argument for loading checkpoints, take paths for pretrained checkpoints #379

Closed

Conversation

mannatsingh
Copy link
Contributor

Summary:
There are now two arguments for checkpoints -

  • checkpoint_folder: This is where checkpoints are saved to. Checkpoints are saved inside a subdirectory (the flow id) within this folder
  • checkpoint_load_path: This is where checkpoints are loaded from. This can be a file or a directory.

Note that this means that training will not automatically resume by picking up a checkpoint from the checkpoint_folder if the user doesn't specify a checkpoint_load_path, but I think explicit is better than implicit in this scenario.

Also, renamed pretrained_checkpoint_folder to pretrained_checkpoint_path and updated the help string to reflect the fact that this doesn't need to be a folder anymore.

Updated the Getting started tutorial to reflect the changes.

Differential Revision: D19760255

Differential Revision: D19770656

fbshipit-source-id: c6bef5b1c7b23940858c72c3a93942205980f2b8
…rained checkpoints

Summary:
There are now two arguments for checkpoints -
- `checkpoint_folder`: This is where checkpoints are saved to. Checkpoints are saved inside a subdirectory (the flow id) within this folder
- `checkpoint_load_path`: This is where checkpoints are loaded from. This can be a file or a directory.

Note that this means that training will not automatically resume by picking up a checkpoint from the `checkpoint_folder` if the user doesn't specify a `checkpoint_load_path`, but I think explicit is better than implicit in this scenario.

Also, renamed `pretrained_checkpoint_folder` to `pretrained_checkpoint_path` and updated the help string to reflect the fact that this doesn't need to be a folder anymore.

Updated the Getting started tutorial to reflect the changes.

Differential Revision: D19760255

fbshipit-source-id: 7d3e33289b999f261e4dbefd7bc44f4e7b750c10
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Feb 6, 2020
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D19760255

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 8575416.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants