Skip to content

Tensorflow 1 models + gunicorn workers - strange issue #1191

Answered by bojiang
gregd33 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! I'm working on the TensorFlow integration of bentoML. This information may be helpful to you.

I know TensorFlow 1 models aren't supported (or at least I think so).

In fact, bentoML was designed to supports both TensorFlow 1 & 2 models. An example using tf1 is included in the gallery:
https://github.com/bentoml/gallery/blob/master/tensorflow/fashion-mnist/tensorflow_1_fashion_mnist.ipynb

Any ideas what might be causing the crashes and why it is fixed with only one guinicorn worker?

In most cases, it was caused by insufficient system resources, especially memory.
For example, for any classifier using BERT, each worker would take more than 700M memory. Even on an EC2 c5-large instanc…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gregd33
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants