Eval CSV validation accepts duplicate headers and loses a column value

Đang mở
#700 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

@raunakpandey1 đang làm issue này rồi.

Từ ngày 30/11/2026.

  • #701 của @raunakpandey1 — đang mở
  • #706 của @theluckystrike — đang mở

Đá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
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
testing

Hướng nghiên cứu

Start in together.lib.utils.files at check_file and trace how eval CSV headers are validated and loaded. Reproduce with the provided duplicate answer header, then run the relevant validation tests. Done means duplicate header names are rejected with a clear error before the dataset can be uploaded; pull request 701 is already open for this issue.

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

Mô tả

Reproduction

On current main (5e863640), save this as eval.csv:

prompt,answer,answer
Question,intended answer,other answer

Run check_file(Path("eval.csv"), purpose="eval") from together.lib.utils.files. The SDK reports is_check_passed=True and load_csv=True, even though csv.DictReader keeps only the last value for the duplicated answer key.

Expected

Validation should reject duplicate header names and explain the problem so a user can correct the dataset before uploading it. Reproduced locally on macOS with Python 3.13. This only exercises local validation. Codex assisted with the reproduction.

Ngôn ngữ chính
Python
Star
13
Fork
6
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
23

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 togethercomputer/together-py

Tất cả issue của togethercomputer/together-py

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.