Created
September 17, 2021 17:05
-
-
Save Gholamrezadar/030afeb5fc09f0735081e1894155b184 to your computer and use it in GitHub Desktop.
Simple commands that show stats about Colab VM (GPU, CPU, RAM)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tensorflow.python.client import device_lib | |
device_lib.list_local_devices() | |
import tensorflow as tf | |
tf.test.gpu_device_name() | |
!nvidia-smi | |
!cat /proc/meminfo | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment