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