The Pusher component is used to push a validated model to a deployment target during model training or re-training. It relies on a ModelValidator component to ensure that the new model is "good enough" to be pushed to production.
- Consumes: A Trained model in SavedModel format
- Emits: The same SavedModel, along with versioning metadata
Using the Pusher Component
A Pusher pipeline component is typically very easy to deploy and requires little customization, since all of the work is done by the Pusher TFX component. Typical code looks like this:
from tfx import components ... pusher = components.Pusher( model_export=trainer.outputs.output, model_blessing=model_validator.outputs.blessing, serving_model_dir=serving_model_dir)