Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
colaboratory
Search
MSR
November 03, 2018
Technology
0
160
colaboratory
Google Colaboratoryの間違った使い方
@第38回シェル芸勉強会 大阪サテライト (2018/11/03) のLT発表資料です。
MSR
November 03, 2018
Tweet
Share
More Decks by MSR
See All by MSR
horizon
msr_i386
0
1.3k
fujiaire by shell
msr_i386
0
1k
yes command faster
msr_i386
0
400
Amazon Dash Hack
msr_i386
0
1.4k
cgroup
msr_i386
0
1.4k
discover fork-bomb
msr_i386
0
1.9k
kanji banner
msr_i386
0
1.9k
ASCII art oneliner
msr_i386
0
2k
QR Code Shell
msr_i386
0
2.3k
Other Decks in Technology
See All in Technology
今!ソフトウェアエンジニアがハードウェアに手を出すには
mackee
12
4.8k
はじめてのOSS開発からみえたGo言語の強み
shibukazu
1
700
なぜテストマネージャの視点が 必要なのか? 〜 一歩先へ進むために 〜
moritamasami
0
230
OCI Oracle Database Services新機能アップデート(2025/06-2025/08)
oracle4engineer
PRO
0
170
AIエージェント開発用SDKとローカルLLMをLINE Botと組み合わせてみた / LINEを使ったLT大会 #14
you
PRO
0
130
ハードウェアとソフトウェアをつなぐ全てを内製している企業の E2E テストの作り方 / How to create E2E tests for a company that builds everything connecting hardware and software in-house
bitkey
PRO
1
150
研究開発と製品開発、両利きのロボティクス
youtalk
1
530
下手な強制、ダメ!絶対! 「ガードレール」を「檻」にさせない"ガバナンス"の取り方とは?
tsukaman
2
450
roppongirb_20250911
igaiga
1
240
LLM時代のパフォーマンスチューニング:MongoDB運用で試したコンテキスト活用の工夫
ishikawa_pro
0
150
要件定義・デザインフェーズでもAIを活用して、コミュニケーションの密度を高める
kazukihayase
0
120
LLMを搭載したプロダクトの品質保証の模索と学び
qa
0
1.1k
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Documentation Writing (for coders)
carmenintech
74
5k
Practical Orchestrator
shlominoach
190
11k
Producing Creativity
orderedlist
PRO
347
40k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
RailsConf 2023
tenderlove
30
1.2k
Large-scale JavaScript Application Architecture
addyosmani
513
110k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Transcript
Google Colaboratoryの 間違った使い方 @第38回シェル芸勉強会 大阪サテライト Navigate : Space / Arrow
Keys | - Menu | - Fullscreen | - Overview | - Blackout | - Speaker | - Help M F O B S ? 1 / 24
目次 Google Colaboratoryとは 実態 無駄遣い まとめ [ GitPitch @ github/msr-i386/slide_20181103_colaboratory
] 2 / 24
自己紹介 ハンドルネーム: MSR Webブラウザ の作者 Twitter ID: @msr386 Tungsten [
GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 3 / 24
Google Colaboratoryとは Googleが機械学習の教育、研究のために用意した 無料のPython実行環境 モダンブラウザとGoogleアカウントさえあればア クセス可能 機械学習に必要な環境は最初から構築済 TensorFlowやmatplotlibなどがインストール済の 仮想マシンが用意され、すぐに実行できる [
GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 4 / 24
Google Colaboratoryとは GPUもTPUも無料で使える [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 5
/ 24
Google Colaboratoryの実態 [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 6 /
24
共通 連続使用時間は12時間 アイドリングストップ機構あり(90分) [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 7
/ 24
GPUなし [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 8 / 24
GPUなし GCEのn1-highmem-2インスタンスがベース CPU: 2コア 2.3GHz メモリ: 13GB ストレージ: 40GB (GPU使用時は360GB)
OS: Ubuntu 18.04.1 LTS Python: 2.7 or 3.6.6 常時稼働ならば \7000/月 相当 [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 9 / 24
GPU Tesla K80 相当のGPU [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ]
10 / 24
TPU 第2世代TPU? [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 11 /
24
Google Colaboratoryを無駄遣い する [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 12
/ 24
普通の使い方 機械学習の教育、研究用に使う [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 13 /
24
間違った使い方 [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 14 / 24
間違った使い方 シェル芸の気軽な実行環境として使う 危険シェル芸 (絶対にダメ) ※目的外の使用はほどほどに [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ]
15 / 24
使用方法 1. にアクセス 2. [ファイル]メニューから新しいノートブックを開く 3. (必要に応じて)Googleアカウントでログイン 4. コードブロックにコードを書いていく https://colab.research.google.com/
[ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 16 / 24
Pythonでコマンド実行 subprocessを使う import subprocess proc = subprocess.run(["uname", "-a"], stdout =
subprocess.PIPE, stderr = subprocess.PIPE) print(proc.stdout.decode("utf8")) [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 17 / 24
Tips (1) 先頭に"!"をつけるだけでも実行できる Ctrl+Enterで実行可能 [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ]
18 / 24
Tips (2) インターネット接続可 Git標準搭載 apt install可能 インスタンスが停止するときれいさっぱり忘れる [ GitPitch @
github/msr-i386/slide_20181103_colaboratory ] 19 / 24
[ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 20 / 24
[ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 21 / 24
実行デモ [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 22 / 24
まとめ Google Colaboratoryは機械学習の教育、研究を目 的とした研究用ツール 実態は機械学習環境構築済のLinux仮想マシン 目的外の使用は控えましょう [ GitPitch @ github/msr-i386/slide_20181103_colaboratory
] 23 / 24
参考資料 よくある質問 Google Colabの知っておくべき使い方 – Google Colaborato のメリット・デメリットや基本操作のまとめ 【秒速で無料GPUを使う】深層学習実践Tips on
Colaborato Google ColaboratoryのTPUを試してみる https://research.google.com/colaboratory/faq.html https://www.codexa.net/how-to-use-google-colaboratory/ https://qiita.com/tomo_makes/items/b3c60b10f7b25a0a5 https://qiita.com/koshian2/items/25a6341c035e8a260a01 [ GitPitch @ github/msr-i386/slide_20181103_colaboratory ] 24 / 24