Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 16, 2024
1 parent 6acfd3b commit 0b0d943
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deepmd/pt/entrypoints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ def get_trainer(
elif gloo_available:
backend = "gloo"

Check warning on line 114 in deepmd/pt/entrypoints/main.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/entrypoints/main.py#L111-L114

Added lines #L111 - L114 were not covered by tests
else:
raise RuntimeError("No suitable backend found. Neither NCCL nor Gloo is available.")
raise RuntimeError(

Check warning on line 116 in deepmd/pt/entrypoints/main.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/entrypoints/main.py#L116

Added line #L116 was not covered by tests
"No suitable backend found. Neither NCCL nor Gloo is available."
)
dist.init_process_group(backend=backend)

Check warning on line 119 in deepmd/pt/entrypoints/main.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/entrypoints/main.py#L119

Added line #L119 was not covered by tests

def prepare_trainer_input_single(
Expand Down

0 comments on commit 0b0d943

Please sign in to comment.