[Bug]: MMLU num_samples is not a total sample limit

Aperta
#23,275 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@nthu-chung ci sta già lavorando.

Dal 3/12/2026.

  • #23289 di @nthu-chung — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python, pytorch
Ambito
data

Direzione di ricerca

Start with the MMLU implementation that defines MMLU.generate_samples() and trace how num_samples is allocated across subjects. Reproduce the reported counts with the official MMLU CSVs and the three-subject fixture with 1, 3, and 4 rows. The issue reports that a local round-robin quota candidate passes all six regression checks; an open linked pull request is already addressing the issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Customized kernels
Reproduction

Use the official MMLU CSVs with the evaluator on main 14e20e90eb5c55416cbc7e6d1be8d12e52d1d709. Construct MMLU(dataset_path=path, num_samples=n) and count the records from generate_samples().

Requested Current output
1 57
58 114
200 228
342 342

The implementation rounds the quota up independently for every subject. It can exceed the requested budget and can also undershoot it on datasets with uneven subject sizes. A three-subject CSV fixture with 1, 3 and 4 rows returns 5 rows when 6 are requested.

Expected behavior

Apply the requested count across all subjects, allocating balanced quotas where data is available and redistributing unused quota.

A local round-robin quota candidate returned exactly the lower requested counts, left the original 342-row selection unchanged, and produced the same full result of 14,042 rows. The same regression suite went from three failures and three passes on main to six passes. This exercise verifies CPU-side selection only. It does not run inference.

Lingua principale
Python
Stelle
15.2k
Fork
3k
Merge medio
2g 21h
PR unite (30g)
477

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/TensorRT-LLM

Tutte le issue di NVIDIA/TensorRT-LLM

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.