Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
NGC × Singularity での機械学習環境/MachineLearning envi...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
ryo nakamaru
May 24, 2018
Science
910
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
NGC × Singularity での機械学習環境/MachineLearning environment with NGC and Singularity
ryo nakamaru
May 24, 2018
Transcript
48 slides
クラウドを活用した NGC✖Singularity での機械学習環境 GPU Deep Learning Community #8 May 24,
2018 Ryo NAKAMARU, SUPINF Inc., Rescale, Inc.
中丸 良 @pottava • CTO at SUPINF Inc. / Solutions
Architect at Rescale, Inc. • AWS Certified SA, DevOps Engineer - Pro • Google Certified Professional - Cloud Architect Profile !2
SUPINF Inc. !3 • クラウド / コンテナ 中心の コンサルティング /
環境構築 / 受託開発 / 運用 • 直近ではオンプレ × DGX-1 × Kubernetes な機械学習環境の納品など • スピンフ、と読みます
Rescale, Inc. !4 • クラウド HPC プラットフォームを SaaS で提供 •
スケーラブルなシミュレーションや機械学習をとても手軽に • Singularity でのジョブ実行もサポート
!5 Rescale 1. 入力ファイル選んで 2. Singularity 選んで 3. ハードウェア選んで 4.
Submit ボタン押すだけ
機械学習環境 !6
インフラ管理者のための 7 つのヒント !7 1. なぜ Docker か 2. なぜ
NVIDIA GPU Cloud(NGC)か 3. ジョブスケジューラとは何か 4. なぜ Kubernetes か 5. なぜ Singularity か 6. なぜ HPC のジョブスケジューラか 7. なぜクラウドとのハイブリッド環境か
Point of view !8 今日はインフラ管理者視点、かつ学習フェーズのお話です。 ✖ アルゴリズムの話はありません ✖ 推論フェーズの話もありません
1. なぜ Docker か !9
Docker のよさ !10 必要最低限 隔離された 実行環境がすぐ手に入る ・・・・・
Docker のよさ !11 必要最低限 隔離された 実行環境がすぐ手に入る ・・・・・ 気軽にかんたんに 共有できる、再現する ・・・・・
repository push pull
Docker のよさ !12 必要最低限 隔離された 実行環境がすぐ手に入る ・・・・・ 気軽にかんたんに 共有できる、再現する 利用事例
が豊富で 知見が得やすい ・・・・・ repository push pull
2. なぜ NVIDIA GPU Cloud(NGC)か !13
NGC とは? !14 ・NVIDIA 公式の Docker レジストリ ・Docker イメージは毎月更新される ・CUDA
やライブラリはもちろん同梱 ・NVIDIA GPU に最適化された設定 ・なんと無料
NGC のない世界 !15 Dockerfile 職人養成所? 肥大化する リポジトリ 管理者たる 重責!! GPU
最適化 CUDA、ライブラリ、etc ..
NGC のある世界 !16 メンテナンスフリー、利用料もフリー NVIDIA お墨付きの安心感
3. ジョブスケジューラとは何か !17
資源の占有 !18 お一人様機械学習
資源の共有 !19 お一人様機械学習 チームで資源を共有 使います!
全体資源の把握・ジョブの配置 !20 data center cloud お一人様機械学習 チームで資源を共有 会社で全資源を共有 使います! scheduler
ジョブを渡すと空いている 資源に自動配置・計算開始
スケジューラといえば 巷で話題のクーバネーティス !21
4. なぜ Kubernetes か !22
Kubernetes !23 Control plane(管理ノード) 計算ノード 社内 DC
社内 DC • Docker との相性抜群 Kubernetes クラスタ
Kubernetes !24 Control plane(管理ノード) 計算ノード Tesla V100
社内 DC TITAN V 社内 DC • Docker との相性抜群 • NVIDIA さんもサポートを宣言 • 複数 GPU アーキテクチャでも OK ( New )
Kubernetes !25 Control plane(管理ノード) ジョブを定義した YAML を Apply
計算ノード Tesla V100 社内 DC TITAN V 社内 DC • 例えば高性能な Tesla で計算したい! YAML に書いた定義を渡すと・・
Kubernetes !26 Control plane(管理ノード) ジョブを定義した YAML を Apply
計算ノード Tesla V100 社内 DC TITAN V 社内 DC • 空きがあり、条件に合うノードに配置 • nvidia-docker v1 / v2 すでに対応済 → コンテナへ適切に GPU 割り当て
Kubernetes !27 Control plane(管理ノード) 計算ノード Tesla
V100 社内 DC TITAN V 社内 DC Tesla P100 AWS … • 専用線で繋げばクラウドもクラスタに • Federated という方法もあったり
Kubernetes !28 Control plane(管理ノード) ジョブを定義した YAML を Apply
計算ノード Tesla V100 社内 DC TITAN V 社内 DC Tesla P100 AWS … • “クラウドで動かしたい” or / and • “Tesla P100 で動かしたい”
k8s で十分じゃない? !29 • そうですね!私自身、本番稼働を経験したのはここまで。 • 大切なのは、要件にあった技術が選べること ‣ この先の話も知っていると選択肢が広がる ‣
ツールの利用想定にない要件で使うのはお互い不幸 • HPC を支える技術の深さは貴重 ‣ DL フレームワークの追従, etc ..
そんな中、では !30
5. なぜ Singularity か !31
Better Docker !32 もっと計算を速くしたい勢 運用を改善したい勢 IB 使いたい ノード またぎたい もっと
MPI かんたんに root 渡すの 無理です 既存の スケジューラ 使いたい
Singularity • http://singularity.lbl.gov • Singularity = Docker のいいところ(特に再現性)+ HPC サポート
‣ 基本思想は同じ: Build, Ship, and Run any app, Anywhere ‣ 高性能ハードウェアそのまま、ジョブスケジューラもそのまま • DockerHub のように公式レジストリもあるよ ‣ https://singularity-hub.org !33
国内採用事例 !34 And more ..
でも Singularity、Kubernetes で動かないよね? じゃあ何を使えばいいの・・ !35
6. なぜ HPC のジョブスケジューラか !36
Web 界隈のジョブスケジューラ !37 Web (Docker) 界隈 ・Singularity 対応なし ・基本ホストリソースの 切り売り
scheduler GPU GPU GPU … GPU GPU GPU … 確保!
HPC 系ジョブスケジューラとの違い !38 Web (Docker) 界隈 ・Singularity 対応なし ・基本ホストリソースの 切り売り
scheduler GPU GPU GPU … GPU GPU GPU … 確保! scheduler GPU GPU GPU … GPU GPU GPU … 確保! HPC 業界 ・ノードをまたいで リソースを確保できる ・ノード間通信するための設定もしてくれる
深層学習フレームワークの直近の傾向 !39
7. なぜクラウドとのハイブリッド環境か !40
クラウド?オンプレ?いいとこ取り? !41 ・セキュリティポリシー データ転送制限 etc.. (仕方ないやつ・・) ・クラウドほんとに安い? 例 1)GeForce +
AWS 例 2)大企業の調達コスト ・データ転送速度 ・どちらが最新 GPU? ・鬼のチューニング
Rescale で検証中の例 !42 WebUI から ぽちっと
Rescale で検証中の例 !43 Jupyter notebook を入れ ローカルで試行錯誤
Rescale で検証中の例 !44 Jupyter notebook を入れ ローカルで試行錯誤 Singularity に変換して
Rescale で検証中の例 !45 Jupyter notebook を入れ ローカルで試行錯誤 Singularity に変換して クラウドで高速に並列計算
DEMO !46
NGC Registry API Library for Go !47 レジストリから 情報を抜きたい
ご静聴ありがとうございました 参考文献: • ディープ ラーニング コンテナー - NVIDIA GPU Cloud
(NGC) https://www.nvidia.com/ja-jp/gpu-cloud/deep-learning-containers/ • Containers for Science, Reproducibility and Mobility SINGULARITY P2 https://www.intel.com/content/dam/www/public/us/en/documents/presentation/hpc- containers-singularity-advanced.pdf • Singularityで分散深層学習(産総研佐藤さん) https://www.slideshare.net/htsst/singularity-85959573
More Decks by ryo nakamaru
See All by ryo nakamaru
AWSで楽をするサービスメッシュ入門/appmesh-trial
pottava
1
1.7k
reinforce-2019-recap-lt
pottava
2
4.2k
ScaleShift-jp-2019-summer
pottava
1
240
Firecracker とは何か/what is Firecracker
pottava
12
5.7k
ハイブリッド並列 on Kubernetes/hybrid-parallel-program-on-kubernetes
pottava
1
480
AWS Fargate + Code 兄弟で始める継続的デリバリー / Continuous Delivery with AWS Fargate and Code brothers
pottava
12
3.4k
Singularity と NVIDIA GPU Cloud で作る ハイブリッド機械学習環境の構築 / Building a hybrid environment for Machine Learning with Singularity and NGC
pottava
3
1.6k
明日から始めるちょい足し λ / get-started-with-aws-lambda
pottava
4
2.6k
NGC と Singularity によるハイブリッド機械学習環境 / A hybrid environment for Machine Learning with NGC and Singularity
pottava
0
560
Other Decks in Science
See All in Science
生成AIが科学とRAにもたらしていること:メタサイエンスの視点から
rmaruy
0
180
勾配流から乖離した学習ダイナミクス
hanbao
1
1.2k
Collective Predictive Coding Hypothesis: Emergence of Language and Cooperative Behaviors
tanichu
0
250
AI Agents for Earth Observation
sabman
0
140
JPA2026_NetworkSymposium_Omizu
junkashihara
0
110
Visual Linear Algebra - Lecture at Shosen Grande
hiranabe
0
730
CVPR2026_VGGTとその仲間たち
mickey_0226
0
1.3k
HOLO: Homography-Guided Pose Estimator Network for Fine-Grained Visual Localization on SD Maps
tomoaki0705
0
180
J-STAGE全文XML登載必須化について
xspa2012
0
1.7k
[Webinaire presse] Sécheresse 2026 : quelles conséquences techniques en élevage de ruminants et quels leviers d'action ?
institutdelelevage
PRO
0
380
ssmonline #51 ヤマサキ春のサメ祭り 2026 / ssmjp Yamasaki Spring JAWS Festival 2026
naospon
1
180
20260722【JAWS-UG東京 ランチタイムLT会 #37④】AWS Well-Architectedフレームワークに沿った回答をするAIエージェントを作ってみた
nozakijcom
1
170
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
エンジニアに許された特別な時間の終わり
watany
109
250k
Code Reviewing Like a Champion
maltzj
529
40k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
Exploring anti-patterns in Rails
aemeredith
4
570
Bash Introduction
62gerente
615
220k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
640
Ruling the World: When Life Gets Gamed
codingconduct
0
440
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
520
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
480
The SEO identity crisis: Don't let AI make you average
varn
0
630