【问题标题】:How to change the scope of existing VM in GCP?如何更改 GCP 中现有 VM 的范围?
【发布时间】:2019-06-18 05:55:41
【问题描述】:

我创建了一个 Windows VM,其中有 BERT 主模型、SQUAD 和 BERT 大型模型。我试着用这个来管理小队:

python run_squad.py \
  --vocab_file=$BERT_LARGE_DIR/vocab.txt \
  --bert_config_file=$BERT_LARGE_DIR/bert_config.json \
  --init_checkpoint=$BERT_LARGE_DIR/bert_model.ckpt \
  --do_train=True \
  --train_file=$SQUAD_DIR/train-v2.0.json \
  --do_predict=True \
  --predict_file=$SQUAD_DIR/dev-v2.0.json \
  --train_batch_size=24 \
  --learning_rate=3e-5 \
  --num_train_epochs=2.0 \
  --max_seq_length=384 \
  --doc_stride=128 \
  --output_dir=gs://some_bucket/squad_large/ \
  --use_tpu=True \
  --tpu_name=$TPU_NAME \
  --version_2_with_negative=True

它抛出了一个错误:googleapiclient.errors.HttpError: <HttpError 403 when requesting https://tpu.googleapis.com/v1alpha1/projects/projectname/locations/us-central1-a/nodes/testnode?alt=json returned "Request had insufficient authentication scopes.">

有没有办法在创建VM后将现有VM的范围更改为cloud-platform

【问题讨论】:

    标签: google-cloud-platform neural-network google-compute-engine tpu


    【解决方案1】:

    有没有办法将现有 VM 的范围更改为云平台 虚拟机创建后?

    是的,你可以。转到谷歌云控制台。选择您的实例并停止它。然后编辑您的实例并更改范围等。重新启动您的实例。

    【讨论】:

    • 谢谢。我将 Compute Engine 的范围更改为读/写,但是,即使在范围更改后,我也无法解决 VM 中的身份验证问题。我是不是在看错误的一面?
    • @JeevaBharathi 查看分配给 VM 的服务帐户。然后查看分配给该服务帐号的角色。
    猜你喜欢
    • 1970-01-01
    • 2023-03-22
    • 2010-11-06
    • 1970-01-01
    • 2020-01-14
    • 2019-04-13
    • 1970-01-01
    • 2020-05-17
    • 2016-06-26
    相关资源
    最近更新 更多