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 |
|---|---|---|---|---|---|---|---|
ff8f6eaf-1754-5c13-8097-e1fd876826c7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 3 | --modality <modality>[#](#cmdoption-trtllm-bench-throughput-modality "Link to this definition")
: Modality of the multimodal requests.
Options:
: image | video
--max\_input\_len <max\_input\_len>[#](#cmdoption-trtllm-bench-throughput-max_input_len "Link to this definition")
: Maximum input sequence leng... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100.md |
46e3b531-8256-5db5-a078-8f6391072544 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 4 | --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_100.md |
5bb03248-805b-5cc2-8553-c855a0ddbfd1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 5 | --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_100.md |
81785d8d-1b5a-5b47-bee7-95dbb5b661c3 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 6 | : 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_100.md |
c0cb19ae-7f1f-568d-8573-08836e191e69 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 7 | --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 for parsing instead of stdin.
--modality <modality>[#](#cmdoption-... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100.md |
3bfcbd06-3969-5e69-9f4e-38fa1d58b860 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 8 | --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_100.md |
69a71a30-7c3d-5f0b-b1c2-4b82fec8e099 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 9 | --report\_json <report\_json>[#](#cmdoption-trtllm-bench-latency-report_json "Link to this definition")
: Path where report should be written to.
--iteration\_log <iteration\_log>[#](#cmdoption-trtllm-bench-latency-iteration_log "Link to this definition")
: Path where iteration logging is written to.
### build[#]... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100.md |
531e5fb8-bedc-58b7-9349-d23f71cf36b9 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 10 | - <https://nvidia.github.io/TensorRT-LLM/precision.html> - [NVIDIA/TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM/blob/main/docs/source/blogs/quantization-in-TRT-LLM.md)
Options:
: W8A16 | W4A16 | W4A16\_AWQ | W4A8\_AWQ | W4A16\_GPTQ | FP8 | INT8 | NVFP4
--max\_seq\_len <max\_seq\_len>[#](#cmdopti... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100.md |
e8e51865-b6ed-5905-a59e-cff7e174aaa9 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 11 | --dataset <dataset>[#](#cmdoption-trtllm-bench-build-dataset "Link to this definition")
: Dataset file to extract the sequence statistics for engine build.
--max\_batch\_size <max\_batch\_size>[#](#cmdoption-trtllm-bench-build-max_batch_size "Link to this definition")
: Maximum number of requests that the engine c... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100.md |
f2e88bf0-8354-5049-b290-1827210c0b7d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 12 | # 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/benchmarks/cpp/prepare_dataset.py) script, which generates benchmark datasets in the required format. The prepare\_dataset script support... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100.md |
e5cd0c37-e93a-5c16-b674-d84c2739b709 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 13 | ## 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.json... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100.md |
5a4cc572-5bc0-51f3-bc45-b273247f470f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 14 | | `--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_100.md |
74fd6e41-bd8c-5632-8aa4-771a34b2b408 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100 | 15 | ## 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_100.md |
726c75a2-6403-5666-82da-33f2c19f3ea3 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.0.0rc5/commands/trtllm-bench.html
Version: 1.0.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_100rc5.md |
6190e0c6-1f1b-5b7b-ada3-29d3cd426b97 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 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_100rc5.md |
d3ff3b62-4260-5e60-ac4f-9c2e70953095 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 2 | --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_100rc5.md |
a0659c8f-b0ce-599d-8730-c21898ea993e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 3 | --modality <modality>[#](#cmdoption-trtllm-bench-throughput-modality "Link to this definition")
: Modality of the multimodal requests.
Options:
: image | video
--max\_input\_len <max\_input\_len>[#](#cmdoption-trtllm-bench-throughput-max_input_len "Link to this definition")
: Maximum input sequence leng... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc5.md |
c486082a-2a46-5c17-b434-c7959ef9a9f3 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 4 | --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_100rc5.md |
4c769972-d5c2-5ae5-9120-2f1c84880ee8 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 5 | --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_100rc5.md |
693e9805-a01a-5341-87ba-a38ef3596d59 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 6 | : 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_100rc5.md |
a79a31b9-15c1-58a4-bc72-7585ccc3549d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 7 | --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 for parsing instead of stdin.
--modality <modality>[#](#cmdoption-... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc5.md |
85fc10da-a985-5274-be67-7e2e322513da | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 8 | --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_100rc5.md |
7c06b963-026b-5cd7-b8ee-cd2b1f7eebe3 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 9 | --report\_json <report\_json>[#](#cmdoption-trtllm-bench-latency-report_json "Link to this definition")
: Path where report should be written to.
--iteration\_log <iteration\_log>[#](#cmdoption-trtllm-bench-latency-iteration_log "Link to this definition")
: Path where iteration logging is written to.
### build[#]... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc5.md |
25db2b59-ecd1-5d6c-8de0-bec1504e3400 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 10 | - <https://nvidia.github.io/TensorRT-LLM/precision.html> - [NVIDIA/TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM/blob/main/docs/source/blogs/quantization-in-TRT-LLM.md)
Options:
: W8A16 | W4A16 | W4A16\_AWQ | W4A8\_AWQ | W4A16\_GPTQ | FP8 | INT8 | NVFP4
--max\_seq\_len <max\_seq\_len>[#](#cmdopti... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc5.md |
831b9f5c-c803-5cad-ba45-bf0a7b1ace2c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 11 | --dataset <dataset>[#](#cmdoption-trtllm-bench-build-dataset "Link to this definition")
: Dataset file to extract the sequence statistics for engine build.
--max\_batch\_size <max\_batch\_size>[#](#cmdoption-trtllm-bench-build-max_batch_size "Link to this definition")
: Maximum number of requests that the engine c... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc5.md |
3f896269-30d5-5700-b964-5971ab0ba818 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 12 | # 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/benchmarks/cpp/prepare_dataset.py) script, which generates benchmark datasets in the required format. The prepare\_dataset script support... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc5.md |
9db4a6c6-37d2-5df8-8be0-2e0a6cee0a43 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 13 | ## 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.json... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc5.md |
78f4451e-3d8e-5441-a824-33ed41612134 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 14 | | `--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_100rc5.md |
87d9635b-144d-522f-9deb-3aa78fa8df7f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc5 | 15 | ## 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_100rc5.md |
b944821d-e41b-5359-8a13-ab832c38f4c7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.0.0rc6/commands/trtllm-bench.html
Version: 1.0.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_100rc6.md |
90888c7d-4822-5bd4-ab79-e3f164a68067 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 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_100rc6.md |
e96916e7-9eed-5476-94b2-8ed90e890bf6 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 2 | --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_100rc6.md |
416748de-823b-5216-a506-237fa543b082 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 3 | --modality <modality>[#](#cmdoption-trtllm-bench-throughput-modality "Link to this definition")
: Modality of the multimodal requests.
Options:
: image | video
--max\_input\_len <max\_input\_len>[#](#cmdoption-trtllm-bench-throughput-max_input_len "Link to this definition")
: Maximum input sequence leng... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc6.md |
c3bb13ec-f2a4-5d5f-8c58-dfdb537e3584 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 4 | --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_100rc6.md |
9018e3b1-f635-5169-babc-35ce2700fb1d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 5 | --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_100rc6.md |
7e1cc52b-395e-5d3b-b499-42e0b1b0de61 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 6 | : 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_100rc6.md |
86e23d70-d42f-5037-b1d4-2ddc45a40136 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 7 | --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 for parsing instead of stdin.
--modality <modality>[#](#cmdoption-... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc6.md |
4e3503f7-734b-5683-8fa9-bf5b5f544b5d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 8 | --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_100rc6.md |
a1d260d8-e9ec-5a28-8772-02d6514688b1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 9 | --report\_json <report\_json>[#](#cmdoption-trtllm-bench-latency-report_json "Link to this definition")
: Path where report should be written to.
--iteration\_log <iteration\_log>[#](#cmdoption-trtllm-bench-latency-iteration_log "Link to this definition")
: Path where iteration logging is written to.
### build[#]... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc6.md |
5d99d4cb-2d05-50b2-a3b8-5c84a59799a6 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 10 | - <https://nvidia.github.io/TensorRT-LLM/precision.html> - [NVIDIA/TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM/blob/main/docs/source/blogs/quantization-in-TRT-LLM.md)
Options:
: W8A16 | W4A16 | W4A16\_AWQ | W4A8\_AWQ | W4A16\_GPTQ | FP8 | INT8 | NVFP4
--max\_seq\_len <max\_seq\_len>[#](#cmdopti... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc6.md |
f606699b-1520-55a1-b8b0-7cf5488912b6 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 11 | --dataset <dataset>[#](#cmdoption-trtllm-bench-build-dataset "Link to this definition")
: Dataset file to extract the sequence statistics for engine build.
--max\_batch\_size <max\_batch\_size>[#](#cmdoption-trtllm-bench-build-max_batch_size "Link to this definition")
: Maximum number of requests that the engine c... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc6.md |
f64f1917-7ddf-560e-bd40-d99d3e4784d5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 12 | # 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/benchmarks/cpp/prepare_dataset.py) script, which generates benchmark datasets in the required format. The prepare\_dataset script support... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc6.md |
2b71fb67-83a6-59b0-b27f-a8f94f34bf89 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 13 | ## 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.json... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_100rc6.md |
ec98468a-9c13-5b62-90f0-ece2ae02a78f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 14 | | `--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_100rc6.md |
906c5199-d778-546a-b97c-165c8c84f7bc | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 100rc6 | 15 | ## 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_100rc6.md |
2f26e5ca-b3a8-57dd-8f09-cc993ae7e27f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0/commands/trtllm-bench.html
Version: 1.1.0
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:**
## trtll... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110.md |
17cc4e43-5ae4-5fc4-96d5-674433eb51f5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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.
Usage
```None
trtllm-bench throughput [OPTIONS]
```
Options
--engine\_dir <engine\_dir>[#](#cmdoption-trtllm-bench-throughput-eng... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110.md |
05cfafa7-8dd5-5165-b0b1-c93998b8c8bd | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
7308f6f0-ab58-57e2-9c05-ab5096be154d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
afdeb911-fb4b-5449-af5c-6aeb26c9471c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
7bf90cfa-d26e-5502-b60c-1c117a56ac3f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
827985f7-51b6-5d58-a93a-a57748879017 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
165f7dc0-175d-5666-a091-147d872d8b0c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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.
Usage
```None
trtllm-bench la... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110.md |
3f763b98-de1e-503f-b486-2eac5e8ee176 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
f9faed62-7891-578e-99d8-ce60ef948fdd | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
b8fab76c-1a4e-5022-97ab-ace5c75d2e0f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
6bee4922-2e56-52d0-95e9-52fdb72daab2 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
de0f00f4-a407-50d1-a2da-30fcbd48c73e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
69991a43-6e62-5d0c-9b88-226a1eec5bec | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
24fd242e-dd83-5d45-89c8-6641e0972203 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
4f7934e0-d2d5-5522-8f97-0344a23310d4 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
a4f5feb7-0878-520a-8143-a4a57291e699 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110 | 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_110.md |
8354fe8f-25c6-528b-bbc6-05b14d443e04 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc0/commands/trtllm-bench.html
Version: 1.1.0rc0
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_110rc0.md |
72a050f0-84a7-58a1-972b-cd92a96a1418 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 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_110rc0.md |
7b7c50d9-4446-5659-87c0-bd4e4bfbea48 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 2 | --max\_batch\_size <max\_batch\_size>[#](#cmdoption-trtllm-bench-throughput-max_batch_size "Link to this definition")
: Maximum runtime batch size to run the engine with.
--max\_num\_tokens <max\_num\_tokens>[#](#cmdoption-trtllm-bench-throughput-max_num_tokens "Link to this definition")
: Maximum runtime tokens t... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc0.md |
7f2fecd9-9858-5ccc-857e-0e4866a0ab99 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 3 | : Data type for Mamba SSM cache. If ‘auto’, inferred from model config.
Options:
: auto | float16 | bfloat16 | float32
--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[#](#cmdo... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc0.md |
0772e66b-217c-5bac-bfdd-fc1a48a567eb | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 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_110rc0.md |
ae6cd264-d7fe-5c60-bb4e-f427936b9a69 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 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_110rc0.md |
a99dc7ff-261b-5309-bb43-013472231734 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 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_110rc0.md |
901ce65c-16ba-56c4-8105-4f2b2531d976 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 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_110rc0.md |
c87f6cc7-b3c7-5777-9fdb-d682f4c5b33b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 8 | --mamba\_ssm\_cache\_dtype <mamba\_ssm\_cache\_dtype>[#](#cmdoption-trtllm-bench-latency-mamba_ssm_cache_dtype "Link to this definition")
: Data type for Mamba SSM cache. If ‘auto’, inferred from model config.
Options:
: auto | float16 | bfloat16 | float32
--max\_seq\_len <max\_seq\_len>[#](#cmdoption-trt... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc0.md |
847f08ed-95d1-584c-b59e-ac74e46d84ae | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 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 b... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc0.md |
4ba838e1-ea53-5e15-a0a7-a63ace2fc052 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 10 | --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_110rc0.md |
06b85acc-05cd-5fc4-9a79-e4a119ad3c89 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 11 | -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_110rc0.md |
700e0597-d917-5142-bea4-2cc664e41cc9 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 12 | : 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_110rc0.md |
db284624-8b9b-5aac-8273-428ca288c0fe | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 13 | : 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](https://github.com/NVIDIA/TensorRT-LLM/blob/main/benchmarks/cpp/prepare_dataset.py) script, which generates benchmark dataset... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc0.md |
856fe1e8-05b2-56ad-a47b-e38db6002984 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 14 | ## 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.json... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc0.md |
f638f4ce-3757-50c6-9fe2-d30e497ff5ff | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 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_110rc0.md |
63ed8691-fa37-5e5f-a155-260ad6a458e1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc0 | 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_110rc0.md |
8770b575-3b3e-58dc-a1ed-29dbef2540b1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc1/commands/trtllm-bench.html
Version: 1.1.0rc1
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_110rc1.md |
b33b5ed5-1556-500b-bae2-17c66ae532cf | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 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_110rc1.md |
fbc0a9c2-5b09-54ac-87df-014c85e4e027 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 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_110rc1.md |
943503d7-00dc-5f33-bca1-02cc370f1051 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 3 | : The percentage of memory to use for KV Cache after model load.
--mamba\_ssm\_cache\_dtype <mamba\_ssm\_cache\_dtype>[#](#cmdoption-trtllm-bench-throughput-mamba_ssm_cache_dtype "Link to this definition")
: Data type for Mamba SSM cache. If ‘auto’, inferred from model config.
Options:
: auto | float16 ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc1.md |
df689d52-3721-5928-9a9e-4455fbb45838 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 4 | --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_device "Link to this definition")
: ... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc1.md |
7ffa5114-6ba9-5fbf-8313-b193985ce551 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 5 | : 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.
--target\_output\_len <target\_output\_len>[#](#cmdoption-trtllm-bench-throughput-target_output... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc1.md |
35bc1f78-1838-5eef-903d-68f42732323a | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 6 | : 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 streaming mode for requests.
--report\_json <report\_json>[#](#cmdoption-trtllm-bench-throughput-report_json "L... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc1.md |
47af1e70-2d79-5d75-974c-bba445786542 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 7 | : Enable/disable chunking in prefill stage for enhanced throughput benchmark.
--scheduler\_policy <scheduler\_policy>[#](#cmdoption-trtllm-bench-throughput-scheduler_policy "Link to this definition")
: KV cache scheduler policy: guaranteed\_no\_evict prevents request eviction, max\_utilization optimizes for throug... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc1.md |
09662d84-95fb-53e0-93ed-9ff2c6cc33eb | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 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.
--mamba\_ssm\_cache\_dtype <mamba\_ssm\_cache\_dtype>[#](#cmdoption-trtllm-bench-la... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc1.md |
c321c444-657a-5451-8215-347f38375ee0 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 9 | --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 model is run.
--num\_requests <num... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc1.md |
41555114-27ba-5b58-96b8-08e65dff5e9e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 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_110rc1.md |
eee9f71b-4bb0-5113-a85a-244935b762e0 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 11 | ### build[#](#trtllm-bench-build "Link to this heading")
Build engines for benchmarking.
```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 <pp\_si... | large_dataset/raw/docs/nvidia_tensorrt-llm/trtllm-bench/trtllm-bench_110rc1.md |
1c67194c-fb08-5c32-b36e-13550673cb6f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 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_110rc1.md |
2724bd72-8225-50b6-9e7d-e364a4e5ae52 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 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_110rc1.md |
ec233d11-e64e-5d52-ae13-6cef087a8a35 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 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_110rc1.md |
1ffeb684-56f7-5c9a-a1a4-9e42c3b777bc | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 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_110rc1.md |
38b660e9-5f98-5b47-a23a-ba18ca6dbdbd | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc1 | 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_110rc1.md |
f895709f-a0ed-594c-b230-127f7fb7574b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc2/commands/trtllm-bench.html
Version: 1.1.0rc2
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_110rc2.md |
8950b0c1-7538-569c-a7cd-9a8b55910ebe | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
ad8f2ccc-0075-57ef-803c-aaee6a66670b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
75241fd3-4188-5d37-a6ed-4cee6b8fdfcc | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.