Top Banner
Google Cloud Platform Empowers TensorFlow and Machine Learning
57

Google Cloud Platform Empowers TensorFlow and Machine Learning

Jan 08, 2017

Download

Technology

Hadoop Summit
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Google Cloud Platform Empowers TensorFlow and Machine Learning

Google Cloud Platform Empowers

TensorFlow and Machine Learning

Page 2: Google Cloud Platform Empowers TensorFlow and Machine Learning

+Kazunori Sato@kazunori_279

Kaz Sato

Staff Developer AdvocateTech Lead for Data & AnalyticsCloud Platform, Google Inc.

Page 3: Google Cloud Platform Empowers TensorFlow and Machine Learning

What we’ll cover

What is Neural Network and Deep Learning

Machine Intelligence at Google Scale

Cloud Vision API and Speech API

TensorFlow and Cloud Machine Learning

Page 4: Google Cloud Platform Empowers TensorFlow and Machine Learning

What is Neural Network and Deep Learning

Page 5: Google Cloud Platform Empowers TensorFlow and Machine Learning

Neural Network is a function that can learn

Page 6: Google Cloud Platform Empowers TensorFlow and Machine Learning

xn

> b?

w1

wn

x2

x1

Mimicking the behavior of biological neurons

Page 7: Google Cloud Platform Empowers TensorFlow and Machine Learning

How do you classify them?

Page 8: Google Cloud Platform Empowers TensorFlow and Machine Learning

weights

bias(threshold)

Programmers would specify the parameters

Page 9: Google Cloud Platform Empowers TensorFlow and Machine Learning

Let’s see how neural network solves the problem

Page 10: Google Cloud Platform Empowers TensorFlow and Machine Learning

The computer tries to find the best parameters

A neuron classifies a data point into two kinds

Page 11: Google Cloud Platform Empowers TensorFlow and Machine Learning

Gradient Descent: changing the params gradually to reduce errors

Page 12: Google Cloud Platform Empowers TensorFlow and Machine Learning

How do you classify them?

Page 13: Google Cloud Platform Empowers TensorFlow and Machine Learning

More neurons = More features to extract

Page 14: Google Cloud Platform Empowers TensorFlow and Machine Learning

Mapping inputs to

a feature space,

classifying with

a hyperplane

From: Neural Networks, Manifolds, and Topology, colah's blog

Page 15: Google Cloud Platform Empowers TensorFlow and Machine Learning

How about this?

Page 16: Google Cloud Platform Empowers TensorFlow and Machine Learning

More hidden layers = more hierarchies of features

Page 17: Google Cloud Platform Empowers TensorFlow and Machine Learning

How about this?

Page 18: Google Cloud Platform Empowers TensorFlow and Machine Learning

We need to build a Deep Neural Network

From: Convolutional Deep Belief Networks for Scalable Unsupervised Learning of Hierarchical Representations, Honglak Lee et al.

Page 19: Google Cloud Platform Empowers TensorFlow and Machine Learning

From: mNeuron: A Matlab Plugin to Visualize Neurons from Deep Models, Donglai Wei et. al.

Page 20: Google Cloud Platform Empowers TensorFlow and Machine Learning

Machine Intelligence at Google scale

Page 21: Google Cloud Platform Empowers TensorFlow and Machine Learning

The two big challenges of Deep Learning:Computing Power and Training Data

Page 22: Google Cloud Platform Empowers TensorFlow and Machine Learning
Page 23: Google Cloud Platform Empowers TensorFlow and Machine Learning

Enterprise

Google Cloud is

The Datacenter as a Computer

Page 24: Google Cloud Platform Empowers TensorFlow and Machine Learning

Jupiter network

10 GbE x 100 K = 1 Pbps

Consolidates servers with

microsec latency

Page 25: Google Cloud Platform Empowers TensorFlow and Machine Learning

Borg

No VMs, pure containers

10K - 20K nodes per Cell

DC-scale job scheduling

CPUs, mem, disks and IO

Page 26: Google Cloud Platform Empowers TensorFlow and Machine Learning

Confidential & ProprietaryGoogle Cloud Platform 26

Google Cloud +

Neural Network =

Google Brain

Page 27: Google Cloud Platform Empowers TensorFlow and Machine Learning

What's the scalability of Google Brain?

"Large Scale Distributed Systems for Training Neural

Networks", NIPS 2015

○ Inception / ImageNet: 40x with 50 GPUs

○ RankBrain: 300x with 500 nodes

Page 28: Google Cloud Platform Empowers TensorFlow and Machine Learning
Page 29: Google Cloud Platform Empowers TensorFlow and Machine Learning
Page 30: Google Cloud Platform Empowers TensorFlow and Machine Learning

Externalizing the powerto developers

Page 31: Google Cloud Platform Empowers TensorFlow and Machine Learning

Image analysis with pre-trained models

REST API: receives an image and returns a JSON

No Machine Learning skill required

From $2.50 / 1,000 units (no charge* to try)

General Availability

Cloud Vision API

* You will be charged for Google Cloud Storage and other Google Cloud Platform resources used in your project.

Page 32: Google Cloud Platform Empowers TensorFlow and Machine Learning
Page 33: Google Cloud Platform Empowers TensorFlow and Machine Learning

