在compute engine 初始化一台vm instance时,当你选择了GPU再进行创建,会报错:Quota ‘GPUS_ALL_REGIONS’ exceeded. Limit: 0.0 globally. Google的教程会让你去IAM&Admin页面去申请配额(Quotas),这里一定要申请 GPUs(all regions),千万不要选择你要用的Nvdia K80 or P100什么的,然后再回去申请就可以通过了
然后教程会提示你安装Google cloud SDK来ssh登陆vm,安装之后在进行 gcloud init时会卡在“Network diagnostic detects and fixes local network connection issues.
Checking network connection…”,这里需要更改gcloud config的proxy配置
gcloud config set proxy/type socks5
gcloud config set proxy/address 127.0.0.1
gcloud config set proxy/port 1080
再去执行gcloud init,就可以了,后面的configuration选择1
Pick configuration to use:
[1] Re-initialize this configuration [default] with new settings
[2] Create a new configuration
Please enter your numeric choice: 1
再在浏览器上登陆你的Google账号,完成绑定,选择你的项目就可以了
As always,Peace!