What problem does it solve?
Porting a HuggingFace vision-language, audio, or video model to TensorRT-LLM's PyTorch backend requires correctly wiring a multimodal encoder, input processor, weight mapper, and LLM backbone while respecting strict performance contracts (no CPU-GPU syncs, shared-tensor media transport, batched encoder execution). This Skill provides the complete phased workflow, canonical code templates, and audit checks to do it without silent correctness or performance regressions.
Core Features & Use Cases
- Phased onboarding workflow: Step-by-step phases from resource gathering and coverage survey through model wrapper, input processor, weight mapper, and testing.
- Module reuse mapping: Tables mapping common layers (Linear, Attention, GatedMLP, RoPE) to their TensorRT-LLM
_torch.modules equivalents so quantization, tensor parallelism, and CUDA graphs work automatically.
- Performance contracts: Four enforceable rules covering zero CPU-GPU syncs in forward, async CPU preprocessing, shared-tensor media transport, and batched encoder execution, each with audit commands.
- Use Case: Onboard a new Qwen-VL-style vision-language model by creating
modeling_<name>.py with a ported encoder, an input processor subclassing BaseMultimodalInputProcessor, a weight mapper, and unit plus accuracy tests.
Quick Start
Onboard the HuggingFace model org/model-name to the TensorRT-LLM PyTorch backend following the multimodal onboarding phases.