`initialize_state` starts to impact memory usage at very high atom numbers > 100,000,000

Đang mở
#129 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 2 ngày

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python, pytorch
Lĩnh vực
performance

Hướng nghiên cứu

Start by reading torch_sim.state.initialize_state and the HotSwappingAutobatcher and ChunkingAutoBatcher entry points mentioned in the issue. Clarify how state tensors are created and whether the chunking autobatcher can consume a stream of states. Done should mean the proposed approach avoids requiring the full state to reside on the GPU; the issue does not specify tests or acceptance criteria.

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

Mô tả

enhancement refactor

From @yutackpark, regarding the integrate function.

The torch_sim.state.initialize_state function sends all the state tensors to the GPU. If the state is too large, this is another potential place for an OOM error.

My current recommendation would be to use the low-level API to circumvent this issue. That would give a lot more control over memory management and is what I would encourage if the initialize_state memory usage became an issue.

The memory footprint of the state is ~ 50-100 bytes / atom, so one would need to reach hundreds of millions of atoms to significantly impact GPU memory usage. It's not ideal to have such a hard limit. The HotSwappingAutobatcher allows for a stream of states and thus gets around this memory issue, we could take a similar approach for the ChunkingAutoBatcher.

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

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 TorchSim/torch-sim

Tất cả issue của TorchSim/torch-sim

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.