Slackbot
08/23/2023, 10:23 PMJian Shen Yap
08/25/2023, 5:01 AMFernando Camargo
08/29/2023, 9:19 PMlogits_tensor = await runner.async_run(batch), being batch a Dict[str, torch.Tensor]Fernando Camargo
08/29/2023, 9:23 PMbentoml.pytorch.get() in the service.py because I need to read some custom_objects from it. So I thought it would be better to pass the instance I already have. Maybe it was not really necessary? Is there actually any downside of having two instances of a BentoModel in memory?Jian Shen Yap
08/31/2023, 4:53 PMIs there actually any downside of having two instances of a BentoModel in memoryit takes up more memory? 🙂 otherwise there's not really a downside. It's recommended to use our public API unless you really know what you're doing! have you tested with the public API instead?
Jian Shen Yap
08/31/2023, 5:17 PMdef __call__(self, **batch):
you should do this
await runner.async_run(**batch)