Skip to content

Instantly share code, notes, and snippets.

@peace098beat
Last active July 24, 2021 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peace098beat/0c326402880aa3f468f0a90e491f1ccd to your computer and use it in GitHub Desktop.
Save peace098beat/0c326402880aa3f468f0a90e491f1ccd to your computer and use it in GitHub Desktop.
[Google Colab] #colab #python
# Scrach Pad
# https://colab.research.google.com/notebooks/empty.ipynb
# KaggleOps
# [KaggleOpsを考える ~ MLflow + Colaboratory + Kaggle Notebook ~ | GMOインターネットグループ 次世代システム研究室](https://recruit.gmo.jp/engineer/jisedai/blog/kaggleops-mlflow/)
# GPU
# NVIDIA GPUスペック(機械学習用)https://qiita.com/yukoba/items/10d0ba3fb1d19a6ab6a5
!nvidia-smi
# Memory
from psutil import virtual_memory
ram_gb = virtual_memory().total / 1e9
print('Your runtime has {:.1f} gigabytes of available RAM\n'.format(ram_gb))
if ram_gb < 20:
print('To enable a high-RAM runtime, select the Runtime > "Change runtime type"')
print('menu, and then select High-RAM in the Runtime shape dropdown. Then, ')
print('re-execute this cell.')
else:
print('You are using a high-RAM runtime!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment