我可以在Cloud Datalab中导入tensorflow并运行模型,但是如何配置它以使用GPU?如何配置Google Cloud Datalab以将GPU用于TensorFlow?
这里的文档仅约机会谈,我不知道如何通过Datalab配置: https://cloud.google.com/ml-engine/docs/how-tos/using-gpus
我已经试过这样:
datalab create --machine-type standard_gpu ml
,当我选择了我们 - east1区域,我得到的错误:
Creating the instance ml
ERROR: (gcloud.compute.instances.create) Some requests did not succeed:
- Invalid value for field 'resource.machineType': 'https://www.googleapis.com/compute/v1/projects/project-160204/zones/us-east1-d/machineTypes/standard_gpu'. Machine type with name 'standard_gpu' does not exist in zone 'us-east1-d'.
我想在云中运行它,但只是在Datalab中运行Python代码(不使用API)。那可能吗? – skunkwerk
有两个问题:运行Datalab的虚拟机没有安装NVidia驱动程序(除非您自己安装),并且由于需要NVidia许可证,Docker镜像本身没有安装CUDA或GPU支持。 此外,必须安装Tensorflow的GPU版本。 –