Skip to content

Commit

Permalink
fix: GenAI - Fixed get_tuned_model deploying the model every time
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 611548646
  • Loading branch information
Ark-kun authored and Copybara-Service committed Feb 29, 2024
1 parent 6c7e7fb commit e1c7870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertexai/generative_models/_generative_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1964,7 +1964,7 @@ def get_tuned_model(
)

tuned_model_deployments = tuned_vertex_model.gca_resource.deployed_models
if tuned_model_deployments:
if not tuned_model_deployments:
# Deploying the model
endpoint_name = tuned_vertex_model.deploy().resource_name
else:
Expand Down

0 comments on commit e1c7870

Please sign in to comment.