How to configure Google Cloud Datalab to use GPUs for TensorFlow?

I can import shadoworflow and run models inside Cloud Datalab, but how do I configure it to use GPUs?

The documentation here only talks about machines that I'm not sure how to configure through Datalab: https://cloud.google.com/ml-engine/docs/how-tos/using-gpus

I tried this:

datalab create --machine-type standard_gpu ml

and when I select the us-east1 area, I get an error:

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'.
+4
source share
3 answers

, (https://cloud.google.com/ml-engine/docs/how-tos/using-gpus) , API Google Cloud ML Engine ML Engine API Datalab. Datalab (, /ML Toolbox/Image Classification/Flower/Service End to End.ipynb)

Tensorflow VM Datalab, Datalab GPU Datalab VM, .

+3
+1

Now you can create datalab instances using GPUs: https://cloud.google.com/datalab/docs/reference/command-line/create

datalab beta create-gpu datalab-instance-name
+1
source

Source: https://habr.com/ru/post/1671916/


All Articles