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 "submit trainingjobs". #526

Merged
merged 9 commits into from
Dec 18, 2017
Merged

Conversation

gongweibao
Copy link
Collaborator

@gongweibao gongweibao commented Dec 14, 2017

Fix #462.

@gongweibao gongweibao changed the title Add "submit trainingjobs". [WIP] Add "submit trainingjobs". Dec 14, 2017
@gongweibao gongweibao changed the title [WIP] Add "submit trainingjobs". Add "submit trainingjobs". Dec 14, 2017
return err
}

if err := putFilesToPfs(jobPackage, jobName); err != nil {
var respObj interface{}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe change to:

var respObj map[string]string

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.Thanks.

@@ -7,42 +14,21 @@ def get_trainingjob(paddlejob):
},
"spec": {
"image": paddlejob.image,
"port": paddlejob.port,
"ports_num_for_sparse": paddlejob.ports_num_for_sparse,
#"port": paddlejob.port,
Copy link
Collaborator

Choose a reason for hiding this comment

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

No commented out code please :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.Thanks!

Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

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

I think we can form a TrainingJob resource from Submitter struct, and only send that TrainingJob resource to the server. Do not let the django server parse the json to TrainingJob. Let the python server do less things.

@gongweibao
Copy link
Collaborator Author

gongweibao commented Dec 15, 2017

用户配额信息、权限信息在PaddleCloud的。貌似他是不能被绕过的。 @typhoonzero
在PaddleCloud把信息填写完整会更好一些?

@typhoonzero
Copy link
Collaborator

@gongweibao@Yancey1989 沟通,明白了的确需要把用户相关的信息和配置放在python端,使TrainingJob可以独立运行。

typhoonzero
typhoonzero previously approved these changes Dec 15, 2017
Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

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

LGTM++

@gongweibao gongweibao merged commit 5804b52 into PaddlePaddle:develop Dec 18, 2017
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.

3 participants