tensorrt-llm

Optimize LLM inference on NVIDIA GPUs with TensorRT-LLM quantization and parallelism.

Updated Feb 15, 2026
One-click install
npx skills add https://github.com/ricable/mcai --skill tensorrt-llm-ricable
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tensorrt-llm
Source: https://github.com/ricable/mcai/tree/main/.agents/skills/tensorrt-llm
Command: npx skills add https://github.com/ricable/mcai --skill tensorrt-llm-ricable

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you deploy large language models on NVIDIA GPUs with much higher throughput and lower latency than standard PyTorch inference, while keeping serving reliable for production workloads.

Core Features & Use Cases

  • Performance Optimization: Apply FP8 or INT4 quantization, in-flight batching, paged KV cache, CUDA graphs, and chunked context to reduce cost and improve speed.
  • Multi-GPU Scaling: Configure tensor parallelism, pipeline parallelism, and expert parallelism for models that need to span multiple GPUs or nodes.
  • Production Serving: Expose an OpenAI-compatible API, add health checks and metrics, and deploy with Docker or Kubernetes for real workloads.
  • Use Case: A team serving a 70B model on H100s can use this Skill to choose the right quantization and parallelism strategy, then launch a high-throughput endpoint with monitoring enabled.

Quick Start

Use the tensorrt-llm skill to choose an NVIDIA GPU deployment setup, optimize the model with the right quantization and batching strategy, and prepare a production-ready serving configuration.

Frequently Asked Questions about tensorrt-llm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize LLM inference latency on NVIDIA GPUs?

To optimize LLM inference latency on NVIDIA GPUs, apply FP8 or INT4 quantization, enable in-flight batching, paged KV cache, and CUDA graphs. These techniques reduce memory overhead and significantly improve throughput compared to standard PyTorch inference.

What is the best way to serve a 70B model across multiple H100 GPUs?

The best way to serve a 70B model on multiple H100 GPUs is configuring tensor parallelism and pipeline parallelism. This distributes the model across GPUs to maximize throughput and minimize latency for production workloads.

How do I expose an OpenAI-compatible API for a quantized model?

To expose an OpenAI-compatible API for a quantized model, configure production serving with health checks and metrics. Deploy the optimized TensorRT-LLM configuration using Docker or Kubernetes for real workloads.

Can I use in-flight batching and paged KV cache for production LLM serving?

Yes, you can use in-flight batching and paged KV cache for production LLM serving. These features batch multiple requests dynamically and manage memory efficiently, ensuring reliable high-throughput deployment on NVIDIA GPUs.

Does TensorRT-LLM support INT4 quantization and chunked context?

Yes, TensorRT-LLM supports INT4 quantization and chunked context. These features allow you to reduce model size and process long contexts efficiently, lowering deployment costs while maintaining inference speed.

How do I set up multi-GPU tensor parallelism for large language models?

To set up multi-GPU tensor parallelism for large language models, configure the parallelism strategy to span multiple GPUs or nodes. This approach enables high-throughput inference for models exceeding single-GPU memory limits.