Replies: 1 comment
-
|
At the moment, I don't believe there is a complete C++ multimodal inference example comparable to the Python examples provided in TensorRT-LLM. Most of the officially documented multimodal workflows (e.g., LLaVA, Qwen-VL, VILA, and similar models) are demonstrated using the Python APIs, where the vision encoder, projector, prompt preparation, and LLM are orchestrated together. The C++ runtime primarily exposes the inference engine and execution APIs, but the higher-level multimodal preprocessing pipeline is not demonstrated in a standalone C++ example. If your goal is to build a native C++ multimodal application, the general pipeline would be:
The exact implementation details depend on the multimodal architecture (e.g., LLaVA, Qwen-VL, Pixtral, etc.), since each has its own prompt formatting and embedding fusion strategy. One question for the TensorRT-LLM team:
If this answer helped or pointed you in the right direction, I'd appreciate it if you could mark it as the accepted answer so it's easier for others with the same issue to find. Also, if you found my contribution useful, I'd appreciate it if you could check out my GitHub profile, follow me, and star any repositories you find interesting. GitHub: https://github.com/Advait251206 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions