Slackbot
01/16/2023, 5:18 PMSean
01/17/2023, 1:21 AMShaohong Bai
01/17/2023, 9:24 AMShaohong Bai
01/17/2023, 9:30 AMShaohong Bai
01/17/2023, 5:03 PMyatai_client.push_model(model_obj, force=force, threads=threads)
Do u see any easy way to pass yatai_url on fly? or every time need to initialise a contextSean
01/18/2023, 9:41 AMSean
01/18/2023, 9:43 AMShaohong Bai
01/18/2023, 9:44 AMShaohong Bai
01/18/2023, 9:47 AMSean
01/18/2023, 10:05 AMinclude
field in the bentofile.yaml
. The simplest way is to include the custom runner class definition in the service.py where the API is defined. But the custom runner class can also be defined elsewhere can packaged in to the bento,Shaohong Bai
01/18/2023, 10:27 AMrunner.init_local()
runner.run( MODEL_INPUT )
e.g. above you guys suggest for development and testing, what will be productional practice, people do not want to use API just like to do pre-computing as usual?Sean
01/18/2023, 10:57 AMSean
01/18/2023, 11:00 AMrunner.init_local
is correct for invoking the model as a function in the API.Shaohong Bai
01/18/2023, 11:02 AMSean
01/18/2023, 11:05 AMShaohong Bai
01/18/2023, 11:08 AM