-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Make save_model support non-fault-tolerant paddle cloud training #3624
Conversation
# error | ||
return | ||
trainer_id = os.environ.get(trainer_key) | ||
etcd_key = "ETCD_IP" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious where to set ETCD_IP
env?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I see.
# do not need to save | ||
return | ||
elif r < 0: | ||
# error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log or print to stderr
?
@@ -33,37 +30,38 @@ def mkdir_p(path): | |||
raise | |||
|
|||
|
|||
def save_model(parameters, path): | |||
def save_model(parameters, folder, name="model.tar"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add doc string?
This PR is out-of-date, closing. |
Fixes: #3625