Skip to content

Commit dcce9f9

Browse files
committed
Fix warp errors
1 parent 7d80654 commit dcce9f9

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

finetune.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,4 +732,8 @@ def main():
732732

733733

734734
if __name__ == "__main__":
735+
import multiprocessing
736+
737+
# Spawn workers instead of fork to prevent inherited CUDA contexts causing Warp errors.
738+
multiprocessing.set_start_method("spawn", force=True)
735739
main()

orb_models/common/atoms/graph_featurization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ def _compute_neighbor_list_with_fallback(
748748
batch_ptr=batch_ptr,
749749
fill_value=fill_value,
750750
max_neighbors=max_num_neighbors_alchemi,
751+
wrap_positions=False, # we handle wrapping externally
751752
)
752753
if max_num_neighbors_alchemi >= num_neighbors.max().item():
753754
return neighbor_matrix, num_neighbors, neighbor_shift_matrix

0 commit comments

Comments
 (0)