Dimitri Falco
01/23/2025, 10:46 PMbentofile.yaml if I want bentoml build to containerize multiple services?
I've tried:
services:
service: "service:ServiceA"
service: "service:ServiceB"
include:
- "service_a.py" #where ServiceA is defined
- "service_b.py" #where ServiceB is defined
- "utils.py"
- "preprocessing.py"
but get the following error:
Error: [bentos] `build` failed: Missing required build config field "service", which indicates import path of target bentoml.Service instance. e.g.: "service: fraud_detector.py:svc"
I know I could make a combined service using bentoml.depends, but was wondering if the above described configuration was also possible?Chaoyu
01/24/2025, 7:12 PMChaoyu
01/24/2025, 7:13 PMservice, which should be your “entry service”, and it’s the only service that will be exposedChaoyu
01/24/2025, 7:13 PMChaoyu
01/24/2025, 7:13 PMDimitri Falco
01/24/2025, 7:51 PM@bentoml.service decorator for both dependency services, could I set one to cpu and the other to gpu within the same container? Or would they have to be done in separate containers for that to happen?
• If I do go the independent container route, is there a way to use bentoml build to containerize both independently?
Thanks in advance!Chaoyu
01/24/2025, 8:10 PMbentofile.yamlChaoyu
01/24/2025, 8:11 PMbentoml build service.py:ServiceA
bentoml build service.py:ServiceBDimitri Falco
01/24/2025, 8:38 PMbentofile.yaml , does running bentoml build at the root directory containerize both?