[Bug]: MMLU subsampling changes when evaluators are interleaved

Đang mở Phù hợp với người mới
#23,273 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
numpy, pandas, python

Hướng nghiên cứu

Tìm đường dẫn tải CSV và lấy mẫu của bộ đánh giá MMLU, sau đó đọc cách generate_samples() sử dụng seed ngẫu nhiên của constructor và việc lấy mẫu bằng pandas. Tái hiện chuỗi chạy xen kẽ các bộ đánh giá trong issue bằng một CSV nhỏ gồm hai môn, mỗi môn có mười hai hàng. Hoàn thành khi các lần gọi lặp lại trên cùng một bộ đánh giá có cùng seed trả về cùng các câu hỏi theo cùng thứ tự, bất kể có một bộ đánh giá khác chạy xen giữa hay không.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Reproduction

On main at 6874bcdc6b6877e155e121070f368ada17de6000, use an MMLU CSV dataset with more rows in each subject than the requested sample count permits. The CSV loader and sampling path run entirely on CPU.

  1. Construct MMLU(dataset_path=path, num_samples=6, num_fewshot=0, random_seed=42) and save list(generate_samples()).
  2. Construct a second evaluator with seed 7 and generate its samples.
  3. Call generate_samples() on the first evaluator again.
Expected

For the same data and seed, the first evaluator should select the same questions on each pass.

Actual

With two subjects and twelve rows each, the first anatomy question changes from row 10 to row 4. The constructor seeds global NumPy state, but pandas sampling uses the global state later, after other work can change it. This makes repeated evaluations of the same seeded subset incomparable.

Official MMLU replay

Using the dataset linked by the MMLU authors and the existing evaluator's CSV path, I ran the same sequence on all 57 subjects with 342 selected questions per pass. Interleaving the seed-7 evaluator replaced 326 of the original 342 questions for seed 42. With a local random stream per pass, all 342 questions and their order were preserved. The initial seed-42 draw was identical across both implementations.

This replays question selection only. It uses no model or GPU inference.

Ngôn ngữ chính
Python
Star
15.1k
Fork
3k
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
474

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/TensorRT-LLM

Tất cả issue của NVIDIA/TensorRT-LLM

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.