Build a Machine Learning API and deploy using TF serving
summary
Claims that 90% of ML models never reach production and shows a concrete pipeline that avoids that fate using TensorFlow Serving and Postman. Trains a tiny CNN on Fashion MNIST to 88% accuracy, exports a SavedModel, launches tf_model_server on localhost:8501 in Google Colab, exposes it via ngrok, and verifies three-image predictions succeed in Postman. Demonstrates model versioning, metadata endpoint, gRPC vs REST, and configurable batching via a batching_parameters.txt file.
AI-written summary · about
chapters (25)
- 0:00Introduction to ML API deployment
- 1:45About the speaker
- 3:09Why deploy ML models
- 4:14Challenges in model deployment
- 6:21Simple Flask API limitations
- 8:07Introducing TF Serving
- 9:10Exporting models as SavedModel
- 11:19Deploying with TF Serving
- 14:49Inferencing with REST API
- 15:55Data format for predictions
- 17:00Model versioning in TF Serving
- 19:07Inferencing with gRPC
- 20:31Model metadata API
- 22:00Batch inference benefits
- 23:21Configuring batching parameters
- 25:06Non-TF models with TF Serving
- 26:30Advanced deployment options
- 26:52Live demo setup
- 28:19Training a simple model
- 29:46Saving model as SavedModel
- 30:49Launching TF Serving server
- 31:51Testing API with Postman
- 33:16Demo predictions explained
- 36:28Demo recap and resources
- 37:10Q&A on ML learning resources
