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
続・小さく始めて大きく育てるMLOps2020 / Start small and grow ...
Search
chck
August 28, 2020
Programming
3
3.3k
続・小さく始めて大きく育てるMLOps2020 / Start small and grow big MLOps2020
PyConJP2020
での発表資料です
chck
August 28, 2020
Tweet
Share
More Decks by chck
See All by chck
CyberAgent AI Lab研修 / Container for Research
chck
0
1.7k
CyberAgent AI Lab研修 / Code Review in a Team
chck
2
1.5k
論文読み会 / Socio-Technical Anti-Patterns in Building ML-Enabled Software: Insights from Leaders on the Forefront
chck
0
38
CyberAgent AI事業本部MLOps研修Container編 / Container for MLOps
chck
2
5.4k
論文読み会 / GLAZE: Protecting Artists from Style Mimicry by Text-to-Image Models
chck
0
21
論文読み会 / On the Factory Floor: ML Engineering for Industrial-Scale Ads Recommendation Models
chck
0
8
論文読み会 / GUIGAN: Learning to Generate GUI Designs Using Generative Adversarial Networks
chck
0
13
機械学習開発のためのコンテナ入門 / Container for ML
chck
0
900
Web系企業研究所における研究開発を加速させるエコシステム / Ecosystem accelerates our R&D in CyberAgent AI Lab
chck
0
140
Other Decks in Programming
See All in Programming
今ならAmazon ECSのサービス間通信をどう選ぶか / Selection of ECS Interservice Communication 2025
tkikuc
11
2.7k
Cline指示通りに動かない? AI小説エージェントで学ぶ指示書の書き方と自動アップデートの仕組み
kamomeashizawa
1
550
Cursor Meetup Tokyo ゲノミクスとCursor: 進化と制約のあいだ
koido
2
1k
[初登壇@jAZUG]アプリ開発者が気になるGoogleCloud/Azure+wasm/wasi
asaringo
0
130
AIコーディング道場勉強会#2 君(エンジニア)たちはどう生きるか
misakiotb
1
240
Bytecode Manipulation 으로 생산성 높이기
bigstark
2
360
Prism.parseで 300本以上あるエンドポイントに 接続できる権限の一覧表を作ってみた
hatsu38
1
110
Go Modules: From Basics to Beyond / Go Modulesの基本とその先へ
kuro_kurorrr
0
120
Claude Codeの使い方
ttnyt8701
1
130
SODA - FACT BOOK
sodainc
1
1.1k
AIエージェントはこう育てる - GitHub Copilot Agentとチームの共進化サイクル
koboriakira
0
120
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
41
28k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.3k
How GitHub (no longer) Works
holman
314
140k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
4
200
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Unsuck your backbone
ammeep
671
58k
A Tale of Four Properties
chriscoyier
159
23k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
107
19k
Mobile First: as difficult as doing things right
swwweet
223
9.7k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
Java REST API Framework Comparison - PWX 2021
mraible
31
8.6k
Transcript
続・小さく始めて大きく育てる MLOps2020 Yuki IWAZAKI
I am Yuki Iwazaki Research Engineer at CyberAgent, AI Lab
You can find me at @chck 2014- Back/Frontend Engineer (Ruby, Scala, JavaScript) 2016- Data Scientist (Python) 2017- Research Engineer (Python) Hello! 2
What is MLOps? ML lifecycleを運用・管理 するためのPractice 3
What is ML Lifecycle? DS Projectにおける周期的なProcess - Fetch Data -
Preprocessing - Training - Reporting - Deployment https://www.slideshare.net/databricks/mlflow-infrastructure-for-a-complete-machine-learning-life-cycle 4
Fetch Data 5
Preprocessing 6
Training 7
Reporting 8
ML Lifecycleに潜む罠 9
乱立するJupyter Notebook 10
身元不明なデータ 11
再現しない学習結果 12
引き継ぎできない実験コード 13
14 実験管理 できてますか
ブログ記事: 小さく始めて大きく育てるMLOps2020 15
今日から始められる決定版を紹介したい 16
Hydra 17
Hydra 設定パラメータ管理ツール - pip install hydra-core - 複数のYamlを継承 - 順次読込
- Parameter探索にも 18
Hydra 19
Hydra 20
Hydra 21
Hydra defaults: lightgbm_a.yamlをload 22
Hydra defaults: lightgbm_a.yamlをload lightgbm_b.yamlをload 23
Hydra defaults: lightgbm_a.yamlをload lightgbm_b.yamlをload argsでparamsをoverwrite 24
Hydra Multirun Optionによる順次実行 25
MLflow Tracking 26
MLflow Tracking 実験ログの管理ツール - pip install mlflow - clientからserverに送信し たログが保存され、
UIから可視化できる 27
MLflow Tracking Tracking Server Tracking Client User 28
MLflow Tracking Tracking Serverの起動コマンド 内部でgunicornが動いている 29
MLflow Tracking 30
MLflow Tracking 実験一覧 実験結果 31
MLflow Tracking 32
MLflow Tracking before after (with mlflow) 33
MLflow Tracking before after (with mlflow) 34
MLflow Tracking before after (with mlflow) 35
MLflow Tracking 36
MLflow Tracking 37
MLflow Tracking 38
Tracking Serverのすすめ Tracking Server Tracking Client User MLflow or 実験管理系SaaS
39
Kedro 40
Kedro Workflowの管理ツール - pip install kedro - Fetch Data ->
Preprocessing -> Training -> Reporting の流れをPipeline化 41
Kedro Pipeline 42
Kedro Pipeline Data Catalog Pipeline内で共有したいDataを yamlに定義 Data Connectorとその引数を記述 built-inのCSV, SQL,
S3,,, Custom実装も可能 43
Kedro Pipeline Parameters Pipeline内で共有したいParameterを yamlに定義 Hydraとの連携やMLflowに渡す例も 44
Kedro Pipeline Node Pipelineを組み立てる処理の一単位. Python関数で記述 45
Kedro Pipeline Pipeline Data Catalog, Parameterが共有された NodeのChain 46
47
node: preprocessの実行 48
node: train_modelの実行 49
node: report_accuracyの実行 50
Summary 51
今日のまとめ Parameters Track experiments Workflow 52
おわりに 使い回しを意識した健全なML Lifecycleで 未来の自分やProjectの皆を幸せにしましょう まずは1ツールから. 53
References - 小さく始めて大きく育てるMLOps2020 - https://github.com/chck/ml-management-tools/ - ハイパラ管理のすすめ - ハイパーパラメータをHydra+MLflowで管理しよう -
MLFlowと他ツールの組み合わせ 54
You can find me at ◉ speakerdeck.com/chck ◉ github.com/chck ◉
facebook.com/chck1245 Thanks! 55 ←この発表資料
Appendix 56
Deploymentまで管理するには - こんなのがあります - library依存 - TensorFlow Serving - TorchServe
... - Cloud依存 - SageMaker - AI Platform ... 57
MLOps Yes/No Chart 58