Skip to main content

Installation

TensorRT-LLM can be installed in several ways depending on your needs. This guide covers all installation methods with system requirements and troubleshooting tips.

System Requirements

Before installing TensorRT-LLM, ensure your system meets these requirements:

Hardware Requirements

  • NVIDIA GPU with compute capability 7.0 or higher:
    • Volta (V100) - Compute capability 7.0
    • Turing (T4) - Compute capability 7.5
    • Ampere (A10, A100) - Compute capability 8.0, 8.6
    • Hopper (H100, H200) - Compute capability 9.0
    • Blackwell (B200) - Compute capability 10.0
  • 8GB+ GPU memory minimum (16GB+ recommended for larger models)
  • 50GB+ free disk space for Docker images and model caching

Software Requirements

  • Operating System: Ubuntu 22.04 or 24.04 LTS (recommended)
  • NVIDIA Driver: Version 535.x or newer
  • CUDA: Version 13.1 (automatically included in Docker containers)
  • Python: 3.10 or 3.12
  • PyTorch: 2.9.1 with CUDA 13.0 support
TensorRT-LLM requires specific versions of CUDA and PyTorch for optimal compatibility. Using mismatched versions may cause runtime errors.

Installation Methods

Verifying Your Installation

After installation, run this comprehensive test:
test_installation.py

Environment Configuration

Performance Tuning

Upgrading TensorRT-LLM

Pull the latest container:

Troubleshooting

Symptoms: RuntimeError: CUDA out of memorySolutions:
  1. Use a smaller model or quantized version
  2. Reduce batch size or sequence length
  3. Enable KV cache offloading
  4. Use tensor parallelism across multiple GPUs
  5. Check for memory leaks (restart Python kernel)
Symptoms: ModuleNotFoundError or ImportErrorSolutions:
  1. Verify PyTorch CUDA version matches TensorRT-LLM:
  2. Check for conflicting installations:
  3. Reinstall with correct PyTorch:
Symptoms: CUDA driver version is insufficient for CUDA runtime versionSolutions:
  1. Update NVIDIA driver:
  2. Or use CUDA compatibility package:
  3. Verify driver version:
Symptoms: Build failures with GCC/C++ errorsSolutions:
  1. Ensure you’re using the development container
  2. Update submodules:
  3. Clean build directory:
  4. Check disk space (requires 63GB+)

Next Steps

Now that TensorRT-LLM is installed, you can:

Try the Quickstart

Run your first inference in minutes with simple examples

Explore Examples

Learn advanced features like speculative decoding and multi-GPU inference

Deploy Models

Production deployment guides for popular models

Optimize Performance

Benchmark and tune for maximum throughput

Getting Help

If you encounter issues:
When reporting issues, include your GPU model, driver version, TensorRT-LLM version, and a minimal reproducible example.