Skip to content

Commit

Permalink
Fix sdk deploy method
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed May 20, 2024
1 parent 9c82fd2 commit b69c772
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions python/sdk/merlin/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,7 @@ def deploy(
min_replica=resource_request.min_replica,
max_replica=resource_request.max_replica,
cpu_request=resource_request.cpu_request,
cpu_limit=resource_request.cpu_limit,
memory_request=resource_request.memory_request,
)
if (
Expand Down Expand Up @@ -1748,6 +1749,7 @@ def _get_default_resource_request(
env.default_resource_request.min_replica,
env.default_resource_request.max_replica,
env.default_resource_request.cpu_request,
env.default_resource_request.cpu_limit,
env.default_resource_request.memory_request,
)

Expand All @@ -1762,6 +1764,7 @@ def _get_default_resource_request(
min_replica=resource_request.min_replica,
max_replica=resource_request.max_replica,
cpu_request=resource_request.cpu_request,
cpu_limit=resource_request.cpu_limit,
memory_request=resource_request.memory_request,
)

Expand Down Expand Up @@ -1807,6 +1810,7 @@ def _create_transformer_spec(
min_replica=resource_request.min_replica,
max_replica=resource_request.max_replica,
cpu_request=resource_request.cpu_request,
cpu_limit=resource_request.cpu_limit,
memory_request=resource_request.memory_request,
)

Expand Down
2 changes: 1 addition & 1 deletion python/sdk/test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ def test_redeploy_model(integration_test_url, project_name, use_google_oauth, re
metrics_type=merlin.MetricsType.CPU_UTILIZATION, target_value=50
),
deployment_mode=DeploymentMode.RAW_DEPLOYMENT,
transformer = Transformer(image="gcr.io/kubeflow-ci/kfserving/image-transformer:latest"),
transformer=Transformer(image="gcr.io/kubeflow-ci/kfserving/image-transformer:latest"),
)

with open(os.path.join("test/transformer", "input.json"), "r") as f:
Expand Down

0 comments on commit b69c772

Please sign in to comment.