【问题标题】:Google Cloud TPU: gcloud compute tpus create failing with permission deniedGoogle Cloud TPU:gcloud compute tpus create failed with permission denied
【发布时间】:2021-01-21 06:34:27
【问题描述】:

我正在尝试遵循有关使用谷歌云 TPU 训练模型的官方教程。 这是教程:https://cloud.google.com/tpu/docs/tutorials/transformer-pytorch

在“启动 Cloud TPU 资源”步骤中,我执行以下操作

:~$ gcloud compute tpus create train-bert-one \
> --zone=europe-west4-a \
> --network=default \
> --version=pytorch-1.6 \
> --accelerator-type=v3-8

就像在教程中一样,我只是调整了区域。

命令失败

ERROR: (gcloud.compute.tpus.create) PERMISSION_DENIED: Permission 'tpu.nodes.create' denied on 'projects/bert-archaea-fine-tuning/locations/europe-west4-a/nodes/train-bert-one'

有人知道这个错误吗?在上面找不到任何东西。

【问题讨论】:

    标签: google-cloud-platform pytorch tpu


    【解决方案1】:

    Google 支持能够修复它,问题是由于某种原因在创建项目时没有自动创建有效的 API 服务帐户

    gcloud compute --project=${PROJECT_ID} instances create transformer-tutorial \
    --zone=us-central1-a  \
    --machine-type=n1-standard-16  \
    --image-family=torch-xla \
    --image-project=ml-images  \
    --boot-disk-size=200GB \
    --scopes=https://www.googleapis.com/auth/cloud-platform
    

    已通过将标志 --service-account= 添加到命令并手动指定要使用的服务帐户来修复。

    【讨论】:

      猜你喜欢
      • 2018-03-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-04
      • 2017-05-15
      • 1970-01-01
      • 2021-07-06
      • 2021-09-04
      相关资源
      最近更新 更多