[Feature Request] Stream synthetic benchmark requests as they are generated

Open
#23,064 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@laikhtewari is already working on this.

Since Nov 30, 2026.

  • #23065 by @HaoyangPing0324 — open

Assessment

This issue has not been assessed yet.

Description

feature request
🚀 The feature, motivation and pitch

The DeepSeek-V3 benchmark guide asks users to prepare a dataset with 49,152 requests of 1,024 input tokens. Both synthetic dataset commands currently build a Python list containing every input token ID before writing the first JSONL row. The documented workload therefore retains over 50 million token IDs on the host during preparation. Benchmark recipe

Run the following with a local HF tokenizer. Watch the process peak RSS and the time until the output file grows.

trtllm-bench --model "$MODEL" prepare-dataset --random-seed 42 --output dataset.jsonl token-norm-dist   --num-requests 49152 --input-mean 1024 --input-stdev 0 --output-mean 2048 --output-stdev 0

Ordinary workloads and fixed-adapter workloads can write each completed request immediately. The generated JSONL should stay byte-identical for a fixed seed, including task metadata, token sampling and EOS replacement. The random-adapter mode also needs to preserve its established ordering of random draws. This concerns the preparation command running on the host.

Alternatives

No response

Additional context

No response

Before submitting a new issue...
  • Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.
Dominant language
Python
Stars
15.2k
Forks
3k
Avg merge
2d 21h
Merged PRs (30d)
477

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA/TensorRT-LLM

All issues in NVIDIA/TensorRT-LLM

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.