3333

Demo

Page 34: Google Cloud Platform Empowers TensorFlow and Machine Learning

Pre-trained models. No ML skill required

REST API: receives audio and returns texts

Supports 80+ languages

Streaming or non-streaming

Limited Preview - cloud.google.com/speech

Cloud Speech API

Page 35: Google Cloud Platform Empowers TensorFlow and Machine Learning

3535

Demo

Page 36: Google Cloud Platform Empowers TensorFlow and Machine Learning

TensorFlow and Cloud ML

Page 37: Google Cloud Platform Empowers TensorFlow and Machine Learning

Ready to use Machine Learning models

Use your own data to train models

Cloud Vision API

Cloud Speech API

Cloud Translate API

Cloud Machine Learning

Develop - Model - Test

Google BigQuery

Stay Tuned….

Cloud Storage

Cloud Datalab

NEW

Alpha

GA BetaGA

AlphaGA

GA

Page 38: Google Cloud Platform Empowers TensorFlow and Machine Learning

Google's open source library for

machine intelligence

tensorflow.org launched in Nov 2015

Used by many production ML projects

What is TensorFlow?

Page 39: Google Cloud Platform Empowers TensorFlow and Machine Learning

# define the networkimport tensorflow as tfx = tf.placeholder(tf.float32, [None, 784])W = tf.Variable(tf.zeros([784, 10]))b = tf.Variable(tf.zeros([10]))y = tf.nn.softmax(tf.matmul(x, W) + b)

# define a training stepy_ = tf.placeholder(tf.float32, [None, 10])xent = -tf.reduce_sum(y_*tf.log(y))step = tf.train.GradientDescentOptimizer(0.01).minimize(xent)

Page 40: Google Cloud Platform Empowers TensorFlow and Machine Learning

TensorBoard: visualization tool

Page 41: Google Cloud Platform Empowers TensorFlow and Machine Learning

Portable and ScalableTraining on:

Mac/Windows

GPU server

GPU cluster / Cloud

Running on:

Android, iOS

RasPi

Page 42: Google Cloud Platform Empowers TensorFlow and Machine Learning

Distributed Training and Prediction with TensorFlow

Page 43: Google Cloud Platform Empowers TensorFlow and Machine Learning

Distributed Training with TensorFlow

Page 44: Google Cloud Platform Empowers TensorFlow and Machine Learning

Data Parallelism

split data,

share model

Page 45: Google Cloud Platform Empowers TensorFlow and Machine Learning

● CPU/GPU scheduling

● Communications

○ Local, RPC, RDMA

○ 32/16/8 bit quantization

● Cost-based optimization

● Fault tolerance

Distributed Training with TensorFlow

Page 46: Google Cloud Platform Empowers TensorFlow and Machine Learning

Tensor Processing Unit

ASIC for TensorFlow

Designed by Google

10x better perf / watt

latency and efficiency

bit quantization

Page 47: Google Cloud Platform Empowers TensorFlow and Machine Learning

TPU on Production

RankBrain

AlphaGo

Google Photos

Speech

and more

Page 48: Google Cloud Platform Empowers TensorFlow and Machine Learning

Fully managed distributed training and prediction

Supports custom TensorFlow graphs

Integrated with Cloud Dataflow and Cloud Datalab

Limited Preview - cloud.google.com/ml

Cloud Machine Learning (Cloud ML)

Page 49: Google Cloud Platform Empowers TensorFlow and Machine Learning

Jeff Dean's keynote: YouTube video

Define a custom TensorFlow graph

Training at local: 8.3 hours w/ 1 node

Training at cloud: 32 min w/ 20 nodes (15x faster)

Prediction at cloud at 300 reqs / sec

Cloud ML demo

Page 50: Google Cloud Platform Empowers TensorFlow and Machine Learning

TensorFlow in the Wild

Page 51: Google Cloud Platform Empowers TensorFlow and Machine Learning

TensorFlow

powered

Fried Chicken

Nugget Server

From: http://www.rt-net.jp/karaage1/

Page 52: Google Cloud Platform Empowers TensorFlow and Machine Learning

TensorFlow poweredCucumber Sorter

From: http://workpiles.com/2016/02/tensorflow-cnn-cucumber/

Page 53: Google Cloud Platform Empowers TensorFlow and Machine Learning

TV popstar classifierwith 95% accuracy

From: http://memo.sugyan.com/entry/2016/06/14/220624

Page 54: Google Cloud Platform Empowers TensorFlow and Machine Learning

Discriminative Localization

From: https://github.com/jazzsaxmafia/Weakly_detector

Page 55: Google Cloud Platform Empowers TensorFlow and Machine Learning

From: http://otoro.net/Generative Arts with TensorFlow

Page 56: Google Cloud Platform Empowers TensorFlow and Machine Learning

Thank you!

Page 57: Google Cloud Platform Empowers TensorFlow and Machine Learning

Links & Resources

Large Scale Distributed Systems for Training Neural Networks, Jeff Dean and Oriol Vinals

Cloud Vision API: cloud.google.com/vision

Cloud Speech API: cloud.google.com/speech

TensorFlow: tensorflow.org

Cloud Machine Learning: cloud.google.com/ml

Cloud Machine Learning: demo video