Skip to content

Commit

Permalink
Include model_group_id upon model deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcornel committed Jun 18, 2024
1 parent 34eb5f5 commit 94854ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geti_sdk/rest_clients/deployment_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,11 @@ def _backend_deploy_project(
# Fetch the deployment package
deployment = self._fetch_deployment(deployment_id=code_deployment.id)

# Attach the appropriate hyper parameters to the deployed models
# Attach the appropriate hyper parameters and model_group_id to the deployed
# models
for index, model in enumerate(deployment.models):
model.hyper_parameters = hyper_parameters[index]
model.model_group_id = sorted_optimized_models[index].model_group_id

# Save the deployment, if needed
if output_folder is not None:
Expand Down

0 comments on commit 94854ab

Please sign in to comment.