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
Installation Methods
- Docker (Recommended)
- Pip Install
- Build from Source
Docker Installation
Docker is the recommended installation method as it includes all dependencies pre-configured and tested.1
Install NVIDIA Container Toolkit
First, install Docker and the NVIDIA Container Toolkit to enable GPU access in containers:Verify GPU access:
2
Pull the TensorRT-LLM container
Download the latest release container from NGC:Available container types:
Check the NGC catalog for the latest version tag.
- Release: Ready-to-use with TensorRT-LLM pre-installed
- Devel: For development with build tools included
3
Launch the container
Start a container with GPU access and port forwarding:Explanation of flags:
--ipc host: Required to prevent bus errors--gpus all: Enable all GPUs--ulimit memlock=-1: Unlimited locked memory--ulimit stack=67108864: Increased stack size-p 8000:8000: Expose port for trtllm-serve-v $(pwd):/workspace: Mount current directory
4
Verify installation
Inside the container, verify TensorRT-LLM is installed:You should see the version number (e.g.,
1.3.0rc6).Verifying Your Installation
After installation, run this comprehensive test:test_installation.py
Environment Configuration
Recommended Environment Variables
Performance Tuning
Upgrading TensorRT-LLM
- Docker
- Pip
- Source
Pull the latest container:
Troubleshooting
CUDA out of memory errors
CUDA out of memory errors
Symptoms:
RuntimeError: CUDA out of memorySolutions:- Use a smaller model or quantized version
- Reduce batch size or sequence length
- Enable KV cache offloading
- Use tensor parallelism across multiple GPUs
- Check for memory leaks (restart Python kernel)
Import errors
Import errors
Symptoms:
ModuleNotFoundError or ImportErrorSolutions:- Verify PyTorch CUDA version matches TensorRT-LLM:
- Check for conflicting installations:
- Reinstall with correct PyTorch:
Driver/CUDA version mismatch
Driver/CUDA version mismatch
Symptoms:
CUDA driver version is insufficient for CUDA runtime versionSolutions:- Update NVIDIA driver:
- Or use CUDA compatibility package:
- Verify driver version:
Compilation errors when building from source
Compilation errors when building from source
Symptoms: Build failures with GCC/C++ errorsSolutions:
- Ensure you’re using the development container
- Update submodules:
- Clean build directory:
- 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:- Documentation: nvidia.github.io/TensorRT-LLM
- GitHub Issues: github.com/NVIDIA/TensorRT-LLM/issues
- NGC Support: NGC Support Portal
- Developer Forums: NVIDIA Developer Forums