[QUESTION] Emulator: to which precision is this consider correct ?

Đang mở
#68 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python, pytorch
Lĩnh vực
testing

Hướng nghiên cứu

Start by locating test_all_reduce in the emulator test suite and the all-reduce implementation it exercises; run it to reproduce the mismatch at roughly seven digits. Check whether the test asserts exact equality or an explicit floating-point tolerance, and compare with similar emulator tests. Done means the expected precision/tolerance is documented and the test either uses a justified tolerance or the mismatch is explained.

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

Mô tả

Hi, I was running the test_all_reduce which fails because the tensors are not similar enough after around 7 digits. Is this an expected behavior ? or do we want exact matching value ?

torch.set_printoptions(precision=10)

ground_truth[torch_rank]
tensor([ 2.1518430710, -3.1110968590, -3.0482885838, -0.1535055935,
         0.5451227427,  0.6111478806, -0.0351422131, -0.0474908650,
        -1.0834826231,  0.4075058699], device='cuda:0')
data_list[torch_rank]
tensor([ 2.1518430710, -3.1110968590, -3.0482888222, -0.1535055935,
         0.5451227427,  0.6111478806, -0.0351421833, -0.0474908650,
        -1.0834826231,  0.4075058401], device='cuda:0')
Ngôn ngữ chính
Python
Star
1k
Fork
65
Merge trung bình
21 giờ 34 phút
Pull request đã merge (30 ngày)
1

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

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 volcengine/veScale

Tất cả issue của volcengine/veScale

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.