serving icon indicating copy to clipboard operation
serving copied to clipboard

Documentation for how estimator/graph_transformations/tf-serving work together

Open m4nd31br0t opened this issue 8 years ago • 9 comments

System information

  • TensorFlow Serving installed from binary
  • TensorFlow Serving version: 1.10.0

Describe the Problem

The documentation describing how create and serve a custom Estimator, how to serve a tensorflow model in general, and how to perform graph transforms is very helpful - each on its own - but it is unclear how all these components fit together in the same ecosystem. This google cloud documentation on deploying models seems to suggest this (create -> transform -> serve) is the intent, I just cannot seem to find any documentation on how to:

  • create a custom estimator
  • perform graph transformations on the created model
  • create a servable from the transformed model
  • serve model

m4nd31br0t avatar Sep 07 '18 14:09 m4nd31br0t

@gautamvasudevan - Hi, any update on this documentation ?

Harshini-Gadige avatar Oct 23 '18 18:10 Harshini-Gadige

No. @lamberta any thoughts on this?

gautamvasudevan avatar Oct 23 '18 18:10 gautamvasudevan

I've seen an internal doc that addresses some of this (b/116674557), but nothing that is ready to publish. Might make a nice tutorial for the serving docs.

lamberta avatar Oct 23 '18 19:10 lamberta

Looking for this as well.

r-wheeler avatar Oct 24 '18 00:10 r-wheeler

@lamberta Anything on this you could share? The ideal scenario would be documentation on how to:

  • create a custom estimator
  • perform graph transformations on the created model
  • create a servable from the transformed model
  • serve model

I am able to accomplish many of these steps independently:

  • Familiar with estimator api and writing custom model_fn etc
  • able to perform graph transforms on non estimator based graphs
  • able to create servables from both estimators and using the lower level apis

but pruning / transformer the output of an estimator, and generating a valid servable from this, would be great.

r-wheeler avatar Nov 06 '18 01:11 r-wheeler

The doc I saw became this blog post: Optimizing TensorFlow Models for Serving

We're building out the TFX section which will have more pipelines for serving: https://www.tensorflow.org/tfx/ For TFX, you can see the Chicago Taxi end-to-end example (and notebook). We'll continue to build this out.

lamberta avatar Dec 03 '18 23:12 lamberta

Thank you @lamberta.

Harshini-Gadige avatar Dec 03 '18 23:12 Harshini-Gadige

@lamberta thanks for posting

r-wheeler avatar Dec 04 '18 00:12 r-wheeler

Please note that above guide is for tf 1.x and most of the packages like sessions, freeze_graph is deprecated now. see here

omerasif57 avatar Aug 08 '21 19:08 omerasif57