Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions deepmd/pt/train/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ def __init__(
f"training.zero_stage must be 0, 1, 2, or 3, got {self.zero_stage}"
)
if self.zero_stage > 0 and not self.is_distributed:
Comment thread
OutisLi marked this conversation as resolved.
raise ValueError(
"training.zero_stage requires distributed launch via torchrun."
)
self.zero_stage = 0
Comment thread
OutisLi marked this conversation as resolved.
if self.zero_stage > 0 and self.change_bias_after_training:
raise ValueError(
"training.zero_stage does not support change_bias_after_training."
Expand Down
Loading