github bentoml/BentoML v1.0.20
BentoML - v1.0.20

latest releases: v1.3.12, v1.3.11, v1.3.10...
18 months ago

🍱 BentoML v1.0.20 is released with improved usability and compatibility features.

  • Production Mode by Default: bentoml serve command will now run with the --production option by default. The change is made the simulate the production behavior during development. The --reload option will continue to with as expected. To achieve the serving behavior previously, use --development instead.

  • Optional Dependency for OpenTelemetry Exporter: The opentelemetry-exporter-otlp-proto-http dependency has been moved from a required dependency to an optional one to address a protobuf dependency incompatibility issue. ⚠️ If you are currently using the Model Monitoring and Inference Data Collection feature, you must install the package with the monitor-otlp ****option from this release onwards to include the necessary dependency.

    pip install "bentoml[monitor-otlp]"
  • OpenTelemetry Trace ID Configuration Option: A new configuration option has been added to return the OpenTelemetry Trace ID in the response. This feature is particularly helpful when tracing has not been initialized in the upstream caller, but the caller still wishes to log the Trace ID in case of an error.

    api_server:
      http:
        response:
          trace_id: True
  • Start from a Service: Added the ability to start a server from a bentoml.Service object. This is helpful for troubleshooting a project in a development environment where no Bentos has been built yet.

    import bentoml
    
    # import the Service defined in `/clip_api_service/service.py` file
    from clip_api_service.service import svc 
    
    if __name__ == "__main__":
      # start a server:
      server = bentoml.HTTPServer(svc)
      server.start(blocking=False)
      client = server.get_client()
      client.predict(..)

What's Changed

New Contributors

Full Changelog: v1.0.19...v1.0.20

Don't miss a new BentoML release

NewReleases is sending notifications on new releases.