1 of 19

Harnessing the Powers of Cloud TPU:

Examples and Walkthroughs

11th October 2018

Google Next 2018, London

2 of 19

Presentation: live slides

3 of 19

Presenters

  • Yaz Santissi (@yazdotai)
  • Mani Sarkar (@theNeomatrix369)

4 of 19

Thank you

  • GDG London members
  • Google Next 2018
  • Developer communities
  • Everyone who has not been mentioned..

5 of 19

Disclaimer

  • We were having fun while we did this at GDG London events
  • Rough edges there might contain errors
  • Benchmarks are approximations and not necessary accurate
  • We borrowed other people’s work

6 of 19

Agenda

  • CPU v/s GPU v/s TPU
    • Simple benchmarking example via Google Colab
  • Another CPU v/s GPU v/s TPU
    • Time-series prediction example via Google Colab

7 of 19

Familiarity

Notebooks?

Google Colab?

GPUs & TPUs

8 of 19

CPU v/s GPU v/s TPU: Simple benchmarking example

Using notebooks on Google Colab

9 of 19

CPU: Simple benchmarking example

10 of 19

CPU: Simple benchmarking example

11 of 19

CPU v/s GPU v/s TPU: Time-series prediction example

Using notebooks on Google Colab

12 of 19

CPU: Time-series prediction example

If it does not work on Google Colab, try running it on your local machine to capture benchmarking stats

13 of 19

GPU: Time-series prediction example

Check out the impressive stats across the entire notebook

14 of 19

TPU: Time-series prediction example

WIP: beat us to it, any contributions or suggestions to help fix the errors, from the community is welcome

15 of 19

Summary

CPU, GPU, TPU: Simple benchmarks results:

TPUs are ~85x to ~312x faster than CPUs

GPUs are ~30x faster than CPUs

also means

TPUs are ~3x to ~10x faster than GPUs

which are ~30x faster than CPUs

16 of 19

Resources

17 of 19

Citations

Some of images used in this presentation are owned by the respective authors, and most of them come from the https://thenounproject.com.

All the notebooks are either from examples provided via Google Colab or from the respective authors, already cited in the notebooks itself.

18 of 19

Thank you, again...

  • GDG London members
  • Google Next 2018
  • Developer communities
  • Everyone who has not been mentioned..

19 of 19

Feedback and contact

Please share your feedback, to be applied to the live slides for everyone’s benefit

@theNeomatrix369

@yazdotai

@gdgCloud