-
Notifications
You must be signed in to change notification settings - Fork 440
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 validation for NAS job in Katib controller #398
Changes from 19 commits
9f9a99a
0b171ab
46221b2
d407be8
c5c284f
14cc8be
36958e0
76f8397
c3e54cb
345d66b
e45216e
3dc4f3e
4b47650
3a7e0b0
c16690e
30e876e
38febad
8a01094
ea896ae
b88030b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,10 +212,20 @@ service Manager { | |
get: "/api/Manager/GetSavedModels" | ||
}; | ||
}; | ||
/** | ||
* Validate Suggestion Parameters from Study Job. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please explain a suggestion service should return |
||
*/ | ||
rpc ValidateSuggestionParameters(ValidateSuggestionParametersRequest) returns (ValidateSuggestionParametersReply){ | ||
option (google.api.http) = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I find that ValidateSuggestionParametersReply is used as
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @hougangliu We don't need to return anything, like here: |
||
post: "/api/Manager/ValidateSuggestionParameters" | ||
body: "*" | ||
}; | ||
}; | ||
} | ||
|
||
service Suggestion { | ||
rpc GetSuggestions(GetSuggestionsRequest) returns (GetSuggestionsReply); | ||
rpc ValidateSuggestionParameters(ValidateSuggestionParametersRequest) returns (ValidateSuggestionParametersReply); | ||
} | ||
|
||
service EarlyStopping { | ||
|
@@ -784,3 +794,15 @@ message EarlyStoppingParameterSet { | |
message GetEarlyStoppingParameterListReply { | ||
repeated EarlyStoppingParameterSet early_stopping_parameter_sets = 1; | ||
} | ||
|
||
message ValidateSuggestionParametersRequest { | ||
StudyConfig study_config = 1; | ||
string suggestion_algorithm = 2; | ||
repeated SuggestionParameter suggestion_parameters = 3; | ||
} | ||
|
||
/** | ||
* Return Invalid Argument Error if Suggestion Parameters are not Valid | ||
*/ | ||
message ValidateSuggestionParametersReply { | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. bool is_valid 1; |
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.
It should return specific error code here (e.g.
Unavailable
) and set message.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.
@YujiOshima I think we should delete this part:
https://github.com/kubeflow/katib/pull/398/files/ea896ae1a4c4690ef8873ce416a019e782710f9e#diff-9e63f7b0791edcb4a53c944552b88970R119.
Since you add "random" algorithm, if it is not specified:
https://github.com/kubeflow/katib/blob/master/pkg/controller/studyjob/katib_api_util.go#L28
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.
@YujiOshima By default this Error https://github.com/kubeflow/katib/pull/398/files#diff-9e63f7b0791edcb4a53c944552b88970R120 will return Unavailable code. I think, we don't need to specify this error code there.
Right now, I handle this error here, as you said: b88030b#diff-7a381fdaeae1295724b74c0a04f7644cR386.
Please check, if it is ok.