Slackbot
09/07/2023, 3:34 PMChaoyu
09/07/2023, 3:50 PMChaoyu
09/07/2023, 3:50 PMChaoyu
09/07/2023, 3:51 PMNicolas Jaccard
09/07/2023, 3:56 PMNicolas Jaccard
09/07/2023, 3:57 PMNicolas Jaccard
09/07/2023, 3:59 PMcpu should define the number of processes to spawn?Nicolas Jaccard
09/07/2023, 4:02 PM-e BENTOML_CONFIG_OPTIONS='runners.resources.cpu=1' doesn't appear to work either, I still see the messages shown multiple timesNicolas Jaccard
09/07/2023, 4:12 PMJian Shen Yap
09/07/2023, 4:23 PMNicolas Jaccard
09/07/2023, 4:28 PM2023-09-07T16:26:59+0000 [INFO] [api_server:2] Service loaded from Bento directory: bentoml.Service(tag="pipeline-dr-regression-icdr:xd5lqpcnsk5h47qe", path="/home/bentoml/bento/")
2023-09-07T16:27:00+0000 [INFO] [api_server:4] Service loaded from Bento directory: bentoml.Service(tag="pipeline-dr-regression-icdr:xd5lqpcnsk5h47qe", path="/home/bentoml/bento/")
2023-09-07T16:27:00+0000 [INFO] [api_server:5] Service loaded from Bento directory: bentoml.Service(tag="pipeline-dr-regression-icdr:xd5lqpcnsk5h47qe", path="/home/bentoml/bento/")
2023-09-07T16:27:00+0000 [INFO] [api_server:1] Service loaded from Bento directory: bentoml.Service(tag="pipeline-dr-regression-icdr:xd5lqpcnsk5h47qe", path="/home/bentoml/bento/")
2023-09-07T16:27:00+0000 [INFO] [api_server:3] Service loaded from Bento directory: bentoml.Service(tag="pipeline-dr-regression-icdr:xd5lqpcnsk5h47qe", path="/home/bentoml/bento/")Nicolas Jaccard
09/07/2023, 4:29 PMJian Shen Yap
09/07/2023, 4:48 PMhmm. this should work though.-e BENTOML_CONFIG_OPTIONS='api_server.workers=1'
Jian Shen Yap
09/07/2023, 4:48 PMJian Shen Yap
09/07/2023, 4:49 PM#############################
# ๐ฟ๐ฟ๐ฟ๐ฟ๐ฟ๐ฟ๐ฟ๐ฟ๐ฟ Simple Service
#############################
import bentoml
svc = bentoml.Service("simple")
@svc.api(input=bentoml.io.Text(), output=bentoml.io.Text())
async def count(input_text:str) -> str:
return "yo"
with a minimal service for testingNicolas Jaccard
09/07/2023, 5:09 PMNicolas Jaccard
09/07/2023, 6:36 PMNicolas Jaccard
09/07/2023, 6:38 PMJian Shen Yap
09/07/2023, 9:30 PMNicolas Jaccard
09/08/2023, 11:25 AM