Skip to content
Merged
Show file tree
Hide file tree
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: 3 additions & 1 deletion deepmd/pd/entrypoints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
)
from deepmd.pd.utils.env import (
DEVICE,
LOCAL_RANK,
)
from deepmd.pd.utils.finetune import (
get_finetune_rules,
Expand Down Expand Up @@ -232,7 +233,8 @@ def train(
output: str = "out.json",
) -> None:
log.info("Configuration path: %s", input_file)
SummaryPrinter()()
if LOCAL_RANK == 0:
SummaryPrinter()()
with open(input_file) as fin:
config = json.load(fin)
# ensure suffix, as in the command line help, we say "path prefix of checkpoint files"
Expand Down
4 changes: 3 additions & 1 deletion deepmd/pt/entrypoints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
)
from deepmd.pt.utils.env import (
DEVICE,
LOCAL_RANK,
)
from deepmd.pt.utils.finetune import (
get_finetune_rules,
Expand Down Expand Up @@ -254,7 +255,8 @@ def train(
output: str = "out.json",
) -> None:
log.info("Configuration path: %s", input_file)
SummaryPrinter()()
if LOCAL_RANK == 0:
SummaryPrinter()()
with open(input_file) as fin:
config = json.load(fin)
# ensure suffix, as in the command line help, we say "path prefix of checkpoint files"
Expand Down