Skip to content
AI Learning Ground Start learning

News ·

Build Local AI Apps with C++ and NVIDIA TensorRT RTX Samples

NVIDIA released DIN Deploy, an open-source set of C++ samples combining ONNX Runtime with the TensorRT RTX execution provider to accelerate local AI inference for speech recognition, segmentation, and image generation on Windows and Linux.

Build Local AI Apps with C++ and NVIDIA TensorRT RTX Samples
Image: NVIDIA

NVIDIA has published Do Inference Now (DIN) Deploy, an open-source repository of C++ samples that pair ONNX Runtime with the NVIDIA TensorRT RTX execution provider for hardware-accelerated local inference on Windows and Linux, including Arm64 variants. Supported workloads include automatic speech recognition with OpenAI Whisper, NVIDIA Parakeet TDT, and NVIDIA Nemotron ASR Streaming; interactive segmentation with Meta SAM 2.1 for images and video; and prompt-driven image generation with FLUX.2-klein-4B.

Each sample splits model export from deployment: a Python exporter converts Hugging Face checkpoints into ONNX artifacts, while a native C++ CLI handles inference using ONNX Runtime session and tensor APIs. Vendor-specific code such as CUDA kernels appears only in optional accelerated paths, so shared code can run on any compatible execution provider. The FLUX.2 sample uses ONNX Runtime 1.25 graphics interop with Vulkan and DirectX, and shows how post-training quantization with NVIDIA Model Optimizer yields a quantized ONNX model that is a drop-in replacement requiring no application-code changes. On DGX Spark, GPU acceleration ranges from 39x real-time for Nemotron ASR streaming to 206x for Parakeet TDT, and SAM 2.1 reaches 38.3 FPS on GPU versus 0.5 FPS on CPU.

For builders, DIN Deploy offers a path from model checkpoint to a native, hardware-accelerated desktop application without a model-specific runtime. The repository includes CMake presets that automatically download ONNX Runtime and TensorRT RTX, and the same ONNX Runtime API is also accessible through WinML 2.0.

References

  • NVIDIA · developer.nvidia.com

Read the full story at NVIDIA ↗Like, save or discuss on Buzz

#hardware #inference