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

オープン
#23,275 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@nthu-chung がすでに取り組んでいます。

2026年12月3日 から。

  • #23289 @nthu-chung による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python, pytorch
領域
data

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
15.2k
フォーク
3k
平均マージ
2日 21時間
マージ済み PR(30日)
477

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/TensorRT-LLM のほかの issue

NVIDIA/TensorRT-LLM の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。