Feature suggestion: lifecycle hooks for user-defined callbacks during simulations
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
- 28/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Lĩnh vực
- backend, machine-learning
Hướng nghiên cứu
This is a design request for user callbacks on the simulation step path (the issue sketches step_func(..., callbacks=...) and a SimState check). Start by locating how steps, neighbor tiling, and convergence are implemented in the torch-sim codebase and how SimState is passed today. Done means a documented, extensible hook API plus tests that a callback can inspect state, mutate params, or abort with a reason—not a one-off tiling guard. Expect maintainer design discussion before coding.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
context
about 1 in 1e5 geometry optimizations goes off the rails (usually an issue with FIRE step size or MLIP stress preds) causing the cell to distort in strange ways, volume collapses, edge count explodes → OOM. this can bring down nodes doing long-running structure searches.
a possible current workaround is modifying the convergence check to monitor how many times the cell gets tiled for neighbor list construction and abort if it exceeds some threshold (e.g. 1k).
proposal
would be useful to have a general concept of lifecycle hooks in torch-sim that allows users to pass arbitrary callback functions. these could:
- perform custom sanity checks at every N-th step (N user-defined) (based on as many sim params as torch-sim can provide: cell volume, edge count, neighbor list tiling, etc.)
- modify sim params on the fly (e.g. reduce timestep if things look unstable)
- abort early with a user-intelligible reason if sim looks unrecoverable
something like:
def my_check(state: SimState) -> bool | str:
if state.neighbor_tiles > 1000:
return "cell tiling exceeded 1k, aborting"
return True # continue
result = step_func(state, model, ..., callbacks=[my_check])
a general callback mechanism would let:
- users define domain-specific guardrails
- future tools (think custodian for MD) tap into the sim lifecycle
- debugging/logging without modifying torch-sim internals
tagging @kyonofx who brought up the dying nodes in our cluster, briefly discussed this with @abhijeetgangan
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TorchSim/torch-sim
-
`unwrap_positions` gives wrong results for triclinic cellsCó thể đã có người làm @lance-lii đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
TorchSim/torch-sim#629 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Autobatcher memory probe does not recognize cuequivariance out-of-memory errorsCó thể đã có người làm @lil-lon đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
TorchSim/torch-sim#627 · 4 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Add MLIPOps backendsĐang mởhelp wanted ml-eng-friendly
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
TorchSim/torch-sim#606 · 6 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
TorchSim/torch-sim#597 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của TorchSim/torch-sim
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
[Bug]: Responses API 500s on assistant message with empty content listCó thể đã có người làm @shadowmodder đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
vllm-project/vllm#64940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Limit should define bound_symbolsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởlimits
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-ready area: docs documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Soneso/stellar-agent-wallet#524 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Keybind quest outdatedĐang mởStatus: Triage Type: Quest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
GTNewHorizons/GT-New-Horizons-Modpack#27490 ·
Maintainer thường phản hồi trong vòng 1 ngày