machine learning on blue waters using tensorflow with the
play

Machine Learning on Blue Waters Using TensorFlow with the Image - PowerPoint PPT Presentation

2/8/18 Machine Learning on Blue Waters Using TensorFlow with the Image Feature Detection Problem Or: How I Learned to Stop Worrying And Love AI Presented By: Dr. Aaron D. Saxton Todays Topics Blue Waters overview TensorFlow Basics


  1. 2/8/18 Machine Learning on Blue Waters Using TensorFlow with the Image Feature Detection Problem Or: How I Learned to Stop Worrying And Love AI Presented By: Dr. Aaron D. Saxton

  2. Todays Topics • Blue Waters overview • TensorFlow Basics • Statistics Review • Neural Networks • Convolutions • Convolutional Neural Networks • ImageNet • Blue Waters TensorFlow Process • Distributed Tensor Flow • TensorBoard 2

  3. Blue Waters Overview • Brief Summary • AMD Interlagos • NVIDIA Tesla • 22,636 XE Compute Nodes • 4,228 XK Compute Nodes • Cray Gemini Interconnect 3

  4. Blue Waters Overview 2 XK nodes H H T T 3 3 PCIe Gen2 H H T T 3 3 2 XE nodes 4

  5. Blue Waters Overview 13.34 PFLOPS 1.66 PB IB Switch >1 TB/sec Scuba Subsystem : External Servers 10/40/100 Gb Storage Configuration Ethernet Switch for User Best Access 100 GB/sec 400+ Gb/sec WAN Spectra Logic: 200 usable PB Sonexion: 26 usable PB

  6. TensorFlow Basics • Python API • C++ under the hood • Mediator Design Pattern • Uses python context manager ( with ) • Workflow • Construct operations • Assign to name scope and or device • Enter Session context • run() • www.tensorflow.org/programmers_guide/low_level_intro 6

  7. TensorFlow Basics Demo 7

  8. Statistics Review Simple y = $ % & + ( regression • • Least Squares to find m,b With data set { & * , , * } *./,..,1 • • Very special, often hard to measure , * • Let the error be 1 [(, * − $ % & * + ( ] 8 • 2 = ∑ *./ Minimize 9 with respect to $ and ( . • • Simultaneously Solve • 2 : $, ( = 0 • 2 < ($, () = 0 • Linear System We will consider more general , = >(&) • 2 : $, ( = 0 and 2 < $, ( = 0 may not be linear • 8

  9. Statistics Review • Regressions with parameterized sets of functions. e.g. • ! = #$ % + '$ + ( (quadratic) • ! = ∑ # * $ * (polynomial) • ! = +, -. (exponential) / • ! = /01 2(4567) (logistic) • After optimal parameters found, • Use function for inference • Have $ , compute ! 9

  10. Neural Networks • Activation functions Logistic ReLU (Rectified Linear Unit) 1.5 1.5 1 0 # = 0 # = 1 0.5 0.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5 Arctan 2.5 0 # = -7.5 -5 -2.5 0 2.5 5 7.5 10 -2.5 • Softmax + ,- • ! " # $ , # & , … , # ( = ∑ + ,/ 10

  11. Neural Networks • Parameterized function • ! " = % & '( + & ( * • + , = - '. + - . ! • / , (*) = 2 . (+) • - '3 , - 3 , & '( , & ( + → 6 * • Weights to be optimized ! 11

  12. Neural Networks • Finding Weights ! "# , ! # , % "& , % & • Back propagation • Nothing more than chain rule • Take partial derivative of error function ' • This text is a good reference for nitty gritty details • The Elements of Statistical Learning, Second Eddition, by Trevor Hastie, Robert Tibshirani, Jerome Friedman • Back propagation give errors (or loss) • Gradient Decent tells you how to update weights 12

  13. Convolutions • For two functions, ! " , $ " . • (! ∗ $)(") = ∫ ! + $ " − + -+ /. • $ is the kernel to ! • Above is a rolling average • http://setosa.io/ev/image-kernels/ 13

  14. Convolutional Neural Networks • https://adeshpande3.github.io/adeshpande3.githu b.io/The-9-Deep-Learning-Papers-You-Need-To- Know-About.html • Highlights • AlexNet • VGG Net • GoogLeNet (Inception) • Microsoft ResNet 14

  15. ImageNet • www.image-net.org • Large High Quality Dataset • 14,197,122 Images • 21841 synsets • Runs the Large Scale Visual Recognition Challenge (ILSVRC) • Annotated • Bounding Boxes • synset • WordNet (http://wordnet.princeton.edu) 15

  16. ImageNet • Blue Waters hosts copy of ImageNet • Legal Term of Access • Create account on www.image- net.org • Navigate to Term of Access • Accept Term of Access • Take screen shot or print to PDF Term of Access with your name on it. • Email to saxton@illinois.edu • After I receive your Term of Access I will give your Blue Waters user read permission to data 16

  17. ImageNet Demo (Archive Tour) 17

  18. Blue Waters Tensorflow Process • github.com/asaxton/ncsa-bluewaters-tensorflow • Clone repo • cd ncsa-bluewaters-tensorflow/datasets/imagenet • qsub extract_data_from_archive.pbs • Wait for completion • qsub build_imagenet_data.pbs • Wait for completion • cd ncsa-bluewaters-tensorflow/run_scripts • qsub distributed_tf_launch.pbs • Result will be in the directory checkpoint_dir 18

  19. Blue Waters TensorFlow Process Demo (Code Tour) 19

  20. Distributed TensorFlow • Resoures • www.tensorflow.org/deploy/distributed • www.oreilly.com/ideas/distributed-tensorflow 20

  21. Distributed TensorFlow Demo (Code Tour) 21

  22. TensorBoard • Grab your checkpoint Demo 22

Recommend


More recommend