You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented a Transformers based project using Huggingface module.
Although it runs okay with --deployment bentoml serve service:svc --development --reload,
BentoML spits out error when I try to inference, specifically bentoml serve service:svc --development --reload
To reproduce
As this is a confidential project, I can't share the code snippet.
However, the error log says
bentoml/src/bentoml/_internal/runner/runner_handle/remote.py", line 244, in async_run_method
raise RemoteException(
bentoml.exceptions.RemoteException: An unexpected exception occurred in remote runner owlvit_runner: [404] Not Found
I altered the bentoml/_internal/runner/runner_handle/remote.py to print out the detail.
try:
print(resp)
content_type = resp.headers["Content-Type"]
print('content_type', content_type)
assert content_type.lower().startswith("application/vnd.bentoml.") # <- this is making the exception
Describe the bug
I implemented a Transformers based project using Huggingface module.
Although it runs okay with --deployment
bentoml serve service:svc --development --reload
,BentoML spits out error when I try to inference, specifically
bentoml serve service:svc --development --reload
To reproduce
As this is a confidential project, I can't share the code snippet.
However, the error log says
I altered the
bentoml/_internal/runner/runner_handle/remote.py
to print out the detail.Then, it shows as following,
I wonder why ClientResponse is looking into http://127.0.0.1:8000/predict
although I sent post request to 'http://a.b.c.d:3000/predict_image'
It is odd that the API is working in development mode
I've searched the Internet for debugging this issue but no luck.
Expected behavior
Run smoothly as same way in development mode.
Environment
Environment variable
System information
bentoml
: 1.1.0.post7+g1ed3e6ff.d20230801python
: 3.10.6platform
: Linux-5.19.0-46-generic-x86_64-with-glibc2.35uid_gid
: 1000:1000pip_packages
The text was updated successfully, but these errors were encountered: