#165 · Primary category: Inference & Local Deploy

timber

c99 catboost compiler decision-trees gradient-boosting inference lightgbm machine-learning mlops model-serving ollama onnx sklearn xgboost

Ollama for classical ML models. AOT compiler that turns XGBoost, LightGBM, scikit-learn, CatBoost & ONNX models into native C99 inference code. One command to load, one command to serve. 336x faster than Python inference.

Project last updated:04/16/26

GitHub Stars

687

Forks

23

Contributors

2

License

Apache-2.0

Why we included this project

Timber takes trained classical models and compiles them down to a self-contained C99 binary, so you can drop the Python runtime from the serving path entirely. The result is a tiny artifact, around 48 KB, that runs single-sample inference in about two microseconds, which is what makes it interesting for teams doing real-time transaction scoring or running on constrained edge hardware. It also ships an Ollama-compatible HTTP server, so one command loads a model and another serves it. The acceleration backend can emit SIMD, GPU, FPGA, or embedded variants, meaning the same model can move from a server to a microcontroller without reworking the pipeline. For regulated environments that want deterministic, auditable inference, that portability plus the lack of runtime dependencies is a real selling point.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category