--- id: treelite-runtime version: "3.9.1" license: Apache-2.0 license_treatment: permissive maintenance: active --- # treelite-runtime — Treelite runtime License: permissive · Maintenance: active · Downloads: 165.2K/mo ## What it is and what it does Treelite-runtime is a Python wrapper around a C++ runtime for executing decision tree forest models. It loads pre-compiled tree models serialized in Treelite's universal format and performs inference on new data. The package is designed to be lightweight and fast, relying on numpy and scipy for numerical operations. The runtime does not train or compile models—it only executes them. Users must first export a tree model to Treelite's serialized format using the main Treelite library, then load and run predictions with this runtime package. It is primarily useful for production inference pipelines where model serving speed and portability across platforms matter. Use it for: - Serving tree-based models in production with low-latency inference requirements. - Deploying models across heterogeneous platforms (Linux, macOS, Windows) using a single serialized format. - Embedding fast tree inference in Python applications without retraining or recompiling models. - Benchmarking or comparing inference performance of tree models across different runtime implementations. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Treelite-runtime provides a Python runtime for loading and executing decision tree forest models that have been serialized in the Treelite format, enabling fast inference on tree-based models. Yes, if you have a pre-compiled Treelite model and need fast, portable inference in Python. The package is stable, permissively licensed, and actively maintained. Install friction is moderate due to platform-specific wheels, but that is handled transparently by pip. Not useful without an existing Treelite model file. ## Install pip install treelite-runtime uv add treelite-runtime poetry add treelite-runtime ## Installing treelite-runtime Before you install: Medium install friction due to platform-specific wheels across macOS, Linux, and Windows. Active maintenance with last commit on 2026-08-12 and production-stable status; latest release was 2023-09-13, indicating a mature package with stable API. License in practice: Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers. Quickstart: pip install treelite-runtime import treelite_runtime predictor = treelite_runtime.Predictor('model.so') predictions = predictor.predict(data) Requires a pre-compiled Treelite model file (.so on Linux/macOS, .dll on Windows); the runtime does not compile or train models, only executes them. Verify before relying: - Whether the package works with current versions of numpy and scipy beyond the stated Python 3.7–3.8 classifier support. - Performance characteristics and typical inference latency compared to other tree runtime formats. - Whether model files from older Treelite versions remain compatible with runtime 3.9.1. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 165.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags decision tree model inference, tree forest runtime, model serialization format, fast tree prediction, treelite model execution, model-inference, tree-ensemble, production-ml [View on SkillFed](https://skillfed.io/packages/treelite-runtime) · [View on PyPI](https://pypi.org/project/treelite-runtime/)