Last active
July 24, 2021 14:32
-
-
Save peace098beat/0c326402880aa3f468f0a90e491f1ccd to your computer and use it in GitHub Desktop.
[Google Colab] #colab #python
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
# 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