File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,6 @@ def __init__(
150
150
model. (Default: None).
151
151
152
152
"""
153
- version = version or "*"
154
153
if message :
155
154
self .message = message
156
155
else :
@@ -199,7 +198,6 @@ def __init__(
199
198
version : Optional [str ] = None ,
200
199
message : Optional [str ] = None ,
201
200
):
202
- version = version or "*"
203
201
if message :
204
202
self .message = message
205
203
else :
Original file line number Diff line number Diff line change @@ -1148,6 +1148,7 @@ def get_top_ranked_config_name(
1148
1148
tolerate_deprecated_model : bool = False ,
1149
1149
tolerate_vulnerable_model : bool = False ,
1150
1150
hub_arn : Optional [str ] = None ,
1151
+ ranking_name : enums .JumpStartConfigRankingName = enums .JumpStartConfigRankingName .DEFAULT ,
1151
1152
) -> Optional [str ]:
1152
1153
"""Returns the top ranked config name for the given model ID and region.
1153
1154
@@ -1168,13 +1169,17 @@ def get_top_ranked_config_name(
1168
1169
1169
1170
if scope == enums .JumpStartScriptScope .INFERENCE :
1170
1171
return (
1171
- model_specs .inference_configs .get_top_config_from_ranking ().config_name
1172
+ model_specs .inference_configs .get_top_config_from_ranking (
1173
+ ranking_name = ranking_name
1174
+ ).config_name
1172
1175
if model_specs .inference_configs
1173
1176
else None
1174
1177
)
1175
1178
if scope == enums .JumpStartScriptScope .TRAINING :
1176
1179
return (
1177
- model_specs .training_configs .get_top_config_from_ranking ().config_name
1180
+ model_specs .training_configs .get_top_config_from_ranking (
1181
+ ranking_name = ranking_name
1182
+ ).config_name
1178
1183
if model_specs .training_configs
1179
1184
else None
1180
1185
)
You can’t perform that action at this time.
0 commit comments