Skip to content

feat: add compiled runtime execution and language bindings - #34

Merged
malwan-nv merged 16 commits into
malwan-nv/leapp-compiled-runtimefrom
malwan-nv/leapp-runtime-integration
Oct 29, 2026
Merged

malwan-nv merged 16 commits into
malwan-nv/leapp-compiled-runtimefrom
malwan-nv/leapp-runtime-integration

Conversation

@malwan-nv

@malwan-nv malwan-nv commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Adds execution of LEAPP bundles through embedded Triton, including model configuration, CPU/CUDA tensor storage, sessions, and feedback state. Supports ONNX, PT2, TorchScript, and TensorRT artifacts through installed backends.
Exposes sessions and tensors through Python and C++ bindings, including NumPy/DLPack interoperability and an installable C++ SDK.
Validated on Linux with 111 Rust tests/doctests, 53 Python tests, and two C++ test suites.

Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
@malwan-nv
malwan-nv requested a review from frlai October 19, 2026 21:43
@malwan-nv malwan-nv self-assigned this Oct 19, 2026
@malwan-nv
malwan-nv added this pull request to stack #35 October 19, 2026 21:43
@malwan-nv malwan-nv changed the title Malwan nv/leapp runtime integration feat: add compiled runtime execution and language bindings Oct 19, 2026
Comment thread packages/leapp-runtime-rust/src/lib.rs Resolved
Comment thread packages/leapp-runtime-rust/src/lib.rs Resolved
Activate the exported Session contract while retaining legacy implementation sources for the following engine and binding commits. These sources are temporarily excluded from build targets so the merge compiles against the new API and preserves their subsequent renames.

Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
Bring the latest develop fixes and formatting requirements through the PR stack while preserving published commit history.

Apply required Ruff formatting without changing Python syntax trees.

Signed-off-by: Marc Alwan <malwan@nvidia.com>
@malwan-nv
malwan-nv removed this pull request from stack #35 October 21, 2026 23:09
@malwan-nv
malwan-nv added this pull request to stack #43 October 21, 2026 23:09
Signed-off-by: Marc Alwan <malwan@nvidia.com>
@malwan-nv
malwan-nv removed this pull request from stack #43 October 26, 2026 18:43
@malwan-nv
malwan-nv added this pull request to stack #47 October 26, 2026 18:44
Comment thread .vscode/settings.json Resolved
Comment thread packages/leapp-runtime-rust/README.md Resolved
@frlai

frlai commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

One more thing. we need api unity.

In python the package is called lrt.
in rust and c++ it also needs to be called that.

Merge the reviewed public API updates and use borrowed input maps throughout
execution and bindings. Move CPU/CUDA allocations and output pooling into shared
engine memory helpers, with independent session caches configured once through
SessionOptions and byte budgets derived from bundle and dynamic output sizes.

Align Rust, Python, and C++ APIs under lrt, preserve retained output ownership,
and simplify runtime documentation. Keep editor settings local and excluded
from version control.

Validated desktop CPU/GPU execution, pool ownership and retention, Python and
C++ bindings, and the installed C++ SDK consumer. Clippy, Rustdoc, and pinned
Ruff formatting checks pass.

Signed-off-by: Marc Alwan <malwan@nvidia.com>
Signed-off-by: Marc Alwan <malwan@nvidia.com>
@malwan-nv
malwan-nv merged commit c1c1050 into leapp-compiled-runtime Oct 29, 2026
5 checks passed
@malwan-nv

Copy link
Copy Markdown
Collaborator Author

Accidentally included unrelated changes, see new stack starting at #51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants