不支持ML引擎运行时版本和Python版本



在执行以下命令时,我正试图按照本教程运行Google clound ml引擎:

$ gcloud ml-engine jobs submit training `whoami`_object_detection_`date +%s`  
--job-dir=gs://${YOUR_GCS_BUCKET}/train
--packages dist/object_detection-0.1.tar.gz,slim/dist/slim-0.1.tar.gz,/tmp/pycocotools/pycocotools-2.0.tar.gz
--module-name object_detection.model_tpu_main 
--runtime-version 1.10
--scale-tier BASIC_TPU
--region us-central1
--
--model_dir=gs://${YOUR_GCS_BUCKET}/train
--tpu_zone us-central1
--pipeline_config_path=gs://${YOUR_GCS_BUCKET}/data/pipeline.config 

回答我的命令:

ERROR: (gcloud.ml-engine.jobs.submit.training) INVALID_ARGUMENT: Field: runtime_version Error: The specified runtime version '1.10' with the Python version '' is not supported for TPU training.  Please specify a different runtime version. See https://cloud.google.com/ml/docs/concepts/runtime-version-list for a list of supported versions
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: The specified runtime version '1.10' with the Python version '' is
not supported for TPU training.  Please specify a different runtime version.
See https://cloud.google.com/ml/docs/concepts/runtime-version-list for a list
of supported versions
field: runtime_version

因为没有检测到python的版本,所以我在命令行中添加了一个--config=config.yaml参数:

config.yaml:

trainingInput:
pythonVersion: "3.5"

但问题几乎没有改变:

...
- description: The specified runtime version '1.10' with the Python version '3.5'
...

运行时版本列表指定运行时版本1.10与python 3.5兼容,我也尝试了不同的运行时环境/python版本,但我的命令一直失败。

@jdehesa是对的,支持的版本是1.9。训练Cloud TPU型号不支持1.10版本。更改运行时版本编辑此标志:

--runtime-version 1.9

有关信息,当前支持的版本为1.111.12运行时版本列表

即使在确保所有版本都兼容后,我也遇到了同样的问题。

一旦我将这一行添加到gcloud训练命令中(在运行时版本行下面(,它就可以正常工作了。

--python-version 3.7 

最新更新