[Bug]: GPQA CoT choice shuffles reuse caches from a different seed
Maintainers usually reply within 1 day
@JunkaiWang-TheoPhy is already working on this.
Since Dec 2, 2026.
- #23271 by @JunkaiWang-TheoPhy — open
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- testing-qa
Research direction
Read tensorrt_llm/evaluate/lm_eval_tasks/gpqa/cot_zeroshot_aa/utils.py, focusing on process_docs and the datasets.Dataset.map call. Reproduce the cache mismatch with the on-disk and in-memory datasets described in the issue, then check how the mapping fingerprint accounts for the random seed. Done when both calls with seed 456 produce the same answer letters; linked PR #23271 is already open.
Written by the indexing model from the issue text.
Description
System Info
TensorRT-LLM main at c29791e46a7ef586921114da197d5d6be899bdaf. Reproduced with Python 3.12 and Hugging Face Datasets 5.2.0 on CPU. No GPU, model, or GPQA download is required.
Reproduction
- Create a tiny
datasets.Datasetwith the GPQA columnsIncorrect Answer 1throughIncorrect Answer 3andCorrect Answer. Repeat a row with distinct choices eight times, save the dataset to disk, and load it back so mapping can cache to Arrow. - Call
process_docsintensorrt_llm/evaluate/lm_eval_tasks/gpqa/cot_zeroshot_aa/utils.pywithrandom.seed(123). Setrandom.seed(456)and call it again with the same on-disk dataset. - Set
random.seed(456)and call the same helper with a freshly constructed in-memory dataset containing the same rows. Compare theanswerletters from the second and third calls.
Expected behavior
With the same GPQA inputs and seed, the second and third calls should give the same order and answer letters. An earlier evaluation under a different seed should not affect the prompts used in a later evaluation.
Actual behavior
The on-disk transform under seed 456 reuses the cache written under seed 123. With the fixture above, it begins with answer letter B. The fresh seed-456 transform begins with D.
Additional notes
The callback shuffles answers using module-level Python RNG state. The Arrow fingerprint hashes the map function and its arguments, so the previous seed remains invisible to the cache key. Datasets cache hashing
- Dominant language
- Python
- Stars
- 15.2k
- Forks
- 3k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 477
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/TensorRT-LLM
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPossibly taken @NimaVaziri claimed this today. OpenPytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainers usually reply within 1 day
-
Inference runtime Windows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
NVIDIA/TensorRT-LLM#23394 ·
Maintainers usually reply within 1 day
-
[Bug]: MMLU subsampling changes when evaluators are interleavedPossibly taken @LeNeLeNeWo claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA/TensorRT-LLM#23273 ·
Maintainers usually reply within 1 day
-
Trace-replay Pareto window includes the drain when sessions finish out of admission orderPossibly taken @sbeierle claimed this 3 days ago. OpenTesting
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
NVIDIA/TensorRT-LLM#23077 ·
Maintainers usually reply within 1 day
-
LongBench V2 blog command breaks on inline comments after continuationsPossibly taken @ddlw claimed this 25 days ago. OpenDoc
Difficulty 1/5 Under an hour Newbie friendliness 91/100
NVIDIA/TensorRT-LLM#21879 ·
Maintainers usually reply within 1 day
All issues in NVIDIA/TensorRT-LLM
Similar issues
-
[Resource]: SpaicelyOpenresource-submission validation-passed
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bvis/aegis-hass#725 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
#1643 unrecoverable split: 1 digest with a 403 — two earlier captures of the same URL are real 200sOpen
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Robin-IA/Congressional-Letters-Dev#1684 ·
Maintainers usually reply within 1 day