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 gcs config path #629

Merged
merged 1 commit into from
Feb 25, 2021
Merged

Fix gcs config path #629

merged 1 commit into from
Feb 25, 2021

Conversation

piraka9011
Copy link
Contributor

I discovered another bug with the GCS config.
It looks like the local_save_file isn't really necessary since PTL trainer already saves the model locally.
Also, GCSCheckpointHandler complains (after completing an epoch, which is not ideal) that it can't find a saved file if it's not specified correctly.

We can instead upload the file that the trainer is already using and avoid having the user to manually specify a save file.

The GCSCheckpointHandler now also properly saves to the user's desired folder instead of the full path to the model
So previously it would be saved as some thing like <bucket_name>/home/user/path/to/model.ckpt
Now it actually saves it to the bucket/folder correctly.

@SeanNaren SeanNaren merged commit e544e34 into SeanNaren:master Feb 25, 2021
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