Practical overview
When it fits
Use DLR after compiling a deep-learning or decision-tree model when an application needs a runtime interface to load the artifacts and run inference on a supported target.
Who it is for
- Developers integrating compiled machine-learning models into Python or C++ applications.
- Teams deploying supported compiled models to CPU, GPU or edge targets.
- Android developers exploring the repository's image-classification inference example.
Documented uses
- Load compiled model artifacts into an application.
- Run inference through a unified Python or C++ interface.
- Use compiled models on supported device targets.
- Adapt the Android image-classification example for an application.
Requirements & limits
The library is open source under the Apache License 2.0.
- The compiler and DLR release versions must align for TVM-compiled models.
- Linux x86_64 CPU installation is documented with pip; GPU and non-x86 edge targets use prebuilt binaries or a source build.
- DLR uses runtime backends including TVM, Treelite and NVIDIA TensorRT.
- The README states that device and model-related metrics are collected by default and describes opt-out steps.
- The repository includes an Android image-classification example, but does not establish support for every Android device or model.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Load a compiled model and call inference
Use the documented Python interface to load compiled model artifacts and run inference.
Before you start
- DLR installed for the target environment
- A compiled model directory containing
.so,.paramsand.jsonartifacts - Input data in a form accepted by the model
Steps
Import
dlrandnumpyin Python.Create a
dlr.DLRModelusing the compiled model directory, device type and device index.Prepare input data and pass it to
model.run(x).
Expected outcome
The Python API returns the result of a model inference call.
Guide limitations
- Model artifacts must be compatible with the DLR release and compiler/runtime versions.
- For TVM-compiled models, use the DLR release corresponding to the TVM release used to compile the model.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 12 October 2026
- Original website title
- neo-ai/neo-ai-dlr · Official homepage title · retained in its source language

