Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Impossible to create vertex Ai model version with gcloud ai models

I use 

 

gcloud ai models upload

 

to create a model from a custom docker image. But I do not see a way to create a new version of that model in command line? Only with UI console.

Is the feature missing or am I missing something?

0 2 539
2 REPLIES 2

Good day @Zall,

Welcome to Google Cloud Community!

You need to specify the flag --parent model if you want to create a new version of that specific model, --parent-model=PARENT_MODEL_NAME, If you also want to specify a version description of that model you can use --version-description=VERSION_DESCRIPTION. You can check this link for more information: https://cloud.google.com/sdk/gcloud/reference/ai/models/upload

Hope this helps!

Specifying the parent model ID will upload it as a new version for that model. You may hit some snags in specifying which model is the default though, since there aren't specific alias managing functions in gcloud as far as I know.