We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
list_tuned_model_names
1 parent 40f3e41 commit 57806fbCopy full SHA for 57806fb
1 file changed
vertexai/language_models/_language_models.py
@@ -1083,7 +1083,7 @@ def _get_tuned_models_dir_uri(model_id: str) -> str:
1083
1084
def _list_tuned_model_names(model_id: str) -> List[str]:
1085
tuned_models = aiplatform.Model.list(
1086
- filter=f'labels.{_TUNING_BASE_MODEL_ID_LABEL_KEY}="{model_id}"',
+ filter=f'labels.{_TUNING_BASE_MODEL_ID_LABEL_KEY}="{model_id.replace("@", "-")}"',
1087
# TODO(b/275444096): Remove the explicit location once models are deployed to the user's selected location
1088
location=_TUNED_MODEL_LOCATION,
1089
)
0 commit comments