如何在GCP中更改现有VM的范围?

时间:2019-06-18 05:55:41

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

我创建了一个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

1 个答案:

答案 0 :(得分:2)

  

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

可以。转到Google Cloud Console。选择您的实例并停止它。然后编辑您的实例并更改范围等。重新启动实例。