CICD-448 · TensorRT-LLM engine building
Encyclopedia · GPU and inference infrastructure · All snippets
Previous · CICD-447 · Next · CICD-449
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites dedicated GPU lab, approved images and model revision, fixed benchmark profile.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
TRT_CHECKPOINT.
2. Copy the snippet
bash
trtllm-build --checkpoint_dir "${TRT_CHECKPOINT:?}" --output_dir engine --max_batch_size 8 --max_input_len 2048 --max_seq_len 2304
test -s engine/config.json3. How it works
The engine build consumes a converted checkpoint and constrains batch and sequence dimensions. Verify on the GPU architecture the resulting engine was built for.
4. Verify the result
Supply a model-specific converted checkpoint. Check flags against the installed TensorRT-LLM release and build for the target GPU architecture.
Validation version-dependent (Bash parse). Status definitions.