CS 744: RAY Shivaram Venkataraman Fall 2019 ADMINISTRIVIA - - - PowerPoint PPT Presentation

cs 744 ray
SMART_READER_LITE
LIVE PREVIEW

CS 744: RAY Shivaram Venkataraman Fall 2019 ADMINISTRIVIA - - - PowerPoint PPT Presentation

CS 744: RAY Shivaram Venkataraman Fall 2019 ADMINISTRIVIA - Assignment 1 Grades - Assignment 2 due on Fri - Course Project emails Bismarck Supervised learning, Unified Interface Shared memory, Model fits in memory Parameter Server Large


slide-1
SLIDE 1

CS 744: RAY

Shivaram Venkataraman Fall 2019

slide-2
SLIDE 2

ADMINISTRIVIA

  • Assignment 1 Grades
  • Assignment 2 due on Fri
  • Course Project emails
slide-3
SLIDE 3

Machine Learning Bismarck Supervised learning, Unified Interface Shared memory, Model fits in memory Parameter Server Large datasets, large models (PB scale) Consistency model, Fault tolerance Tensorflow Need for flexible programming model Dataflow graph Heterogeneous accelerators

slide-4
SLIDE 4

Bismarck Parameter Server Tensorflow

WORKLOADS

slide-5
SLIDE 5

REINFORCEMENT LEARNING

slide-6
SLIDE 6
slide-7
SLIDE 7
slide-8
SLIDE 8

RL SETUP

slide-9
SLIDE 9

RL REQUIREMENTS

Simulation Training Serving

slide-10
SLIDE 10

RAY API

Tasks Actors

futures = f.remote(args) actor = Class.remote(args) futures = actor.method.remote(args)

  • bjects = ray.get(futures)

ready = ray.wait(futures, k,timeout)

slide-11
SLIDE 11

COMPUTATION MODEL

slide-12
SLIDE 12

ARCHITECTURE

slide-13
SLIDE 13

Global control store

Object table Task table Function table

slide-14
SLIDE 14

RAY SCHEDULER

Global Scheduler Global Control Store

slide-15
SLIDE 15

FAULT TOLERANCE

Tasks Actors GCS Scheduler

slide-16
SLIDE 16

DISCUSSION

https://forms.gle/QQyLbwjAufJNXWnr6

slide-17
SLIDE 17

Consider you are implementing two task: a deep learning model training and a sorting application. When will use tasks vs actors and why ?

slide-18
SLIDE 18
slide-19
SLIDE 19

Considering AllReduce using MPI as the baseline parallel programming task. Discuss the improvements made by MapReduce, Spark over MPI and discuss if/how Ray further contributes to the comparison.

slide-20
SLIDE 20

NEXT STEPS

Next class: Clipper Assignment 2 due this week! Course project