不支持 ML Engine 运行时版本和 Python 版本

Jea*_*ier 5 python bash tensorflow google-cloud-ml

执行此命令时,我正在尝试按照本教程运行 Google clound ml-engine :

$ 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 
Run Code Online (Sandbox Code Playgroud)

回答我的命令:

  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
Run Code Online (Sandbox Code Playgroud)

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

config.yaml

trainingInput:
  pythonVersion: "3.5"
Run Code Online (Sandbox Code Playgroud)

但问题几乎没有改变:

...
 - description: The specified runtime version '1.10' with the Python version '3.5'
...
Run Code Online (Sandbox Code Playgroud)

运行时版本列表指定运行时版本1.10与蟒蛇3.5兼容的,我也尝试过这些都要求工作不同的运行environement / Python版本,但我的命令不断failling。

Ale*_*lme 4

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

--runtime-version 1.9
Run Code Online (Sandbox Code Playgroud)

  • 您可以在以下位置查看 TPU 支持的 CMLE 运行时版本:https://cloud.google.com/ml-engine/docs/tensorflow/runtime-version-list#tpu-support。目前,唯一支持的版本是 1.9。工程团队正在努力添加对 Tensorflow 1.11 和 1.12 的 TPU 支持。 (2认同)