> For the complete documentation index, see [llms.txt](https://docs.seldon.ai/mlserver/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seldon.ai/mlserver/runtimes/lightgbm.md).

# LightGBM

This package provides a MLServer runtime compatible with LightGBM.

## Usage

You can install the runtime, alongside `mlserver`, as:

```bash
pip install mlserver mlserver-lightgbm
```

For further information on how to use MLServer with LightGBM, you can check out this [worked out example](https://github.com/SeldonIO/MLServer/blob/master/docs/examples/lightgbm/README.md).

## Content Types

If no [content type](https://github.com/SeldonIO/MLServer/blob/master/docs/user-guide/content-type/README.md) is present on the request or metadata, the LightGBM runtime will try to decode the payload as a [NumPy Array](https://github.com/SeldonIO/MLServer/blob/master/docs/user-guide/content-type/README.md). To avoid this, either send a different content type explicitly, or define the correct one as part of your [model's metadata](https://github.com/SeldonIO/MLServer/blob/master/docs/reference/model-settings/README.md).
