Article summary — original
Deploy Open Models to Native C++ Inference with NVIDIA TensorRT Model Connect
NVIDIA TensorRT Model Connect is an open collection of reference implementations designed to streamline bringing open AI models from Hugging Face checkpoints into native C++ applications using NVIDIA TensorRT.
Deployment is split into two phases: packaging a model bundle with a Python CLI command and running native inference in C++ without requiring Python or PyTorch at runtime.
The framework provides a task-level semantic API for standard inputs and outputs alongside a module-level API for direct tensor and pipeline control.
Developers can integrate custom GPU kernels into targeted model components using TVM FFI while TensorRT runs the remainder of the pipeline.
Model Connect is built as an AI-native project using coding agents under human review, deploying nightly releases to track new open model architectures quickly.
Two-Phase Native C++ Deployment
Model Connect eliminates the need to rebuild preprocessing, engine construction, and runtime orchestration for each model family. Developers use a Python CLI command to create an artifact bundle from a Hugging Face ID or local checkpoint, which a native C++ application subsequently loads. The production runtime executes natively without PyTorch or a Python interpreter, offering performance that can surpass torch.compile on supported workloads.
Dual APIs and Kernel Customization
The framework provides a semantic C++ API to handle tasks using prompts, audio, or images, as well as a module-level API for granular control over named tensors and TensorRT components. To accommodate specialized or newly released operators, TensorRT Model Connect uses TVM FFI, allowing developers to substitute specific model segments with custom GPU kernels without altering the surrounding inference pipeline.
AI-Native Development and Release Model
To keep up with rapid changes across open model architectures, Model Connect operates as an AI-native project where coding agents generate code, tests, and documentation under human direction and review. Supported by automated validation release gates, the project maintains nightly releases to shorten the turnaround time between upstream model releases and working TensorRT reference implementations.
Saved original article
Open AI models are evolving faster than ever, but bringing them into native applications can still require model-specific conversion, preprocessing, post-processing, and runtime code.
NVIDIA TensorRT Model Connect
open collection of reference implementations helps to address this challenge. TensorRT Model Connect shows you how to run supported models with
NVIDIA TensorRT
in native C++ applications. You can use, inspect, modify, and extend the implementations. Model Connect is designed to support the open model ecosystem wherever TensorRT runs.
This post explains what NVIDIA TensorRT Model Connect is and how to deploy a model from Hugging Face model ID to native C++ inference in two commands. It also covers the two API levels TensorRT Model Connect provides, how to integrate custom GPU kernels, and how the project is built to keep pace with the open model ecosystem.
Figure 1. Out-of-framework deployment bottleneck
Figure 2. NVIDIA TensorRT Model Connect stack
How to deploy a model from model ID to native C++ inference in two commands
Getting a model into production should not require deep compiler expertise. Model Connect splits deployment into two phases with a single artifact between them.
1. Build the bundle (Python CLI)
For a supported model, the first phase is building a deployment bundle from a Hugging Face model ID or local checkpoint:
trtmc build Qwen/Qwen3-0.6B -o qwen3-0.6B.bundle
The bundle contains the TensorRT engines and the model-specific assets needed at runtime.
2. Load and run (C++)
In the second phase, a native C++ application then loads the bundle and works with task-level inputs and outputs:
#include <trtmc/pipeline.h>
auto pipeline = trtmc::load("qwen3-0.6b.bundle");
auto result = pipeline->generate("Explain why native inference matters.", {.max_new_tokens = 20});
std::cout << result.text << std::endl;
Model Connect handles checkpoint mapping, TensorRT engine construction, preprocessing, runtime orchestration, and post-processing. You start with a complete working implementation instead of rebuilding this integration for every model family.
You can use Python to prepare the model, but the deployed application runs natively without requiring PyTorch or a Python interpreter in its production runtime.
Two API levels, one starting point
Model Connect provides two levels of C++ APIs. With the semantic API, you can work with familiar inputs and outputs, such as prompts, images, and audio, while Model Connect handles model-specific preprocessing, execution, and post-processing.
If you need more control, the module-level API allows you to work directly with named tensors and individual TensorRT components to customize the inference pipeline. Both APIs use the same Model Connect implementations, so you can start with a simple task-level interface and customize the pipeline only when needed.
Extend TensorRT Model Connect with custom kernels
TVM FFI
provides a language-agnostic interface for invoking GPU kernels without tightly coupling the calling system to the kernel’s implementation framework or runtime. Using TVM FFI through TensorRT Model Connect, you can replace a targeted portion of a model with a custom GPU kernel while TensorRT continues to execute the rest of the inference pipeline. This makes it easier to integrate specialized or newly developed kernels without rebuilding the application around a separate runtime. See the
Bring Your Own Kernel tutorial
for a worked example.
Reference implementations for the open model ecosystem
Model Connect is not a new inference framework or a replacement for TensorRT. It is a bridge between the end-to-end inference experience for open models and the ability of TensorRT to translate a computation graph into an accelerated engine on GPU.
Each model’s implementation serves three purposes:
Running a supported open model in a native TensorRT-enabled application
Learning from a complete, inspectable implementation of the model and its inference pipeline
Extending the implementation for a related architecture, custom checkpoint, or application requirement
This provides the broader ecosystem with a clearer path to TensorRT deployment from a model ID. Application developers can begin with working code. Community contributors can reuse existing patterns to add support for new models instead of starting from zero.
The goal is straightforward: wherever TensorRT is available, you should have a consistent Model Connect path for supported open models.
Built AI-natively to keep pace with open models
The open model ecosystem changes quickly. New architectures and checkpoints appear continuously, so a reference library must evolve just as quickly.
Model Connect is built as an
AI-native software project
. Coding agents generate implementation code, tests, integrations, and documentation under human direction and review. This enables the project to develop and validate multiple model implementations in parallel while maintaining a consistent architecture and user experience.
Model Connect uses nightly releases to shorten the path from a new model, user report, or contribution to an available implementation. Automated validation remains the release gate. The faster cadence helps new model support, fixes, and UX improvements reach you sooner.
Delivering the complete TensorRT workflow
Model Connect is built on TensorRT, so performance remains central. For supported and validated workloads, Model Connect can deliver faster inference than torch.compile, and each implementation is continuously tested and optimized as the project evolves.
Performance should not come at the expense of usability. Model Connect brings the complete workflow together: find the model ID, build the model, load it from C++, and adapt it when needed. You get an accessible path to high-performance TensorRT inference while retaining the ability to inspect, customize, and optimize the underlying inference pipeline.
Get started with NVIDIA TensorRT Model Connect
Visit the
NVIDIA/TensorRT-Model-Connect
GitHub repo to find supported implementations and build a model bundle. Use an implementation as-is, adapt it for your application, or contribute support that helps the next developer bring another open model to TensorRT.
Want to use an AI-native quick start that doesn’t require a complicated setup? Open a terminal in any folder you can access, then paste the following prompt into a coding agent. You should have a complete deployment in minutes.
/goal Clone https://github.com/NVIDIA/TensorRT-Model-Connect.git into
a new TensorRT-Model-Connect directory in the current workspace. Detect
the current GPU compute capability, modify the repository development Docker
image, build and start the container, install TensorRT-Model-Connect, compile
the CLI, TensorRT backend, and all native model DSOs only for that SM, then
build and run an end-to-end Qwen/Qwen3-0.6B smoke test. Do not commit or push
changes. Report the result of the test, show exact command, input and output of
the inference run.
For more about model coverage, architecture details, and a full developer guide, see the
TensorRT Model Connect documentation
.