Skip to content

Conflicting (kind of) information about bentoml serve #3560

Answered by aarnphm
ReubenTheDS asked this question in Q&A
Discussion options

You must be logged in to vote

BentoML Version: 1.0.11 Is it possible to run the command 'bentoml serve' in production with an imported Bento?

Not sure if I understand this fully, but you can bentoml serve /path/to/bento , bentoml serve bento_name:tag

  • the import path of a ‘bentoml.Service’ instance
  • a tag to a Bento in local Bento store
  • a folder containing a valid ‘bentofile.yaml’ build file with a ‘service’ field, which provides the import path of a ‘bentoml.Service’ instance
  • a path to a built Bento (for internal & debug use only)

You can serve from a path, but it is a anti-pattern, hence the internal and debug use only. This is mainly for testing out the bento and make sure you package and bundle correct files.

B…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@aarnphm
Comment options

@parano
Comment options

Comment options

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