nsml a machine learning platform that enables you focus
play

NSML : A Machine Learning Platform That Enables You Focus on Your - PowerPoint PPT Presentation

NSML : A Machine Learning Platform That Enables You Focus on Your Models. ML-Sys WS 2017 @ NIPS Nako Sung , Minkyu Kim, Hyunwoo Jo, Youngil Yang, Jinwoong Kim, Leonard Lausen, Youngkwan Kim, Gayoung Lee, Donghyun Kwak, Jung-Woo Ha, and Sunghun


  1. NSML : A Machine Learning Platform That Enables You Focus on Your Models. ML-Sys WS 2017 @ NIPS Nako Sung , Minkyu Kim, Hyunwoo Jo, Youngil Yang, Jinwoong Kim, Leonard Lausen, Youngkwan Kim, 
 Gayoung Lee, Donghyun Kwak, Jung-Woo Ha, and Sunghun Kim CLOVA AI Research (CLAIR), NAVER | LINE, Search Solution, NAVER Webtoon, HKUST

  2. What is NSML? • A machine learning platform that enables you focus on your models • Two options: on-premise / PaaS

  3. https://xkcd.com/303/

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

  5. https://www.youtube.com/watch?v=lxZyxxHOw3Y Wasted Time

  6. https://www.formula1.com/en/latest/features/2017/2/F1-cars-of-2017.html

  7. https://www.formula1.com/en/latest/features/2017/2/F1-cars-of-2017.html Importance of Fast Machines (Multiple Servers and GPUs)

  8. https://www.sportskeeda.com/f1/what-happens-during-f1-pit-stop

  9. https://www.sportskeeda.com/f1/what-happens-during-f1-pit-stop ML Research Challenges: Incidental Tasks

  10. GPU GPU GPU GPU (busy) (idle) (busy) (idle) GPU GPU GPU GPU (idle) (idle) (idle) (idle) Heavy Model GPU GPU GPU GPU (idle) (idle) (idle) (idle) Model Heavy GPU GPU GPU GPU (idle) (idle) (idle) (idle) Model Heavy Heavy Model

  11. ML Research Challenges: Resource Scheduling and Utilization 14 GPUs available but only 7 GPUs can be used in a single machine. GPU GPU GPU GPU (busy) (idle) (busy) (idle) GPU GPU GPU GPU (idle) (idle) (idle) (idle) Heavy Model GPU GPU GPU GPU (idle) (idle) (idle) (idle) Model Heavy GPU GPU GPU GPU (idle) (idle) (idle) (idle) Model Heavy Heavy Model

  12. https://livingthing.danmackinlay.name/automl.html

  13. https://livingthing.danmackinlay.name/automl.html ML Research Challenges: Hyperparameter Tuning

  14. Tensor board Visdom TRAINING TRAINING DONE DONE γ =1e-2 γ =0.3, K=1 γ =0.1 γ =0.2

  15. Visdom Tensor board ML Research Challenges: Multiple Experiments TRAINING TRAINING DONE DONE γ =1e-2 γ =0.3, K=1 γ =0.1 γ =0.2

  16. https://www.linkedin.com/pulse/protecting-workers-who-work-alone-sandie-baillargeon

  17. https://www.linkedin.com/pulse/protecting-workers-who-work-alone-sandie-baillargeon ML Research Challenges: Isolated Researchers

  18. Challenges • Slack • Incidental Tasks • Ine ffi cient resource utilization • Naive hyperparameter tuning • Painful keeping track of multiple sessions • Isolated researchers

  19. Requirements of ML Platforms • Resource Management • Better computational resource management • Data Management • Post datasets once and reuse them for multiple models • Share datasets with others • Serverless Configuration • No framework / library lock-in • Easy and lightweight task submission

  20. Requirements of ML Platforms • Experiment Management and Visualization • Parallel runs with di ff erent jobs priorities • Automatic visualization and summarization of learning progress • Leaderboard • Leaderboard for each dataset to compare models and hyper parameters • AutoML • Experiment performance prediction based on previously run experiments. • Automatic hyper parameter optimization based on the performance predictions.

  21. Limitations of Previous Solutions • Vendor lock-in (Cloud service) • Ine ffi cient model experiments • Inconsistent research environments • Still hard to keep track of experiments

  22. This work was done for NCSoft and was presented at Nvidia GTC Korea 2015. MINI

  23. This work was done for NCSoft and was presented at Nvidia GTC Korea 2015. My Previous Work in Early 2015 MINI

  24. 
 URI {Dataset} / {User id} / {Session id} / {Model id} • Every dataset, session and model have uniform resource identifier. 
 CIFAR_10 CIFAR 10 dataset CIFAR_10/researcher_A/24 research_A’s 24th session for CIFAR_10 CIFAR_10/researcher_A/24/322 Snapshot from epoch 322

  25. Easy One-Liner CLI

  26. Easy One-Liner CLI Dataset registration

  27. Easy One-Liner CLI Dataset registration Train

  28. Easy One-Liner CLI Dataset registration Train Serve

  29. Parallel Experiments to Kill Slack Distributed responses Exp. #1 Exp #2. vari. 1 Exp #2. vari. 2 Exp #3 Time

  30. https://www.interaction-design.org/literature/book/the-encyclopedia-of-human-computer-interaction-2nd-ed/data-visualization-for-human-perception Need to Visualize • Balance your brain to understand without e ff ort

  31. Flexible Analysis DONE Your code @1 TRAINING NSML Visualization tool Your code @2 TRAINING Your code @3

  32. Dynamic Control Flow Typical training loop NSML Forward pass Backward pass Communicate to NSML Command queue model 1 Watch a variable change_lr(0.2) 2 Change a hyper parameter on the fly nsml.save(‘quick’) 3 Save current snapshot nsml.load(424) 4 Load saved snapshot 5 vis.image(model.generate(2)) Generate an image to visdom … …. …

  33. CLI • Base of advanced features like save, load, infer, …

  34. Bring Your Own Workspace • (Almost) Nothing to learn • Cached (Fast)

  35. Bring Your Own Workspace • (Almost) Nothing to learn • Cached (Fast)

  36. No Framework Lock-in

  37. GPU server 10.0.0.1 python your_model.py stdout Interactive Mode

  38. GPU server 10.0.0.1 python your_model.py stdout Interactive Mode

  39. Pragmatic Research

  40. Collaboration and Competition Leaderboard, CI-ML

  41. New Workflow for ML Research Collaboration and Competition Leaderboard, CI-ML

  42. Collaborative Research • Easy to reproduce and extend other’s research.

  43. Collaborative Research • Easy to reproduce and extend other’s research.

  44. Cohesive and Competitive Dataset-centric environment Models are ranked automatically Standardized and Quantified Easy to compete Towards AutoML

  45. Cohesive and Competitive Dataset-centric environment Models are ranked automatically Standardized and Quantified Easy to compete Towards AutoML

  46. AutoML • Quantitive model analysis makes ML workflow as a gym of AutoML

  47. Dataset ASR Bob’s model 12 98.2% Bob’s model 13 94.2% Alice’s model 4 92.1% REST API 
 Seamless Connection to Services SOTA server https://service.nsml.navercorp.com/ASR

  48. Dataset ASR Bob’s model 12 98.2% Bob’s model 13 94.2% Alice’s model 4 92.1% Alice’s model 5 98.3% REST API 
 Seamless Connection to Services SOTA server https://service.nsml.navercorp.com/ASR

  49. Q1. 2018

  50. https://research.clova.ai/nsml-alpha Thank you Several Hundreds of GPUs for this alpha (free)

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