Slide 1

Slide 1 text

Nairobi MLOps with TFX (TensorFlow Extended) Olayinka Peter Oluwafemi GDE, Machine Learning

Slide 2

Slide 2 text

MLOps with TFX (TensorFlow Extended)

Slide 3

Slide 3 text

The Discipline of ML Engineering Programming took form over the decades and matured into the discipline of Software Engineering. Can we say the same for applied ML yet? No? Why?

Slide 4

Slide 4 text

“But Software Engineering Principles Already Can Suffice?” Well, someone could say this. But, extended forms of software engineering have their own “engineering” procedures. E.g, Mobile Engineering.

Slide 5

Slide 5 text

The “Smooth Sail” of Applied ML in Prod? While ML Algorithms are important, they are usually insufficient in achieving the successful application of ML in a single product. There are more essential aspects in the ML life cycle.

Slide 6

Slide 6 text

“Sibyl”, the birth of TFX In 2007, a team of Googlers built Sibyl, a platform with the purpose of enabling massive-scale ML, catered to production use. What Sibyl focused on were tools for several aspects of the ML workflow including Data Ingestion, Data Analysis and Validation, Training, Model Analysis, and Training-Serving Skew Detection.

Slide 7

Slide 7 text

TensorFlow 🎉 Fast-forward to 2015 when Google announced the public release of TensorFlow. The superpower of TensorFlow is its flexibility, which allowed it to be used for a lot more than DL and its popularity in both research and production positioned it as the go-to framework for authoring ML algorithms.

Slide 8

Slide 8 text

Early TensorFlow Models —> Production :\ In the early days, while TensorFlow offered flexibility, it lacked a complete end-to-end production system. Sibyl (now TFX), on the other hand, had robust end-to-end capabilities, but lacked flexibility.

Slide 9

Slide 9 text

Come in, TFX That tiny problem of early TensorFlow became very apparent in no time — the need for an end-to-end ML platform for TensorFlow to accelerate ML - even within Google. And then, in 2017, TFX was launched within Google.

Slide 10

Slide 10 text

ML Engineering; The Idea “On any given day there are thousands of TFX pipelines running, which are processing exabytes of data and producing tens of thousands of models, which in turn are performing hundreds of millions of inferences per second.” - the TFX team within Google, 2019

Slide 11

Slide 11 text

ML Engineering; The Idea Upon that internal success, and the supposition that the same idea of ML engineering will be needed by organizations and individuals everywhere in the world, the team decided to publicise their idea of ML Engineering and TFX.

Slide 12

Slide 12 text

ML Engineering; The Principles 1. Start with simple rules and heuristics 2. Move to simple ML (i.e., simple models) and realize large gains 3. Move to ML with more features and more advanced models to realize decent gains. 4. Move to state-of-the-art ML, manage refinement and complexity (for solutions to the problems that are worth it), and realize small gains. 5. Apply the above launch-and-iterate cycle to more aspects of products and to solve more problems.

Slide 13

Slide 13 text

What TFX is TFX is an end-to-end platform for deploying production ML pipelines. It provides a configuration framework and shared libraries to integrate common components needed to define, launch, and monitor your machine learning system.

Slide 14

Slide 14 text

Getting Started with TFX tensorflow.org/tfx

Slide 15

Slide 15 text

En conclusión Just as code and data evolve over time, models also evolve over time.

Slide 16

Slide 16 text

Thank you @olayinkapeter_