chunk_id large_stringlengths 36 36 | doc_type large_stringclasses 2
values | category large_stringclasses 17
values | document large_stringclasses 50
values | version_raw large_stringclasses 590
values | chunk_index int64 0 262 | text large_stringlengths 11 5.69k | file_path large_stringclasses 882
values |
|---|---|---|---|---|---|---|---|
9a9aa67b-c80d-50d3-acd5-89579810f239 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 2 | --sampler\_options <sampler\_options>[#](#cmdoption-trtllm-bench-throughput-sampler_options "Link to this definition")
: Path to a YAML file that sets sampler options.
--max\_batch\_size <max\_batch\_size>[#](#cmdoption-trtllm-bench-throughput-max_batch_size "Link to this definition")
: Maximum runtime batch size ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
818df794-0ad7-5f18-b313-2a217721863a | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 3 | : The percentage of memory to use for KV Cache after model load.
--dataset <dataset>[#](#cmdoption-trtllm-bench-throughput-dataset "Link to this definition")
: Pass in a dataset file for parsing instead of stdin.
--no\_skip\_tokenizer\_init[#](#cmdoption-trtllm-bench-throughput-no_skip_tokenizer_init "Link to thi... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
a349f122-c168-59fe-95c8-69fbe10f3b53 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 4 | --data\_device <data\_device>[#](#cmdoption-trtllm-bench-throughput-data_device "Link to this definition")
: Device to load the multimodal data on.
Options:
: cuda | cpu
--max\_input\_len <max\_input\_len>[#](#cmdoption-trtllm-bench-throughput-max_input_len "Link to this definition")
: Maximum input seq... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
de377437-026a-5b5d-85b9-e6d92109219f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 5 | --target\_output\_len <target\_output\_len>[#](#cmdoption-trtllm-bench-throughput-target_output_len "Link to this definition")
: Target (average) sequence length for tuning heuristics.
--tp <tp>[#](#cmdoption-trtllm-bench-throughput-tp "Link to this definition")
: tensor parallelism size
--pp <pp>[#](#cmdoption-t... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
d0a61acb-d545-5cee-8e5c-8abf6c79053b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 6 | --report\_json <report\_json>[#](#cmdoption-trtllm-bench-throughput-report_json "Link to this definition")
: Path where report is written to.
--iteration\_log <iteration\_log>[#](#cmdoption-trtllm-bench-throughput-iteration_log "Link to this definition")
: Path where iteration logging is written to.
--output\_jso... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
200f36d6-2152-51ab-b16a-37caa3e88f04 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 7 | : KV cache scheduler policy: guaranteed\_no\_evict prevents request eviction, max\_utilization optimizes for throughput.
Options:
: guaranteed\_no\_evict | max\_utilization
### latency[#](#trtllm-bench-latency "Link to this heading")
Run a latency test on a TRT-LLM engine.
```None
trtllm-bench latency [... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
ff3eeff4-fd65-5056-9276-741e188c68e5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 8 | --kv\_cache\_free\_gpu\_mem\_fraction <kv\_cache\_free\_gpu\_mem\_fraction>[#](#cmdoption-trtllm-bench-latency-kv_cache_free_gpu_mem_fraction "Link to this definition")
: The percentage of memory to use for KV Cache after model load.
--max\_seq\_len <max\_seq\_len>[#](#cmdoption-trtllm-bench-latency-max_seq_len "Lin... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
c383df59-34f1-5912-8b90-3055c657843b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 9 | --num\_requests <num\_requests>[#](#cmdoption-trtllm-bench-latency-num_requests "Link to this definition")
: Number of requests to cap benchmark run at. Minimum between value andlength of dataset.
--warmup <warmup>[#](#cmdoption-trtllm-bench-latency-warmup "Link to this definition")
: Number of requests warm up be... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
8737c700-f53a-50fa-b9bd-cc70dd350d77 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 10 | --concurrency <concurrency>[#](#cmdoption-trtllm-bench-latency-concurrency "Link to this definition")
: Desired concurrency rate (number of requests processing at the same time), <=0 for no concurrency limit.
--medusa\_choices <medusa\_choices>[#](#cmdoption-trtllm-bench-latency-medusa_choices "Link to this definiti... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
33c4de75-f418-5f1f-a84c-9ac918ad62f8 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 11 | -pp, --pp\_size <pp\_size>[#](#cmdoption-trtllm-bench-build-pp "Link to this definition")
: Number of pipeline parallel shards to run the benchmark with.
-q, --quantization <quantization>[#](#cmdoption-trtllm-bench-build-q "Link to this definition")
: The quantization algorithm to be used when benchmarking. See th... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
30da7cb7-e117-5b1a-baeb-4322005a62d3 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 12 | --trust\_remote\_code <trust\_remote\_code>[#](#cmdoption-trtllm-bench-build-trust_remote_code "Link to this definition")
: Trust remote code for the HF models that are not natively implemented in the transformers library. This is needed when using LLM API when loading the HF config to build the engine.
--dataset <d... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
a3136321-356b-5f43-8154-88d50391d50d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 13 | --target\_output\_len <target\_output\_len>[#](#cmdoption-trtllm-bench-build-target_output_len "Link to this definition")
: Target (average) sequence length for tuning heuristics.
# prepare\_dataset.py[#](#prepare-dataset-py "Link to this heading")
trtllm-bench is designed to work with the [prepare\_dataset.py](htt... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
a36da54a-29de-5962-ab82-74948fa5e4a3 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 14 | **Usage:**
## prepare\_dataset[#](#prepare-dataset "Link to this heading")
```None
python prepare_dataset.py [OPTIONS]
```
**Options**
---
| Option | Description |
| --- | --- |
| `--tokenizer` | Tokenizer directory or HuggingFace model name (required) |
| `--output` | Output JSON filename (default: preprocessed\_... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
35c0892c-bb5b-5d3e-a889-a4fdf38d02a2 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 15 | | `--max-input-length` | Maximum input sequence length (default: 2048) |
| `--max-output-length` | Maximum output sequence length (default: 512) |
| `--num-samples` | Number of samples to process (default: all) |
| `--format` | Input format: json, jsonl, csv, or txt (default: auto-detect) |
## token\_norm\_dist[#](#to... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
17049ca0-3a7b-5765-8bf3-729d210d4045 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 16 | ## token\_unif\_dist[#](#token-unif-dist "Link to this heading")
Generate synthetic datasets with uniform token distribution
```None
python prepare_dataset.py token_unif_dist [OPTIONS]
```
**Options**
---
| Option | Description |
| --- | --- |
| `--num-requests` | Number of requests to be generated (required) |
| ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc2.md |
4f3adfd0-0931-5962-9517-73d6ec39c4d8 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.2.0rc3/commands/trtllm-bench.html
Version: 1.2.0rc3
trtllm-bench is a comprehensive benchmarking tool for TensorRT LLM engines. It provides three main subcommands for different benchmarking scenarios:
**Common Options for All Commands:**
**Usage:**
##... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
dc12e949-d1f1-5e86-aae2-aeb8ac2adc55 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 1 | : internal\_error | error | warning | info | verbose | debug | trace
### throughput[#](#trtllm-bench-throughput "Link to this heading")
Run a throughput test on a TRT-LLM engine.
```None
trtllm-bench throughput [OPTIONS]
```
Options
--engine\_dir <engine\_dir>[#](#cmdoption-trtllm-bench-throughput-engine_dir... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
3fd7b5e5-dea8-52d4-bd36-cead6ac3628b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 2 | --sampler\_options <sampler\_options>[#](#cmdoption-trtllm-bench-throughput-sampler_options "Link to this definition")
: Path to a YAML file that sets sampler options.
--max\_batch\_size <max\_batch\_size>[#](#cmdoption-trtllm-bench-throughput-max_batch_size "Link to this definition")
: Maximum runtime batch size ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
78dee495-38dd-595a-abdc-386029c00d69 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 3 | : The percentage of memory to use for KV Cache after model load.
--dataset <dataset>[#](#cmdoption-trtllm-bench-throughput-dataset "Link to this definition")
: Pass in a dataset file for parsing instead of stdin.
--no\_skip\_tokenizer\_init[#](#cmdoption-trtllm-bench-throughput-no_skip_tokenizer_init "Link to thi... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
35b12646-f499-5d39-a23e-22a64e1c7e95 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 4 | --data\_device <data\_device>[#](#cmdoption-trtllm-bench-throughput-data_device "Link to this definition")
: Device to load the multimodal data on.
Options:
: cuda | cpu
--max\_input\_len <max\_input\_len>[#](#cmdoption-trtllm-bench-throughput-max_input_len "Link to this definition")
: Maximum input seq... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
5d99d41c-3837-5ac6-9d36-9d1d1255724c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 5 | --target\_output\_len <target\_output\_len>[#](#cmdoption-trtllm-bench-throughput-target_output_len "Link to this definition")
: Target (average) sequence length for tuning heuristics.
--tp <tp>[#](#cmdoption-trtllm-bench-throughput-tp "Link to this definition")
: tensor parallelism size
--pp <pp>[#](#cmdoption-t... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
acb50d56-ea0a-55f6-bb38-78412c77a8a5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 6 | --report\_json <report\_json>[#](#cmdoption-trtllm-bench-throughput-report_json "Link to this definition")
: Path where report is written to.
--iteration\_log <iteration\_log>[#](#cmdoption-trtllm-bench-throughput-iteration_log "Link to this definition")
: Path where iteration logging is written to.
--output\_jso... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
38cf8cf0-9353-54dd-8ba7-702d679e4a40 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 7 | : KV cache scheduler policy: guaranteed\_no\_evict prevents request eviction, max\_utilization optimizes for throughput.
Options:
: guaranteed\_no\_evict | max\_utilization
### latency[#](#trtllm-bench-latency "Link to this heading")
Run a latency test on a TRT-LLM engine.
```None
trtllm-bench latency [... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
fd6f4421-1142-5330-816e-0fcc1dee208b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 8 | --kv\_cache\_free\_gpu\_mem\_fraction <kv\_cache\_free\_gpu\_mem\_fraction>[#](#cmdoption-trtllm-bench-latency-kv_cache_free_gpu_mem_fraction "Link to this definition")
: The percentage of memory to use for KV Cache after model load.
--max\_seq\_len <max\_seq\_len>[#](#cmdoption-trtllm-bench-latency-max_seq_len "Lin... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
1c064536-658a-5685-bb3d-04a422040aa7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 9 | --num\_requests <num\_requests>[#](#cmdoption-trtllm-bench-latency-num_requests "Link to this definition")
: Number of requests to cap benchmark run at. Minimum between value andlength of dataset.
--warmup <warmup>[#](#cmdoption-trtllm-bench-latency-warmup "Link to this definition")
: Number of requests warm up be... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
adc07f0d-d8ea-58ad-bf28-2c871ddfcaba | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 10 | --concurrency <concurrency>[#](#cmdoption-trtllm-bench-latency-concurrency "Link to this definition")
: Desired concurrency rate (number of requests processing at the same time), <=0 for no concurrency limit.
--medusa\_choices <medusa\_choices>[#](#cmdoption-trtllm-bench-latency-medusa_choices "Link to this definiti... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
0c0a221f-c20f-5cdc-9c65-df1dd6a3a488 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 11 | -pp, --pp\_size <pp\_size>[#](#cmdoption-trtllm-bench-build-pp "Link to this definition")
: Number of pipeline parallel shards to run the benchmark with.
-q, --quantization <quantization>[#](#cmdoption-trtllm-bench-build-q "Link to this definition")
: The quantization algorithm to be used when benchmarking. See th... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
b58a72bc-4a96-5167-b218-19606b399011 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 12 | --trust\_remote\_code <trust\_remote\_code>[#](#cmdoption-trtllm-bench-build-trust_remote_code "Link to this definition")
: Trust remote code for the HF models that are not natively implemented in the transformers library. This is needed when using LLM API when loading the HF config to build the engine.
--dataset <d... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
928c4196-1856-5bc9-bc5e-ac92040e2c87 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 13 | --target\_output\_len <target\_output\_len>[#](#cmdoption-trtllm-bench-build-target_output_len "Link to this definition")
: Target (average) sequence length for tuning heuristics.
# prepare\_dataset.py[#](#prepare-dataset-py "Link to this heading")
trtllm-bench is designed to work with the [prepare\_dataset.py](htt... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
86811fb9-f2b5-5631-8467-08943077c411 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 14 | **Usage:**
## prepare\_dataset[#](#prepare-dataset "Link to this heading")
```None
python prepare_dataset.py [OPTIONS]
```
**Options**
---
| Option | Description |
| --- | --- |
| `--tokenizer` | Tokenizer directory or HuggingFace model name (required) |
| `--output` | Output JSON filename (default: preprocessed\_... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
30510e85-d1c4-5243-8b91-fedff58e6539 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 15 | | `--max-input-length` | Maximum input sequence length (default: 2048) |
| `--max-output-length` | Maximum output sequence length (default: 512) |
| `--num-samples` | Number of samples to process (default: all) |
| `--format` | Input format: json, jsonl, csv, or txt (default: auto-detect) |
## token\_norm\_dist[#](#to... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
1bcb3299-4396-534a-891f-bbaae9090f4a | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc3 | 16 | ## token\_unif\_dist[#](#token-unif-dist "Link to this heading")
Generate synthetic datasets with uniform token distribution
```None
python prepare_dataset.py token_unif_dist [OPTIONS]
```
**Options**
---
| Option | Description |
| --- | --- |
| `--num-requests` | Number of requests to be generated (required) |
| ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc3.md |
6a717111-8c73-5aff-811b-b645b31233af | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.2.0rc4/commands/trtllm-bench.html
Version: 1.2.0rc4
trtllm-bench is a comprehensive benchmarking tool for TensorRT LLM engines. It provides three main subcommands for different benchmarking scenarios:
**Common Options for All Commands:**
**Usage:**
##... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
ff0479a2-9ba8-541f-9a16-531a7eedd084 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 1 | : internal\_error | error | warning | info | verbose | debug | trace
### throughput[#](#trtllm-bench-throughput "Link to this heading")
Run a throughput test on a TRT-LLM engine.
```None
trtllm-bench throughput [OPTIONS]
```
Options
--engine\_dir <engine\_dir>[#](#cmdoption-trtllm-bench-throughput-engine_dir... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
121e9b32-556c-5d6a-82c0-b909994fe6d8 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 2 | --sampler\_options <sampler\_options>[#](#cmdoption-trtllm-bench-throughput-sampler_options "Link to this definition")
: Path to a YAML file that sets sampler options.
--max\_batch\_size <max\_batch\_size>[#](#cmdoption-trtllm-bench-throughput-max_batch_size "Link to this definition")
: Maximum runtime batch size ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
6ac47223-bdd5-5722-b760-ba6db8266b4f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 3 | : The percentage of memory to use for KV Cache after model load.
--dataset <dataset>[#](#cmdoption-trtllm-bench-throughput-dataset "Link to this definition")
: Pass in a dataset file for parsing instead of stdin.
--no\_skip\_tokenizer\_init[#](#cmdoption-trtllm-bench-throughput-no_skip_tokenizer_init "Link to thi... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
57a88fa3-2779-545f-86ea-c915bd460fd7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 4 | --data\_device <data\_device>[#](#cmdoption-trtllm-bench-throughput-data_device "Link to this definition")
: Device to load the multimodal data on.
Options:
: cuda | cpu
--max\_input\_len <max\_input\_len>[#](#cmdoption-trtllm-bench-throughput-max_input_len "Link to this definition")
: Maximum input seq... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
3efecc77-ad84-53ee-b554-b47b87807563 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 5 | --target\_output\_len <target\_output\_len>[#](#cmdoption-trtllm-bench-throughput-target_output_len "Link to this definition")
: Target (average) sequence length for tuning heuristics.
--tp <tp>[#](#cmdoption-trtllm-bench-throughput-tp "Link to this definition")
: tensor parallelism size
--pp <pp>[#](#cmdoption-t... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
7e55ff4f-d3f7-5790-bf9a-bcaa9b43973d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 6 | --report\_json <report\_json>[#](#cmdoption-trtllm-bench-throughput-report_json "Link to this definition")
: Path where report is written to.
--iteration\_log <iteration\_log>[#](#cmdoption-trtllm-bench-throughput-iteration_log "Link to this definition")
: Path where iteration logging is written to.
--output\_jso... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
8292a638-4d82-51f3-8938-c43cdbf78dfb | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 7 | : KV cache scheduler policy: guaranteed\_no\_evict prevents request eviction, max\_utilization optimizes for throughput.
Options:
: guaranteed\_no\_evict | max\_utilization
### latency[#](#trtllm-bench-latency "Link to this heading")
Run a latency test on a TRT-LLM engine.
```None
trtllm-bench latency [... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
d5c739a2-e8f5-56e1-812e-431aa97a72d3 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 8 | --kv\_cache\_free\_gpu\_mem\_fraction <kv\_cache\_free\_gpu\_mem\_fraction>[#](#cmdoption-trtllm-bench-latency-kv_cache_free_gpu_mem_fraction "Link to this definition")
: The percentage of memory to use for KV Cache after model load.
--max\_seq\_len <max\_seq\_len>[#](#cmdoption-trtllm-bench-latency-max_seq_len "Lin... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
5f9fd549-81cb-52d5-8c76-448c1afaa9dd | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 9 | --num\_requests <num\_requests>[#](#cmdoption-trtllm-bench-latency-num_requests "Link to this definition")
: Number of requests to cap benchmark run at. Minimum between value andlength of dataset.
--warmup <warmup>[#](#cmdoption-trtllm-bench-latency-warmup "Link to this definition")
: Number of requests warm up be... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
193ea4fc-a18a-5b5b-9df1-464769ce87b1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 10 | --concurrency <concurrency>[#](#cmdoption-trtllm-bench-latency-concurrency "Link to this definition")
: Desired concurrency rate (number of requests processing at the same time), <=0 for no concurrency limit.
--medusa\_choices <medusa\_choices>[#](#cmdoption-trtllm-bench-latency-medusa_choices "Link to this definiti... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
15a2e799-1b09-5d55-9f13-cb61a43645d4 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 11 | -pp, --pp\_size <pp\_size>[#](#cmdoption-trtllm-bench-build-pp "Link to this definition")
: Number of pipeline parallel shards to run the benchmark with.
-q, --quantization <quantization>[#](#cmdoption-trtllm-bench-build-q "Link to this definition")
: The quantization algorithm to be used when benchmarking. See th... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
c7085d1a-558d-5138-b021-55a35e9185c0 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 12 | --trust\_remote\_code <trust\_remote\_code>[#](#cmdoption-trtllm-bench-build-trust_remote_code "Link to this definition")
: Trust remote code for the HF models that are not natively implemented in the transformers library. This is needed when using LLM API when loading the HF config to build the engine.
--dataset <d... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
62ac4a2f-8fd3-56c8-929a-273e5376e2c8 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 13 | --target\_output\_len <target\_output\_len>[#](#cmdoption-trtllm-bench-build-target_output_len "Link to this definition")
: Target (average) sequence length for tuning heuristics.
# prepare\_dataset.py[#](#prepare-dataset-py "Link to this heading")
trtllm-bench is designed to work with the [prepare\_dataset.py](htt... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
dd6dfeaf-a112-5ed7-8733-88cb4aa98347 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 14 | **Usage:**
## prepare\_dataset[#](#prepare-dataset "Link to this heading")
```None
python prepare_dataset.py [OPTIONS]
```
**Options**
---
| Option | Description |
| --- | --- |
| `--tokenizer` | Tokenizer directory or HuggingFace model name (required) |
| `--output` | Output JSON filename (default: preprocessed\_... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
d8db8e99-c8ff-5474-a16c-03dfa0348acc | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 15 | | `--max-input-length` | Maximum input sequence length (default: 2048) |
| `--max-output-length` | Maximum output sequence length (default: 512) |
| `--num-samples` | Number of samples to process (default: all) |
| `--format` | Input format: json, jsonl, csv, or txt (default: auto-detect) |
## token\_norm\_dist[#](#to... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
b4f5fb33-1e1d-5344-b035-4b9195cec923 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc4 | 16 | ## token\_unif\_dist[#](#token-unif-dist "Link to this heading")
Generate synthetic datasets with uniform token distribution
```None
python prepare_dataset.py token_unif_dist [OPTIONS]
```
**Options**
---
| Option | Description |
| --- | --- |
| `--num-requests` | Number of requests to be generated (required) |
| ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc4.md |
5cdc5ce5-7bb2-5788-a80b-f8dbf90f66cc | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.2.0rc5/commands/trtllm-bench.html
Version: 1.2.0rc5
trtllm-bench is a comprehensive benchmarking tool for TensorRT LLM engines. It provides three main subcommands for different benchmarking scenarios:
**Common Options for All Commands:**
**Usage:**
##... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
4a83327d-f685-5f26-b83f-315d5c7e60e3 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 1 | Options:
: internal\_error | error | warning | info | verbose | debug | trace
--revision <revision>[#](#cmdoption-trtllm-bench-revision "Link to this definition")
: The revision to use for the HuggingFace model (branch name, tag name, or commit id).
### throughput[#](#trtllm-bench-throughput "Link to this... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
99aeb4db-31d1-5b2f-afb8-fc96c3993826 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 2 | --config, --extra\_llm\_api\_options <extra\_llm\_api\_options>[#](#cmdoption-trtllm-bench-throughput-config "Link to this definition")
: Path to a YAML file that overwrites the parameters specified by trtllm-bench. Can be specified as either –config or –extra\_llm\_api\_options.
--sampler\_options <sampler\_options... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
15b169d6-77c2-5e01-8385-11388e8bc0d7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 3 | --beam\_width <beam\_width>[#](#cmdoption-trtllm-bench-throughput-beam_width "Link to this definition")
: Number of search beams.
--kv\_cache\_free\_gpu\_mem\_fraction <kv\_cache\_free\_gpu\_mem\_fraction>[#](#cmdoption-trtllm-bench-throughput-kv_cache_free_gpu_mem_fraction "Link to this definition")
: The percent... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
813e3b76-f54c-59b7-b2bb-cfd03426dc3d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 4 | Options:
: image | video
--image\_data\_format <image\_data\_format>[#](#cmdoption-trtllm-bench-throughput-image_data_format "Link to this definition")
: Format of the image data for multimodal models.
Options:
: pt | pil
--data\_device <data\_device>[#](#cmdoption-trtllm-bench-throughput-data_... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
afce3231-181a-527b-a96d-6ef9cee1973c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 5 | --warmup <warmup>[#](#cmdoption-trtllm-bench-throughput-warmup "Link to this definition")
: Number of requests warm up benchmark.
--target\_input\_len <target\_input\_len>[#](#cmdoption-trtllm-bench-throughput-target_input_len "Link to this definition")
: Target (average) input length for tuning heuristics.
--tar... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
17f612cc-a301-5d49-b3da-247a5bbff3c5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 6 | --concurrency <concurrency>[#](#cmdoption-trtllm-bench-throughput-concurrency "Link to this definition")
: Desired concurrency rate (number of requests processing at the same time), <=0 for no concurrency limit.
--streaming[#](#cmdoption-trtllm-bench-throughput-streaming "Link to this definition")
: Enable streami... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
aa600957-e27d-5d3c-9276-43783692a358 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 7 | --enable\_chunked\_context, --disable\_chunked\_context[#](#cmdoption-trtllm-bench-throughput-enable_chunked_context "Link to this definition")
: Enable/disable chunking in prefill stage for enhanced throughput benchmark.
--scheduler\_policy <scheduler\_policy>[#](#cmdoption-trtllm-bench-throughput-scheduler_policy ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
13c85bc6-074a-5a1b-88be-8b8e8fd84535 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 8 | : Path to a YAML file that overwrites the parameters specified by trtllm-bench. Can be specified as either –config or –extra\_llm\_api\_options.
--backend <backend>[#](#cmdoption-trtllm-bench-latency-backend "Link to this definition")
: The backend to use for benchmark. Default is pytorch backend.
Options:
... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
1ed7f09a-1cc3-5ff7-ad86-9b6384bd88f3 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 9 | Options:
: image | video
--max\_input\_len <max\_input\_len>[#](#cmdoption-trtllm-bench-latency-max_input_len "Link to this definition")
: Maximum input sequence length to use for multimodal models. This is used only when –modality is specified since the actual number of vision tokens is unknown before the... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
7ab5ed0b-6a33-5266-9d2e-3cd32f34fc6f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 10 | --beam\_width <beam\_width>[#](#cmdoption-trtllm-bench-latency-beam_width "Link to this definition")
: Number of search beams.
--sampler\_options <sampler\_options>[#](#cmdoption-trtllm-bench-latency-sampler_options "Link to this definition")
: Path to a YAML file that sets sampler options.
--concurrency <concurr... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
3a0eb0bc-c276-5ada-8fb5-dec4fa93b513 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 11 | ### build[#](#trtllm-bench-build "Link to this heading")
Build engines for benchmarking.
Usage
```None
trtllm-bench build [OPTIONS]
```
Options
-tp, --tp\_size <tp\_size>[#](#cmdoption-trtllm-bench-build-tp "Link to this definition")
: Number of tensor parallel shards to run the benchmark with.
-pp, --pp\_size ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
55e73bf7-d068-566a-b38b-5c9c48885313 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 12 | --max\_seq\_len <max\_seq\_len>[#](#cmdoption-trtllm-bench-build-max_seq_len "Link to this definition")
: Maximum total length of one request, including prompt and outputs.
--no\_weights\_loading <no\_weights\_loading>[#](#cmdoption-trtllm-bench-build-no_weights_loading "Link to this definition")
: Do not load the... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
186e5614-39ba-5961-879b-abf519f1f8f1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 13 | --max\_num\_tokens <max\_num\_tokens>[#](#cmdoption-trtllm-bench-build-max_num_tokens "Link to this definition")
: Maximum number of batched tokens the engine can schedule.
--target\_input\_len <target\_input\_len>[#](#cmdoption-trtllm-bench-build-target_input_len "Link to this definition")
: Target (average) inpu... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
a1564784-5585-5445-8405-6af295d73052 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 14 | **Key Features:**
* Tokenizer integration for proper text preprocessing
* Configurable random seeds for reproducible results
* Support for LoRA adapters and task IDs
* Output in JSON format compatible with trtllm-bench
Important
The `--stdout` flag is **required** when using prepare\_dataset.py with trtllm-bench to ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
f026efaf-4282-5255-b8b9-960654437a05 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 15 | | `--lora-dir` | Directory containing LoRA adapters |
| `--log-level` | Logging level: info or debug (default: info) |
## dataset[#](#dataset "Link to this heading")
Process real datasets from various sources.
```None
python prepare_dataset.py dataset [OPTIONS]
```
**Options**
---
| Option | Description |
| --- |... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
b851fb95-7be6-5642-8f7f-83946f22176a | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc5 | 16 | | `--input-mean` | Normal distribution mean for input tokens (required) |
| `--input-stdev` | Normal distribution standard deviation for input tokens (required) |
| `--output-mean` | Normal distribution mean for output tokens (required) |
| `--output-stdev` | Normal distribution standard deviation for output tokens (re... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc5.md |
faecfde5-8440-56b2-b01b-d559cec0c1d2 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.2.0rc6/commands/trtllm-bench.html
Version: 1.2.0rc6
trtllm-bench is a comprehensive benchmarking tool for TensorRT LLM engines. It provides three main subcommands for different benchmarking scenarios:
**Common Options for All Commands:**
**Usage:**
##... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
d71a8618-dc27-5dad-85ac-c28e42a0637d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 1 | Options:
: internal\_error | error | warning | info | verbose | debug | trace
--revision <revision>[#](#cmdoption-trtllm-bench-revision "Link to this definition")
: The revision to use for the HuggingFace model (branch name, tag name, or commit id).
### throughput[#](#trtllm-bench-throughput "Link to this... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
eded8c6d-6821-5857-8e1f-440f5bea4282 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 2 | --config, --extra\_llm\_api\_options <extra\_llm\_api\_options>[#](#cmdoption-trtllm-bench-throughput-config "Link to this definition")
: Path to a YAML file that overwrites the parameters specified by trtllm-bench. Can be specified as either –config or –extra\_llm\_api\_options.
--sampler\_options <sampler\_options... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
167de2fa-0eb8-5b49-b272-ea9d8d25bcee | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 3 | --beam\_width <beam\_width>[#](#cmdoption-trtllm-bench-throughput-beam_width "Link to this definition")
: Number of search beams.
--kv\_cache\_free\_gpu\_mem\_fraction <kv\_cache\_free\_gpu\_mem\_fraction>[#](#cmdoption-trtllm-bench-throughput-kv_cache_free_gpu_mem_fraction "Link to this definition")
: The percent... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
2240aed7-c7e9-5663-a2d5-a118e6a03bcf | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 4 | Options:
: image | video
--image\_data\_format <image\_data\_format>[#](#cmdoption-trtllm-bench-throughput-image_data_format "Link to this definition")
: Format of the image data for multimodal models.
Options:
: pt | pil
--data\_device <data\_device>[#](#cmdoption-trtllm-bench-throughput-data_... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
341df9f7-e0fe-5264-8046-2bef910334bc | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 5 | --warmup <warmup>[#](#cmdoption-trtllm-bench-throughput-warmup "Link to this definition")
: Number of requests warm up benchmark.
--target\_input\_len <target\_input\_len>[#](#cmdoption-trtllm-bench-throughput-target_input_len "Link to this definition")
: Target (average) input length for tuning heuristics.
--tar... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
ea27ae9c-53bf-5120-91b5-f942bd42833f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 6 | --concurrency <concurrency>[#](#cmdoption-trtllm-bench-throughput-concurrency "Link to this definition")
: Desired concurrency rate (number of requests processing at the same time), <=0 for no concurrency limit.
--streaming[#](#cmdoption-trtllm-bench-throughput-streaming "Link to this definition")
: Enable streami... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
907fff5e-65b9-5dea-8cdb-afa712acc9f7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 7 | --enable\_chunked\_context, --disable\_chunked\_context[#](#cmdoption-trtllm-bench-throughput-enable_chunked_context "Link to this definition")
: Enable/disable chunking in prefill stage for enhanced throughput benchmark.
--scheduler\_policy <scheduler\_policy>[#](#cmdoption-trtllm-bench-throughput-scheduler_policy ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
3e24e5b5-364f-5a62-a055-ff2bfed60eb7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 8 | : Path to a YAML file that overwrites the parameters specified by trtllm-bench. Can be specified as either –config or –extra\_llm\_api\_options.
--backend <backend>[#](#cmdoption-trtllm-bench-latency-backend "Link to this definition")
: The backend to use for benchmark. Default is pytorch backend.
Options:
... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
55878e80-a230-5e3b-8fab-5577be9f3be8 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 9 | Options:
: image | video
--max\_input\_len <max\_input\_len>[#](#cmdoption-trtllm-bench-latency-max_input_len "Link to this definition")
: Maximum input sequence length to use for multimodal models. This is used only when –modality is specified since the actual number of vision tokens is unknown before the... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
71d59d7b-b732-5378-97b8-24f9cd5e9097 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 10 | --beam\_width <beam\_width>[#](#cmdoption-trtllm-bench-latency-beam_width "Link to this definition")
: Number of search beams.
--sampler\_options <sampler\_options>[#](#cmdoption-trtllm-bench-latency-sampler_options "Link to this definition")
: Path to a YAML file that sets sampler options.
--concurrency <concurr... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
e8ed20aa-ae6a-5054-b9a1-62fcd25489cb | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 11 | ### build[#](#trtllm-bench-build "Link to this heading")
Build engines for benchmarking.
Usage
```None
trtllm-bench build [OPTIONS]
```
Options
-tp, --tp\_size <tp\_size>[#](#cmdoption-trtllm-bench-build-tp "Link to this definition")
: Number of tensor parallel shards to run the benchmark with.
-pp, --pp\_size ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
1024692a-3e74-5051-9d9b-f9b447d21dfe | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 12 | --max\_seq\_len <max\_seq\_len>[#](#cmdoption-trtllm-bench-build-max_seq_len "Link to this definition")
: Maximum total length of one request, including prompt and outputs.
--no\_weights\_loading <no\_weights\_loading>[#](#cmdoption-trtllm-bench-build-no_weights_loading "Link to this definition")
: Do not load the... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
b8350382-aeb3-528c-85b1-663d4cd6f864 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 13 | --max\_num\_tokens <max\_num\_tokens>[#](#cmdoption-trtllm-bench-build-max_num_tokens "Link to this definition")
: Maximum number of batched tokens the engine can schedule.
--target\_input\_len <target\_input\_len>[#](#cmdoption-trtllm-bench-build-target_input_len "Link to this definition")
: Target (average) inpu... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
a3370c1c-4a3c-5c4c-b7bf-83feed0b67f5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 14 | **Key Features:**
* Tokenizer integration for proper text preprocessing
* Configurable random seeds for reproducible results
* Support for LoRA adapters and task IDs
* Output in JSON format compatible with trtllm-bench
Important
The `--stdout` flag is **required** when using prepare\_dataset.py with trtllm-bench to ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
70952486-d591-5092-bd52-04094ee0c56b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 15 | | `--lora-dir` | Directory containing LoRA adapters |
| `--log-level` | Logging level: info or debug (default: info) |
## dataset[#](#dataset "Link to this heading")
Process real datasets from various sources.
```None
python prepare_dataset.py dataset [OPTIONS]
```
**Options**
---
| Option | Description |
| --- |... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
ba1fcd77-22c3-5090-937c-45f33d3285bc | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc6 | 16 | | `--input-mean` | Normal distribution mean for input tokens (required) |
| `--input-stdev` | Normal distribution standard deviation for input tokens (required) |
| `--output-mean` | Normal distribution mean for output tokens (required) |
| `--output-stdev` | Normal distribution standard deviation for output tokens (re... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc6.md |
5a54f676-f771-5dc5-829c-067d3dc81f2a | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.2.0rc7/commands/trtllm-bench.html
Version: 1.2.0rc7
trtllm-bench is a comprehensive benchmarking tool for TensorRT LLM engines. It provides three main subcommands for different benchmarking scenarios:
Note
**Non-breaking**: `--config <file.yaml>` is th... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
142b2c76-c7e0-5e7e-a174-8851684a927e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 1 | : Path to a Huggingface checkpoint directory for loading model components.
-w, --workspace <workspace>[#](#cmdoption-trtllm-bench-w "Link to this definition")
: The directory to store benchmarking intermediate files.
--log\_level <log\_level>[#](#cmdoption-trtllm-bench-log_level "Link to this definition")
: The... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
f4384a69-16fe-5abd-9023-b9930fe199c6 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 2 | : The backend to use for benchmark. Default is pytorch backend.
Options:
: pytorch | \_autodeploy | tensorrt
--custom\_module\_dirs <custom\_module\_dirs>[#](#cmdoption-trtllm-bench-throughput-custom_module_dirs "Link to this definition")
: Paths to custom module directories to import.
--config, --extr... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
a267d349-3e5d-5f8b-ace7-74733cde88a9 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 3 | --max\_num\_tokens <max\_num\_tokens>[#](#cmdoption-trtllm-bench-throughput-max_num_tokens "Link to this definition")
: Maximum runtime tokens that an engine can accept.
--max\_seq\_len <max\_seq\_len>[#](#cmdoption-trtllm-bench-throughput-max_seq_len "Link to this definition")
: Maximum sequence length.
--beam\_... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
a44d4535-2d98-508f-8892-5993759d1b46 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 4 | --eos\_id <eos\_id>[#](#cmdoption-trtllm-bench-throughput-eos_id "Link to this definition")
: Set the end-of-sequence token for the benchmark. Set to -1 to disable EOS.
--modality <modality>[#](#cmdoption-trtllm-bench-throughput-modality "Link to this definition")
: Modality of the multimodal requests.
Option... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
a9d9d2d2-28fa-5813-a1d5-9f905d265464 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 5 | : Maximum input sequence length to use for multimodal models. This is used only when –modality is specified since the actual number of vision tokens is unknown before the model is run.
--num\_requests <num\_requests>[#](#cmdoption-trtllm-bench-throughput-num_requests "Link to this definition")
: Number of requests... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
f2f426d2-ac09-535a-8f11-6146836bc94c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 6 | --pp <pp>[#](#cmdoption-trtllm-bench-throughput-pp "Link to this definition")
: pipeline parallelism size
--ep <ep>[#](#cmdoption-trtllm-bench-throughput-ep "Link to this definition")
: expert parallelism size
--cluster\_size <cluster\_size>[#](#cmdoption-trtllm-bench-throughput-cluster_size "Link to this definit... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
663c5d01-8eca-5f5a-b12e-040db88cadef | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 7 | --output\_json <output\_json>[#](#cmdoption-trtllm-bench-throughput-output_json "Link to this definition")
: Path where output should be written to.
--request\_json <request\_json>[#](#cmdoption-trtllm-bench-throughput-request_json "Link to this definition")
: Path where per request information is written to.
--e... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
a6e61767-f262-5970-8093-2cf0ebee4f40 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 8 | #### latency[#](#trtllm-bench-latency "Link to this heading")
Run a latency test on a TRT-LLM engine.
Usage
```None
trtllm-bench latency [OPTIONS]
```
Options
--engine\_dir <engine\_dir>[#](#cmdoption-trtllm-bench-latency-engine_dir "Link to this definition")
: Path to a serialized TRT-LLM engine.
--config, --e... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
8f473afc-1e84-5d7e-8daf-bc4710d05f3d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 9 | : The percentage of memory to use for KV Cache after model load.
--max\_seq\_len <max\_seq\_len>[#](#cmdoption-trtllm-bench-latency-max_seq_len "Link to this definition")
: Maximum sequence length.
--dataset <dataset>[#](#cmdoption-trtllm-bench-latency-dataset "Link to this definition")
: Pass in a dataset file... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
52115654-447b-57e5-bed3-da3b5ee64a57 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 10 | --warmup <warmup>[#](#cmdoption-trtllm-bench-latency-warmup "Link to this definition")
: Number of requests warm up benchmark.
--tp <tp>[#](#cmdoption-trtllm-bench-latency-tp "Link to this definition")
: tensor parallelism size
--pp <pp>[#](#cmdoption-trtllm-bench-latency-pp "Link to this definition")
: pipelin... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
f46f9b44-27cf-5d35-9ecf-0199fbe81f0d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 11 | --medusa\_choices <medusa\_choices>[#](#cmdoption-trtllm-bench-latency-medusa_choices "Link to this definition")
: Path to a YAML file that defines the Medusa tree.
--report\_json <report\_json>[#](#cmdoption-trtllm-bench-latency-report_json "Link to this definition")
: Path where report should be written to.
--i... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
68130d35-b458-5e16-be0f-8f40233ce2ab | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 12 | -q, --quantization <quantization>[#](#cmdoption-trtllm-bench-build-q "Link to this definition")
: The quantization algorithm to be used when benchmarking. See the documentations for more information.
- <https://nvidia.github.io/TensorRT-LLM/precision.html> - [NVIDIA/TensorRT-LLM](https://github.com/NVIDIA/TensorR... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
1953d38f-5486-52e0-a9fe-a88ef7358af6 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 13 | : Trust remote code for the HF models that are not natively implemented in the transformers library. This is needed when using LLM API when loading the HF config to build the engine.
--dataset <dataset>[#](#cmdoption-trtllm-bench-build-dataset "Link to this definition")
: Dataset file to extract the sequence stati... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
5b94b5b3-343c-500f-9bd9-85f70d45453f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 14 | : Target (average) sequence length for tuning heuristics.
## Dataset preparation[#](#dataset-preparation "Link to this heading")
### prepare\_dataset.py[#](#prepare-dataset-py "Link to this heading")
trtllm-bench is designed to work with the [prepare\_dataset.py](https://github.com/NVIDIA/TensorRT-LLM/blob/main/be... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
66ca5d4a-23fb-5cf2-bde5-973d45201247 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 15 | #### prepare\_dataset[#](#prepare-dataset "Link to this heading")
```None
python prepare_dataset.py [OPTIONS]
```
**Options**
---
| Option | Description |
| --- | --- |
| `--tokenizer` | Tokenizer directory or HuggingFace model name (required) |
| `--output` | Output JSON filename (default: preprocessed\_dataset.js... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
303300f0-2b1a-5dab-89ee-5584c1051d91 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc7 | 16 | | `--max-input-length` | Maximum input sequence length (default: 2048) |
| `--max-output-length` | Maximum output sequence length (default: 512) |
| `--num-samples` | Number of samples to process (default: all) |
| `--format` | Input format: json, jsonl, csv, or txt (default: auto-detect) |
#### token\_norm\_dist[#](#... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_120rc7.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.