Skip to content

Commit

Permalink
feat: num_resources: 1
Browse files Browse the repository at this point in the history
  • Loading branch information
iusztinpaul committed Dec 5, 2024
1 parent c8dd4cf commit 22bec18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion notebooks/5_ip_creating_deployments.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.10"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions recsys/hopsworks_integration/ranking_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ def deploy(cls, project):

ranking_transformer = Transformer(
script_file=transformer_script_path,
resources={"num_instances": 0},
resources={"num_instances": 1},
)

# Deploy ranking model
ranking_deployment = ranking_model.deploy(
name=cls.deployment_name,
description="Deployment that search for item candidates and scores them based on customer metadata",
script_file=predictor_script_path,
resources={"num_instances": 0},
resources={"num_instances": 1},
transformer=ranking_transformer,
)

Expand Down
4 changes: 2 additions & 2 deletions recsys/hopsworks_integration/two_tower_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ def deploy(cls, project):

query_model_transformer = Transformer(
script_file=transformer_script_path,
resources={"num_instances": 0},
resources={"num_instances": 1},
)

# Deploy the query model
query_model_deployment = query_model.deploy(
name=cls.deployment_name,
description="Deployment that generates query embeddings from customer and item features using the query model",
resources={"num_instances": 0},
resources={"num_instances": 1},
transformer=query_model_transformer,
)

Expand Down

0 comments on commit 22bec18

Please sign in to comment.