I am trying to run Google clound ml-engine following this tutorial, when executing this command :
$ 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
commands which answers me :
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
Because no version of python is detected, I added a --config=config.yaml
argument to the command line:
config.yaml
:
trainingInput:
pythonVersion: "3.5"
but the problem barely changed :
...
- description: The specified runtime version '1.10' with the Python version '3.5'
...
the runtime version list specify that runtime-version 1.10 is compatible with python 3.5, I also tried different runtime environement / python version which are required to work but my command keeps failling.
@jdehesa is right, the supported version is 1.9. The version 1.10 is not supported for training Cloud TPU models. change the runtime version editing this flag:
--runtime-version 1.9
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With