Google Colab 免費GPU伺服器使用教程

NO IMAGE

Google Colab免費使用GPU伺服器教程

Google Colab Free GPU Tutorial

Colaboratory

相關查詢命令

“`

!/opt/bin/nvidia-smi

“`

“`

!pip install

!apt-get install

!pip install -q keras

import keras

!apt-get install libnvrtc8.0

!pip install mxnet-cu80

import mxnet as mx

“`

“`

import tensorflow as tf

tf.test.gpu_device_name()

“`

Which GPU Am I Using?

“`

from tensorflow.python.client import device_lib

device_lib.list_local_devices()

“`

What about RAM?

“`

!cat /proc/meminfo

“`

What about CPU?

“`

!cat /proc/cpuinfo

“`

How to Restart Google Colab

“`

!kill -9 -1

“`

How to Use Tensorboard with Google Colab?

I recommend this repo:

https://github.com/mixuala/colab_utils