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

Abierto
#23,275 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@nthu-chung ya está trabajando en esto.

Desde el 3/12/2026.

  • #23289 de @nthu-chung — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python, pytorch
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
15.2k
Forks
3k
Merge medio
2 d 21 h
PR fusionados (30 d)
477

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NVIDIA/TensorRT-LLM

Todos los issues de NVIDIA/TensorRT-LLM

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.