Hi <!channel>, we have just released BentoML `1.0....
# announcements
s
Hi <!channel>, we have just released BentoML
1.0.0rc3
with a number of highly anticipated features and improvements. Check it out with the following command!
Copy code
$ pip install -U bentoml --pre
⚠️ BentoML will release the official
1.0.0
version next week and remove the need to use
--pre
tag to install BentoML versions after
1.0.0
. If you wish to stay on the
0.13.1
LTS version, please lock the dependency with
bentoml==0.13.1
. • Added support for framework runners in the following ML frameworks. ◦ fast.ai ◦ CatBoost ◦ ONNX • Added support for Huggingface Transformers custom pipelines. • Fixed a logging issue causing the api_server and runners to not generate error logs. • Optimized Tensorflow inference procedure. • Improved resource request configuration for runners. ◦ Resource request can be now configured in the BentoML configuration. If unspecified, runners will be scheduled to best utilized the available system resources.
Copy code
runners:
  resources:
    cpu: 8.0
    <http://nvidia.com/gpu|nvidia.com/gpu>: 4.0
◦ Updated the API for custom runners to declare the types of supported resources.
Copy code
import bentoml

class MyRunnable(bentoml.Runnable):
  SUPPORTS_CPU_MULTI_THREADING = True  # Deprecated SUPPORT_CPU_MULTI_THREADING 
  SUPPORTED_RESOURCES = ("<http://nvidia.com/gpu|nvidia.com/gpu>", "cpu")  # Deprecated SUPPORT_NVIDIA_GPU
  ...

  my_runner = bentoml.Runner(
    MyRunnable,
    runnable_init_params={"foo": foo, "bar": bar},
    name="custom_runner_name",
    ...
)
◦ Deprecated the API for specifying resources from the framework to_runner() and custom Runner APIs. For better flexibility at runtime, it is recommended to specifying resources through configuration.
🐱 4
🎯 8
🍱 26
🎉 15
👏🏿 1
👏 14
🙌 5