World's Fastest Machine Learning With...

33
World's Fastest Machine Learning With GPUs http://github.com/h2oai/h2o4gpu Speaker: Jonathan C. McKinney

Transcript of World's Fastest Machine Learning With...

Page 1: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

World's FastestMachine Learning

With GPUs

http://github.com/h2oai/h2o4gpuSpeaker: Jonathan C. McKinney

Page 2: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

H2O4GPU TEAM

Mateusz Erin Navdeep Rory Terry

Karen Arno Jonathan Steve

Page 3: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

Machine Learning

c

Deep Learning

Page 4: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization
Page 5: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

6

RISE OF GPU COMPUTING

GPU-Computing perf1.5X per year

1000Xby 2025

102

103

104

105

106

107

Single-threaded perf

1.5X per year

1.1X per year

APPLICATIONS

SYSTEMS

ALGORITHMS

CUDA

ARCHITECTURE

Page 6: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization
Page 7: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

8

github.com/gpuopenanalyticsGPU Data Frame (GDF)

Ingest/Parse

Exploratory Analysis

Feature Engineering

ML/DL Algorithms

Grid Search

Scoring

ModelExport

Page 8: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

H2O4GPU/ Open-Source: http://github.com/h2oai/h2o4gpu

/ Used within our own Driverless AI Product to boost performance 30X

/ Scikit-Learn Python API (and now R API)

/ All Scikit-Learn algorithms included

/ Important algorithms ported to GPU

Page 9: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization
Page 10: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

11

Driverless AI

https://www.youtube.com/watch?v=KkvWX3FD7yI

Page 11: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

12

Driverless AI

Page 12: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

13

ModelAccuracy & Speed

Page 13: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

Generalized Linear Model

/ Algorithm:‒ A solver for convex optimization problems

in graph form using Alternating Direction Method of Multipliers (ADMM)

/ Solvers: Lasso, Ridge Regression, Logistic Regression, and Elastic Net

Regularization/ Improvements to original POGS:

‒ Full alpha search‒ Cross Validation‒ Early Stopping + Warm Start‒ Added Scikit-learn like API‒ Supports multiple GPUs

Page 14: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

15

https://www.youtube.com/watch?v=LrC3mBNG7WUhttps://github.com/h2oai/h2o4gpu/blob/master/examples/py/demos/Multi-GPU-H2O-GLM-simple.ipynb

Page 15: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

16

https://www.youtube.com/watch?v=4RKSXNfreLE

Page 16: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

K-Means

• Significantly faster than scikit-learn implementation (50x)

• Significantly faster than other GPU implementations (5x-10x)

• Supports kmeans++/kmeans|| initialization

• Supports multiple GPUs

• Supports batching data if exceeds GPU memory

Page 17: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

https://github.com/h2oai/h2o4gpu/blob/master/examples/py/demos/H2O4GPU_KMeans_Images.ipynb

K-Means

Page 18: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

19

10 with latest solver

Page 19: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization
Page 20: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

Principle Component Analysis (PCA)

Page 21: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization
Page 22: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization
Page 23: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization
Page 24: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

Generate faces from PCA

Page 25: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization
Page 26: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

Gradient Boosting Machines

/ Based upon XGBoost

/ Raw floating point data -> Binned into Quantiles/ Quantiles are stored as compressed instead of floats

/ Compressed Quantiles are efficiently transferred to GPU/ Sparsity is handled directly with highly GPU efficiency

/ Multi-GPU by sharding rows using NVIDIA NCCL AllReduce

Page 27: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

Tree Growth Algorithms

Page 28: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

29

https://www.youtube.com/watch?v=NkeSDrifJdg

171 with latest solver

87

51

Page 29: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization
Page 30: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

31

Driverless AI on GPUs

https://www.youtube.com/watch?v=KkvWX3FD7yI

Page 31: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

32

Page 32: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

33

Driverless AI — Competitive with Kagglers!

Top 8 position in Kaggle with zero manual labor!(ranked above multiple Kaggle Grandmasters)

https://www.kaggle.com/c/mercedes-benz-greener-manufacturing/leaderboard

Page 33: World's Fastest Machine Learning With GPUson-demand.gputechconf.com/gtc/2018/presentation/s8523... · 2018-04-26 · Generalized Linear Model / Algorithm: ‒A solver for convex optimization

H2O4GPUhttp://github.com/h2oai/h2o4gpuhttps://stackoverflow.com/questions/tagged/h2o4gpuhttps://gitter.im/h2oai/h2o4gpu

Thank You!Questions?