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 |
|---|---|---|---|---|---|---|---|
40a46945-ada3-5e4c-adff-793f33bba221 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
68f0f04a-92d3-5b18-b913-287731b7de61 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
5d844a4e-1f76-5836-9adf-05d09f748373 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
c35305d5-d132-59ec-9aa3-4f2c2be02229 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
9eebccb4-6863-53c2-87b2-fb9615cb4a9b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
89a0ea7b-8c00-5485-b0ea-5d3edb025d2e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
cc5c43c8-b615-567f-8db1-cc16a53985e1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
bceea3ef-7292-5138-b5ff-5d73f0f636c0 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
b634a41d-155a-59c4-b105-25585f650e1b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
ca64629f-aae8-5d0a-895d-1b5fa8107283 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
80d9576a-5635-58c1-8173-1e18486d661d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
c23ebce2-2b28-532e-af0c-d5edcad3c7b2 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
595537f1-5c70-502e-8e4d-6b9654d9cb23 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc2 | 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_110rc2.md |
d366ef88-8887-5bc8-90de-934357704bbc | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc3/commands/trtllm-bench.html
Version: 1.1.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_110rc3.md |
8bf230a1-85ee-59e9-903d-fd42d0d7562b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
9286ec60-c051-5e92-ad94-4deeeea8c991 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
22e70d09-a043-5cb3-9987-c463447e7371 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
f66aa478-e435-5fc2-89e2-80761427cf1f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
0f08e921-6376-54f4-af7e-20b10c670a56 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
5f256ec0-f25d-52ae-9751-9c8ac242da15 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
f8e61b06-7b23-5f73-8fea-89253d88582c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
fb26f454-2c6d-5f13-9eb5-eb76f8677b7c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
22b3df66-92e1-5588-9d2c-47c94c848ce8 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
4d1c9d07-e825-5137-b198-77b42be8cbda | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
db651a35-e652-5b25-97a4-329df0013578 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
5665c803-7845-5ddc-a12e-1274649cec03 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
fee32f47-517a-524d-a0fa-cc4de710e8ae | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
67bc013e-90a4-588e-8f59-fdfd5f2a4482 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
1abbed1d-0fe7-59cd-8d7f-66fbc51df7c2 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
032822dd-0ffd-58ed-ad67-9638424ca23f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc3 | 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_110rc3.md |
525edea1-bb94-5947-a2af-81edb5bf23ab | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc4/commands/trtllm-bench.html
Version: 1.1.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_110rc4.md |
85d7d1df-3bc0-51e7-9b0b-6757884c6638 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
1adb8fc6-a42f-5489-a772-3c6836f4cdc4 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
18891fa8-325f-5761-a8c1-420f61aa4b49 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
ae5b75f1-f603-5d98-bc90-8cf258df4364 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
5add923b-5fc2-58fa-a3d0-0943b4c2771f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
1d4cbf0b-3363-56d0-ab68-8b2adce8410b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
37f79e5c-26ed-5d80-b6b8-4a52788ce871 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
4d4388c1-4d3f-57b2-829f-03e2a9a43fb0 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
71ca5cbc-bf36-5875-aebd-d11f5e20cf61 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
3a0bedeb-0060-570e-b5cc-7cc4e07a2563 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
bd65ff81-57a3-509a-bc7a-77cc7a3ddc5c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
796fa67b-1b30-5ed2-9722-4bec8bd509f9 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
a9301102-a205-5acf-ac1e-2eed5fc58e2a | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
b1de7f16-bc03-5d74-9a19-c5300db577c7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
38372bc2-5712-51c5-83d5-76ca441df1d8 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
73f1c72c-a323-57f3-b5b4-14a7ce3727d9 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc4 | 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_110rc4.md |
3dd9422d-7868-57fd-b938-f5932386bc85 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc5/commands/trtllm-bench.html
Version: 1.1.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_110rc5.md |
8e30b8cf-de0c-5710-ade2-ab9493d5afb1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
7ffc4022-3a18-5f08-aa7b-77bdbc5d483d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
26dab7cc-f7e7-5366-8df1-6e36027a86c5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
bb3dd580-fecf-54db-8f40-1ad22bfb0c26 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
b6518355-b7ba-5280-baf2-e1bfaa683cdc | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
f073c129-465e-5c11-8706-aed13b13e050 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
072bf38a-6716-5ce6-9f0d-778bfd668f12 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
ce70517f-1489-5594-a968-d315d4fca7d5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
73052aa5-b476-5646-99a3-4582453e8cb3 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
8c01beb3-81cc-54d6-9650-485f1304c1cd | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
60c8ee16-f686-5281-80f8-b53b4112f1e5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
ae28e8e5-1563-5338-825f-6b8758a04d55 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
eabc2f58-7f4e-53b3-9f02-baa8c1646333 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
1e468089-a8db-5b09-9864-10958930cd83 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
ecac13d6-e98a-5e81-9f09-60db67c08e0a | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
e8d70092-3ae0-5334-be01-27039805b38e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 110rc5 | 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_110rc5.md |
bc7a631c-6120-555b-b5a7-17574ac13b39 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.2.0rc0/commands/trtllm-bench.html
Version: 1.2.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_120rc0.md |
9e6a2cd2-936f-51c4-ae3b-b641167f10d6 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
413892e3-d94c-580e-ad9a-499db0a909c0 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
1f54b09b-c890-53ab-8857-7f33b760577c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
51ea7b08-e6fe-5228-baca-935211f64a33 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
bb831748-0af9-5724-bdc9-5932c2714c1b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
83920944-6040-533f-b9ae-b86501eff3c0 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
c34d9122-2dad-52fe-b3e1-4fccd609c47f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
cf620e59-a93e-58ba-b3aa-56f38b0f89a6 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
f2355ac3-2a8f-5724-8c4d-d851eef3fc8d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
ce6a9138-6600-5f16-9ba1-22dace424351 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
7b5dffc0-78dd-5b9a-8e9d-82f22ba27884 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
6fe1c319-94ff-57d6-8fbc-57068fab4f3f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
c71833e0-c3f7-5fb1-888b-28ef1cac40f0 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
d512f8dd-79f3-5bf5-bfb0-b648af241109 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
74ad8a2c-ed00-56ac-a305-793ea1406806 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
26814aeb-efcf-5fa6-97ad-61a30c61e362 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc0 | 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_120rc0.md |
65624722-2d6a-580d-aa87-8751d1c4380e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.2.0rc1/commands/trtllm-bench.html
Version: 1.2.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_120rc1.md |
e60062cb-4f5b-5054-8cd7-4e0c6c086b9b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
519be7f6-1093-5abc-a18d-99e76d45a357 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
7745ee7c-6a35-5f84-aca7-249f3d77a016 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
cab125a6-9ee4-5c0e-9fae-b5bccde308d0 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
0fc50f67-d07b-571a-97f4-b2ac5c7dbb24 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
6bd56bfa-f304-5871-97b3-2b43f6476fda | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
faddb0d1-b40c-5dfd-9bd2-563ed07a67f1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
2061cfb6-6bd7-5255-8455-bb7161e07c46 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
34996162-16a4-5fcd-822b-e996b24f6a13 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
84d00763-0ce0-5ed1-b748-d49fab82ba44 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
b7f27d66-1914-5dd9-9f5d-08023a85ce03 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
8f097fcb-3a0e-5d14-a024-9a389e681907 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
4fb2c2b4-809e-5d44-8018-cf5ff9b369b0 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
be246c44-4b59-513a-b1e6-0da7c5244b10 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
f7918550-edac-5244-90b5-0d1cd2ed6dab | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
c9317ac5-a102-530e-bdb5-ab668a9b830d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc1 | 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_120rc1.md |
80a917b8-556d-523e-8a43-bb872b12884b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 0 | # trtllm-bench#
Source: https://nvidia.github.io/TensorRT-LLM/1.2.0rc2/commands/trtllm-bench.html
Version: 1.2.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_120rc2.md |
d3dad13a-28d7-5af7-93fc-af819e5028ce | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_trtllm-bench | 120rc2 | 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_120rc2.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.