Skip to content

Commit e1c7870

Browse files
Ark-kuncopybara-github
authored andcommitted
fix: GenAI - Fixed get_tuned_model deploying the model every time
PiperOrigin-RevId: 611548646
1 parent 6c7e7fb commit e1c7870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vertexai/generative_models/_generative_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ def get_tuned_model(
19641964
)
19651965

19661966
tuned_model_deployments = tuned_vertex_model.gca_resource.deployed_models
1967-
if tuned_model_deployments:
1967+
if not tuned_model_deployments:
19681968
# Deploying the model
19691969
endpoint_name = tuned_vertex_model.deploy().resource_name
19701970
else:

0 commit comments

Comments
 (0)