liveBook · Manning

SavedModel

As explained in Distributed Machine Learning Patterns

TensorFlow SavedModel is TensorFlow's serialized model format for storing a model and its serving information for later consumption.

TensorFlow SavedModel is a serialized model format that preserves a trained model for later consumption by model-serving components. In distributed training, export it once from the chief worker rather than writing competing copies from every worker. section 9.2.2

A reliable SavedModel export requires:

  • Mounting persistent storage because Kubernetes Pods recycle their files after distributed training completes. section 9.2.2

Distributed export path

A two-worker TFJob mounts /trained_model, passes /trained_model/saved_model_versions/2/ as saved_model_dir, and writes the final SavedModel from the chief worker.

How Distributed Machine Learning Patterns covers it

How deep it goes
Explains export coordination and storage persistence, while deferring detailed serving treatment.
Examples
Uses TF_CONFIG, chief-worker paths, a two-worker TFJob, and a PersistentVolumeClaim.
What you can do after
Operate/configure distributed exports that leave a persistent SavedModel for serving.
How it connects
Connects model serving with distributed model training, checkpoints, Kubernetes, and persistent volumes.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Distributed Machine Learning Patterns. The section links point to the parts of the book it draws on.