rapids fosdem 19
play

RAPIDS, FOSDEM19 Dr. Christoph Angerer, Manager AI Developer - PowerPoint PPT Presentation

RAPIDS, FOSDEM19 Dr. Christoph Angerer, Manager AI Developer Technologies, NVIDIA HPC & AI TRANSFORMS INDUSTRIES Computational & Data Scientists Are Driving Change Healthcare Industrial Consumer Internet Automotive Ad Tech /


  1. RAPIDS, FOSDEM’19 Dr. Christoph Angerer, Manager AI Developer Technologies, NVIDIA

  2. HPC & AI TRANSFORMS INDUSTRIES Computational & Data Scientists Are Driving Change Healthcare Industrial Consumer Internet Automotive Ad Tech / Retail Financial / Insurance MarTech 2

  3. DATA SCIENCE IS NOT A LINEAR PROCESS It Requires Exploration and Iterations Manage Data Training Evaluate Deploy Data Model All Structured ETL Visualization Inference Preparation Training Data Data Store Iterate … Cross Validate … Grid Search … Iterate some more. Accelerating`Model Training` only does have benefit but doesn’t address the whole problem 3

  4. DAY IN THE LIFE Or: Why did I want to become a Data Scientist? Data Scientist are valued resources. Why not give them the environment to configure ETL workflow be more productive 4

  5. PERFORMANCE AND DATA GROWTH Post-Moore's law Data sizes continue to grow Moore's law is no longer a predictor of capacity in CPU market growth Distributing CPUs exacerbates the problem 5

  6. TRADITIONAL DATA SCIENCE CLUSTER Workload Profile: Fannie Mae Mortgage Data: • 192GB data set • 16 years, 68 quarters • 34.7 Million single family mortgage loans • 1.85 Billion performance records • XGBoost training set: 50 features 300 Servers | $3M | 180 kW 6

  7. GPU-ACCELERATED MACHINE LEARNING CLUSTER NVIDIA Data Science Platform with DGX-2 1 DGX-2 | 10 kW 1/8 the Cost | 1/15 the Space 1/18 the Power End-to-End 20 CPU Nodes 30 CPU Nodes 50 CPU Nodes 100 CPU Nodes DGX-2 5x DGX-1 0 2,000 4,000 6,000 8,000 10,000 7

  8. DELIVERING DATA SCIENCE VALUE Maximized Productivity Top Model Accuracy Lowest TCO Oak Ridge Global Streaming Media National Labs Retail Giant Company 215x $1B $1.5M Speedup Using RAPIDS Potential Saving with Infrastructure with XGBoost 4% Error Rate Reduction Cost Saving 8

  9. DATA SCIENCE WORKFLOW WITH RAPIDS Open Source, End-to-end GPU-accelerated Workflow Built On CUDA DATA PREDICTIONS DATA PREPARATION GPUs accelerated compute for in-memory data preparation Simplified implementation using familiar data science tools Python drop-in Pandas replacement built on CUDA C++. GPU-accelerated Spark (in development) 9

  10. DATA SCIENCE WORKFLOW WITH RAPIDS Open Source, End-to-end GPU-accelerated Workflow Built On CUDA DATA PREDICTIONS MODEL TRAINING GPU- acceleration of today’s most popular ML algorithms XGBoost, PCA, K-means, k-NN, DBScan, tSVD … 10

  11. DATA SCIENCE WORKFLOW WITH RAPIDS Open Source, End-to-end GPU-accelerated Workflow Built On CUDA DATA PREDICTIONS VISUALIZATION Effortless exploration of datasets, billions of records in milliseconds Dynamic interaction with data = faster ML model development Data visualization ecosystem (Graphistry & OmniSci), integrated with RAPIDS 11

  12. THE EFFECTS OF END-TO-END ACCELERATION Faster Data Access Less Data Movement Hadoop Processing, Reading from disk HDFS HDFS HDFS HDFS HDFS Query ETL ML Train Read Write Read Write Read Spark In-Memory Processing 25-100x Improvement Less code HDFS Language flexible Query ETL ML Train Read Primarily In-Memory GPU/Spark In-Memory Processing 5-10x Improvement More code Language rigid HDFS GPU ReadQuery CPU GPU CPU GPU ML Read ETL Substantially on GPU Read Write Write Read Train RAPIDS 50-100x Improvement Same code Arrow Language flexible ML Query ETL Primarily on GPU Read Train 12

  13. Yes GPUs are fast but … • Too much data movement ADDRESSING CHALLENGES • Too many makeshift data formats IN GPU ACCELERATED • Writing CUDA C/C++ is involved DATA SCIENCE • No Python API for data manipulation 13

  14. DATA MOVEMENT AND TRANSFORMATION The bane of productivity and performance APP B Read Data APP B GPU APP B Copy & Convert Data CPU GPU Copy & Convert GPU APP A Copy & Convert Data APP A APP A Load Data 14

  15. DATA MOVEMENT AND TRANSFORMATION What if we could keep data on the GPU? APP B Read Data APP B GPU APP B Copy & Convert Data CPU GPU Copy & Convert GPU APP A Copy & Convert Data APP A APP A Load Data 15

  16. LEARNING FROM APACHE ARROW From Apache Arrow Home Page - https://arrow.apache.org/ 16

  17. CUDA DATA FRAMES IN PYTHON GPUs at your Fingertips Illustrations from https://changhsinlee.com/pyspark-dataframe-basics/ 17

  18. RAPIDS OPEN GPU DATA SCIENCE 18

  19. RAPIDS Open GPU Data Science Learn what the data science community needs • APPLICATIONS Use best practices and standards • • Build scalable systems and algorithms ALGORITHMS Test Applications and workflows • • Iterate SYSTEMS CUDA ARCHITECTURE 19

  20. RAPIDS COMPONENTS Data Preparation Model Training Visualization cuDF cuML cuGraph PyTorch & Chainer Kepler.GL Analytics Machine Learning Graph Analytics Deep Learning Visualization GPU Memory DASK 20

  21. CUML & CUGRAPH Data Preparation Model Training Visualization cuDF cuML cuGraph PyTorch & Chainer Kepler.GL Analytics Machine Learning Graph Analytics Deep Learning Visualization GPU Memory DASK 21

  22. AI LIBRARIES cuML & cuGraph Machine Learning Graph Analytics XGBoost, Mortgage Dataset, 90x PageRank BFS Jaccard Similarity Decisions Trees Single Source Shortest Path Random Forests Triangle Counting Accelerating more of the AI ecosystem Linear Regressions Louvain Modularity 3 Hours to 2 mins on 1 DGX-1 Logistics Regressions Graph Analytics is fundamental to network analysis Time Series K-Means K-Nearest Neighbor Machine Learning is fundamental to prediction, DBSCAN classification, clustering, anomaly detection and Kalman Filtering recommendations. Principal Components Single Value Decomposition Both can be accelerated with NVIDIA GPU Bayesian Inferencing ARIMA 8x V100 20-90x faster than dual socket CPU Holt-Winters 22

  23. CUDF + XGBOOST DGX-2 vs Scale Out CPU Cluster • Full end to end pipeline • Leveraging Dask + PyGDF Store each GPU results in sys mem then read back in • Arrow to Dmatrix (CSR) for XGBoost • 23

  24. CUDF + XGBOOST Scale Out GPU Cluster vs DGX-2 Chart Title • Full end to end pipeline • Leveraging Dask for multi-node + PyGDF DGX-2 Store each GPU results in sys mem then read back in • Arrow to Dmatrix (CSR) for XGBoost • 5x DGX-1 0 50 100 150 200 250 300 350 ETL+CSV (s) ML Prep (s) ML (s) 24

  25. CUML Benchmarks of initial algorithms 25

  26. NEAR FUTURE WORK ON CUML Additional algorithms in development right now K-means - Released ARIMA – v0.6 K-NN - Released UMAP – v0.6 Kalman filter – v0.5 Collaborative filtering – Q2 2019 GLM – v0.5 Random Forests - v0.6 26

  27. CUGRAPH GPU-Accelerated Graph Analytics Library Coming Soon: Full NVGraph Integration Q1 2019 27

  28. CUDF Data Preparation Model Training Visualization cuDF cuML cuGraph PyTorch & Chainer Kepler.GL Analytics Machine Learning Graph Analytics Deep Learning Visualization GPU Memory DASK 28

  29. CUDF GPU DataFrame library Apache Arrow data format • Pandas-like API • Unary and Binary Operations • • Joins / Merges GroupBys • • Filters User-Defined Functions (UDFs) • • Accelerated file readers Etc. • 29

  30. CUDF Today CUDA With Python Bindings • Low level library containing function A Python library for manipulating GPU • implementations and C/C++ API DataFrames • Importing/exporting Apache Arrow using the Python interface to CUDA C++ with additional • CUDA IPC mechanism functionality • CUDA kernels to perform element-wise math Creating Apache Arrow from Numpy arrays, • operations on GPU DataFrame columns Pandas DataFrames, and PyArrow Tables • CUDA sort, join, groupby, and reduction • JIT compilation of User-Defined Functions operations on GPU DataFrames (UDFs) using Numba 30

  31. CUSTRING & NVSTRING GPU-Accelerated string functions with a Pandas-like API API and functionality is following Pandas: • https://pandas.pydata.org/pandas- docs/stable/api.html#string-handling 800.00 700.00 • lower() 600.00 500.00 milliseconds ~22x speedup • 400.00 find() • 300.00 200.00 • ~40x speedup 100.00 0.00 slice() • lower() find(#) slice(1,15) Pandas cudastrings • ~100x speedup 31

  32. DASK Data Preparation Model Training Visualization cuDF cuML cuGraph PyTorch & Chainer Kepler.GL Analytics Machine Learning Graph Analytics Deep Learning Visualization GPU Memory DASK 32

  33. DASK What is Dask and why does RAPIDS use it for scaling out? • Dask is a distributed computation scheduler built to scale Python workloads from laptops to supercomputer clusters. • Extremely modular with scheduling, compute, data transfer, and out-of-core handling all being disjointed allowing us to plug in our own implementations. • Can easily run multiple Dask workers per node to allow for an easier development model of one worker per GPU regardless of single node or multi node environment. 33

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend