Skip to main content

LEAPP — Lightweight Export Annotations for Policy Pipelines

LEAPP is a Python package for tracing and exporting multi-step PyTorch computational graphs. Annotate your existing code with lightweight markers, and LEAPP captures the graph structure, exports each stage as an individual model, and generates a deployment-ready YAML specification.

LEAPP is designed for pipelines that chain multiple PyTorch models or processing stages together — where you need to export the whole pipeline, not just a single model. It traces real execution of your code, records which tensors flow between stages, exports each stage independently, and writes a YAML that describes how to wire everything back together at inference time.

Installation

pip install leapp

LEAPP requires Python 3.10+ and PyTorch 2.6.0+.

Quick example

import torch
import leapp
from leapp import annotate

leapp.start(name="my_pipeline")

x = annotate.input_tensors("preprocess", {"obs": torch.randn(8)})
features = (x - x.mean()) / (x.std() + 1e-6)
annotate.output_tensors("preprocess", {"features": features}, export_with="jit")

features = annotate.input_tensors("policy", {"features": features})
action = torch.tanh(features @ torch.randn(8, 4))
annotate.output_tensors("policy", {"action": action}, export_with="onnx")

leapp.stop()
leapp.compile_graph()

Running this produces a my_pipeline/ directory containing the exported models, a YAML pipeline spec, and, on Python 3.11 or later, a PNG graph visualization. On Python 3.10, LEAPP warns and skips visualization while completing the rest of the export.

Documentation

Full guides and API reference live at https://nvidia-isaac.github.io/leapp/:

  • Getting started — install, first pipeline, generated output
  • Guides — node patterns, export options, feedback graphs, semantic data, runtime validation
  • API reference

License

Copyright (c) 2026, NVIDIA Corporation & affiliates. Licensed under the Apache License, Version 2.0. See LICENSE and thirdparty.txt.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leapp-0.7.0-py3-none-any.whl (219.5 kB view details)

Uploaded Python 3

File details

Details for the file leapp-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: leapp-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 219.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for leapp-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46a0931773924416867690a02899f1f0334d78ba11406c51e5135ed8b236d7e7
MD5 1f5274f02fb546a631b498e38cf6d911
BLAKE2b-256 12d4f995fa0ce00f298ce6e15bde07e920a3823d30c2930b0fcde598e87ba07f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.7.0 This release

1 file

0.6.1

1 file

0.6.0

1 file

0.5.2

1 file

0.5.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page