【发布时间】:2021-11-14 14:54:48
【问题描述】:
我正在尝试使用以下方法在 GCP 上提交 TPU ML 训练作业:
> !gcloud ai-platform jobs submit training `whoami`_object_detection_`date +%s` \
> --job-dir=gs://dota-1/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 2.6 \
> --scale-tier BASIC_TPU \
> --region us-central1 \
> -- \
> --model_dir=gs://dota-1/train \
> --tpu_zone us-central1 \
> --python-version 3.7 \
> --pipeline_config_path=gs://dota-1/data/pipeline.config
但是它给了我以下错误并且没有检测到正确的python版本:
ERROR: (gcloud.ai-platform.jobs.submit.training) INVALID_ARGUMENT: Field: runtime_version Error: The specified runtime version '2.6' with the Python version '' is not supported or is deprecated. Please specify a different runtime version. See https://cloud.google.com/ml-engine/docs/runtime-version-list for a list of supported versions.
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: The specified runtime version '2.6' with the Python version '' is
not supported or is deprecated. Please specify a different runtime version.
See https://cloud.google.com/ml-engine/docs/runtime-version-list for a list
of supported versions.
field: runtime_version
我已经运行!python --version 并确认我安装了python 3.7,这是GCP 支持的版本。
我该如何解决这个问题?
【问题讨论】:
标签: python machine-learning google-cloud-platform tpu