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 May 20, 2024
1 parent 539f745 commit 84a5f1d
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 @@ -326,7 +326,9 @@ def main(args: Optional[Union[List[str], argparse.Namespace]] = None):
model_params = state_dict["_extra_state"]["model_params"]
finetune_from_multi_task = "model_dict" in model_params
# Pretrained model must be multitask mode
assert finetune_from_multi_task, "Error: The '--list-model-branch' option requires \
assert (
finetune_from_multi_task
), "Error: The '--list-model-branch' option requires \
a multitask pretrained model. The provided model does not meet this criterion"
model_branch = list(model_params["model_dict"].keys())
log.info(f"Available model branches are {model_branch}")
Expand Down

0 comments on commit 84a5f1d

Please sign in to comment.