Closed iProzd closed 6 days ago
deepmd/pt/entrypoints/main.py
117-117: Local variable `f` is assigned to but never used Remove assignment to unused variable `f` (F841) --- 382-385: Use ternary operator `FLAGS = parse_args(args=args) if not isinstance(args, argparse.Namespace) else args` instead of `if`-`else`-block Replace `if`-`else`-block with `FLAGS = parse_args(args=args) if not isinstance(args, argparse.Namespace) else args` (SIM108)
deepmd/pt/entrypoints/main.py (2)
`232-235`: **Validation for model name in multitask mode is correctly implemented.** The addition of this validation is important to prevent the use of 'RANDOM' as a model name in multitask mode, which could lead to configuration conflicts. The implementation using an assert statement is appropriate here. --- `344-348`: **Properly updated model branches list to include 'RANDOM'.** This update ensures that users are aware of the 'RANDOM' option for initializing a fitting net, enhancing the flexibility of model configuration. The log message is clear and informative.
Attention: Patch coverage is 88.88889%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 82.87%. Comparing base (
4e72a97
) to head (4b58c91
).
Files | Patch % | Lines |
---|---|---|
deepmd/pt/entrypoints/main.py | 66.66% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Support fine-tuning from random fitting in single-from-single fine-tuning.
Summary by CodeRabbit
New Features
Documentation
--model-branch RANDOM
parameter.Tests