Google cloud platform 如何在GCP ML引擎中创建模型的多个版本?

Google cloud platform 如何在GCP ML引擎中创建模型的多个版本?,google-cloud-platform,google-cloud-ml,Google Cloud Platform,Google Cloud Ml,GCP具有模型的多版本功能。您甚至可以指定一个版本作为默认版本。但是,如何实际上传多个模型 例如,如果模型名称不存在,此命令将创建一个模型 %%bash MODEL_LOCATION=$(gsutil ls gs://${BUCKET}/${MODEL_NAME}/${TRAINING_DIR}/export/exporter | tail -1) DESCRIPTION="Has multiple bang count entries. 1200 training samples" gcl

GCP具有模型的多版本功能。您甚至可以指定一个版本作为默认版本。但是,如何实际上传多个模型

例如,如果模型名称不存在,此命令将创建一个模型

%%bash
MODEL_LOCATION=$(gsutil ls gs://${BUCKET}/${MODEL_NAME}/${TRAINING_DIR}/export/exporter | tail -1)

DESCRIPTION="Has multiple bang count entries. 1200 training samples"

gcloud ml-engine versions create ${MODEL_VERSION}_${MODEL_SUBVERSION} \
--model ${MODEL_NAME} \
--origin ${MODEL_LOCATION} \
--runtime-version $TFVERSION \
--description="${DESCRIPTION}" \
--labels='some_key'="${SOME_VALUE}",another_key="another_value"
但是,每次碰撞模型版本时,都会出现以下错误:

ERROR: (gcloud.ml-engine.versions.create) ALREADY_EXISTS: Field: version.name Error: A version with the same name already exists.
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: A version with the same name already exists.
    field: version.name

新命令是
gcloud ai平台版本创建的
,您在UI中看到了什么?您还可以澄清MODEL_VERSION和MODEL_SUBVERSION的值吗?错误似乎非常简单,您对现有的模型版本使用了相同的名称。正确的命令方式是使用
gcloud ai平台模型创建$MODEL\u NAME \--regions$REGION
创建模型,然后使用多个
gcloud beta ai平台版本为不同版本的模型创建…