Can't start a service without service.py #3785
Unanswered
dmsfabiano
asked this question in
Q&A
Replies: 1 comment
-
Hi @dmsfabiano, unfortunately BentoML relies on the import path of "bentoml.Service" instance, e.g. "service:svc", to be able to load the service definition across multiple API servers and Runner processes. We've helped many users with similar situations where BentoML needs to integrate with an internal framework. Happy to hop on a quick call to learn more about your setup, understand what BentoMLPackager does, and discuss alternatives. Feel free to ping me in the community slack! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am quite new to
bentoml
so I may be missing something from the documentation that I have read. Is there no way to start a Service programmatically without a service.py?!I have the following:
I have my custom
BentoMLPackager
which does the standard you would expect from any framework sayframework.sklearn
, and I have encapsulated my framework on thisget_fastapi_app
which returns an standard FastAPI appI have followed the source code enough to find the
svc.mount_asgi_app
andserve_http_development
methods. However, I seem to be kind of stuck, because I cannot find any way to actually save the service I have created,serve_http_development
fails withFailed to import module service: No module named service
but I would prefer not to maintain aservice.py
as I am wrapping bento around my home-grown frameworkBeta Was this translation helpful? Give feedback.
All reactions