#214214th of 242 in ML frameworks and libraries
hummingbird
Compiles trained scikit-learn, LightGBM and XGBoost models into PyTorch tensor ops
- Stars
- 3.6k
- License
- MIT
- Last commit
- Sep 2026
- Last release
- Oct 2024
- Language
- Python
3,517 on 25 Apr 20263,554 on 14 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Hummingbird converts trained traditional ML models, such as scikit-learn decision trees and random forests and LightGBM and XGBoost classifiers and regressors, into tensor computations. Targets are PyTorch, TorchScript, ONNX and TVM, so the models can run on GPU and be served with TorchServe. It keeps a scikit-learn-style inference API, so a converted model can replace the original with one convert() call.
Who it is for: Engineers speeding up tree-model inference on GPU or PyTorch stacks
Strengths
- One convert(model, 'pytorch') call keeps the sklearn-style predict API unchanged
- Converted tree models run on GPU via model.to('cuda')
- Exports to PyTorch, TorchScript, ONNX and TVM
- Compilation strategies described in OSDI 2020 and PVLDB 2021 papers
Weaknesses
- Supports a fixed operator set; other backends and models are only on the roadmap
- Last release was 2024-10-24; tested on Python 3.9 to 3.11 only
- TVM backend only works through Python 3.10
- PyTorch >= 1.6.0 must be installed separately
What it needs
- GPU optional
- Docker
- Needs PyTorch >= 1.6.0, scikit-learn, LightGBM (optional), XGBoost (optional)
- Models: scikit-learn Decision Trees and Random Forest, LightGBM, XGBoost, PyTorch, TorchScript
What changed
- v0.4.11 ↗ (opens in a new tab)Breaking
“In https://github.com/microsoft/hummingbird/pull/761 users are now required to add an additional flag if they wish to unzip without the checksum hashes. Ex: model.load(location, overrideflag=True) . …”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in ML frameworks and libraries
See all 242| Rank | Project | Score |
|---|---|---|
| 1 | transformersModel-definition library for pretrained text, vision, audio and multimodal models | 94 out of 100 |
| 2 | ultralyticsPython library and CLI for training and running YOLO vision models | 94 out of 100 |
| 3 | pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts | 94 out of 100 |
| #4 | pytorchPython tensor library with GPU support and tape-based autograd | 93 out of 100 |
| #5 | supervisionPython toolkit for loading, annotating and counting computer vision detections | 92 out of 100 |