Gupta describes TensorRT as a graph optimizer and executor, with TensorRT-LLM adding specialized plugins and CUDA kernels for language models. It also supports in-flight batching and optimization profiles for different input lengths, output lengths, and batch sizes. The gains come with trade-offs: engine builds can take hours, and engines are optimized for specific GPUs and workloads.
From model weights to API endpoint with TensorRT LLM
Speakers
Philip Kiely, developer relations at Base10, and co-founder Pankaj Gupta explain how to build, tune, benchmark, and deploy TensorRT-LLM models in an interactive AI Engineer workshop in San Francisco.
Kiely says TensorRT-LLM supports dozens of foundation models and fine-tunes, as well as architectures such as Whisper. The speakers discuss GPU support and precision options, highlighting FP8 on H100 and L4 GPUs. Gupta says tensor parallelism can split matrix work across GPUs to fit larger models, though a model that fits on one GPU will generally have better throughput.
The workshop builds an engine for TinyLlama 1.1B on an RTX 4090, using Hugging Face weights and TensorRT-LLM conversion and build tools. The first engine is about 2 GB; after FP8 quantization of the weights and KV cache, the engine is about 1.2 GB, with output the speakers describe as similar. Gupta explains that checkpoint conversion can handle model formatting, quantization, and splitting weights for tensor parallelism.
Kiely introduces Truss, an open-source Python packaging framework, and demonstrates configuring a TensorRT-LLM deployment through YAML and an API endpoint. The speakers benchmark requests at different concurrency levels, measuring time to first token and total tokens per second. In one TinyLlama example, concurrency 64 yields about 7,000 total tokens per second versus about 5,000 earlier, while higher concurrency increases per-request latency and GPU memory use.
Kiely explains that production serving adds challenges such as large engine files, GPU-specific builds, request routing, and cold starts. He describes Baseten's autoscaling approach: queue requests while a model starts, add pods as demand approaches capacity, and scale down to zero when traffic falls. He says fast cold starts matter for scale-to-zero, giving targets of under 10 seconds for 10 GB models and under a minute for 50 GB models.
Takeaways
- Choose engine profiles using expected input and output lengths, batch sizes, and production GPU hardware.
- Benchmark the deployed workload across concurrency levels and latency percentiles; throughput and user-perceived speed can move in different directions.
- Measure quantization quality on representative data, especially when quantizing the KV cache.
- Use tensor parallelism when a model cannot fit on one GPU, while accounting for its throughput costs.
- Plan for engine size and cold-start time when designing autoscaling for GPU inference.
Mentioned in this talk
Search inside this talk
What was claimed 11
- foundedPankaj Gupta founded
Base10co-founder“Pankaj Gupta, the co-founder of Base10”
YouTube Verified2 sources· Talk, Web· archived
- built
Nvidia built
TensorRT-LLM
“TensorRT-LLM is developed by NVIDIA”
YouTube Verified2 sources· Talk, GitHub· archived
- role atPhilip Kiely is developer relations at
Base10“I do developer relations here at Base10”
YouTube Unverified1 source· Talk
- feature
TensorRT-LLM: Optimized inference engines for large language models, including plugins, quantization, and in-flight batching
“TensorRT-LLM is a very optimized way of executing these graphs using GPU resources”
YouTube Unverified1 source· Talk
- uses
Base10 uses TensorRT-LLM
“We're using TensorRT-LLM today for tons of different client projects”
YouTube Unverified1 source· Talk
- metric
TensorRT-LLM: 216 perceived tokens per second and 180 milliseconds time to first token in a Mistral 7B benchmark with additional optimizations
“we were able to get 216 perceived tokens per second and 180 milliseconds time to first token”
YouTube Unverified1 source· Talk
- metric
TinyLlama: 1.1 billion parameters“this super tiny 1.1-billion-parameter model”
YouTube Unverified1 source· Talk
- featureFP8: Quantizes model weights and KV cache
“FP8 quantization can happen at two levels”
YouTube Unverified1 source· Talk











