File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ def create(
162162 # Create an AquaModelApp instance once to perform the deployment creation.
163163 model_app = AquaModelApp ()
164164 if create_deployment_details .model_id :
165- logger .info (
165+ logger .debug (
166166 f"Single model ({ create_deployment_details .model_id } ) provided. "
167167 "Delegating to single model creation method."
168168 )
@@ -250,7 +250,7 @@ def create(
250250 f"Only the following container families are supported: { supported_container_families } ."
251251 )
252252
253- logger .info (
253+ logger .debug (
254254 f"Multi models ({ model_ids } ) provided. Delegating to multi model creation method."
255255 )
256256
@@ -1066,11 +1066,11 @@ def get_multimodel_deployment_config(
10661066 )
10671067
10681068 if len (model_ids ) == 1 :
1069- return multi_model_deployment_config_loader .load_single (
1069+ return multi_model_deployment_config_loader .load_model_deployment_configuration (
10701070 shapes = available_shapes , model_id = model_ids [0 ]
10711071 )
10721072
1073- return multi_model_deployment_config_loader .load (
1073+ return multi_model_deployment_config_loader .load_multi_model_deployment_configuration (
10741074 shapes = available_shapes ,
10751075 model_ids = model_ids ,
10761076 primary_model_id = primary_model_id ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def __init__(self, deployment_app: AquaApp):
4444 """
4545 self .deployment_app = deployment_app
4646
47- def load (
47+ def load_multi_model_deployment_configuration (
4848 self ,
4949 shapes : List [ComputeShapeSummary ],
5050 model_ids : List [str ],
@@ -132,7 +132,7 @@ def load(
132132 summary .gpu_allocation = gpu_allocation
133133 return summary
134134
135- def load_single (
135+ def load_model_deployment_configuration (
136136 self ,
137137 shapes : List [ComputeShapeSummary ],
138138 model_id : str ,
@@ -160,15 +160,15 @@ def load_single(
160160 ]
161161
162162 deployment = {
163- model_id : {
164- " shape" : [shape .upper () for shape in deployment_config .shape ],
165- " configuration" : {
163+ model_id : AquaDeploymentConfig (
164+ shape = [shape .upper () for shape in deployment_config .shape ],
165+ configuration = {
166166 shape .upper (): deployment_config .configuration .get (
167167 shape , ConfigurationItem ()
168168 )
169169 for shape in deployment_config .shape
170170 },
171- }
171+ )
172172 }
173173
174174 # Initialize the summary result with the deployment configurations.
You can’t perform that action at this time.
0 commit comments