Skip to content

[BUG] Can't do single task finetuning(not energy head) based on multitask pre-trained model in devel branch now. #3604

@Chengqian-Zhang

Description

@Chengqian-Zhang

Bug summary

I found a bug when doing single task finetuning(not energy head) based on multitask pre-trained model, the reason I have found.

DeePMD-kit Version

devel branch

TensorFlow Version

not related

How did you download the software?

Offline packages

Input Files, Running Commands, Error Log, etc.

Bug in deepmd/pt/utils/finetune.py change_finetune_model_params lines 138--150. If I do single task finetuning(not energy head) based on multitask pre-trained model, "model_branch" is "", so finetune_links["Default"] is "". So in deepmd/pt/train/training.py line 551, _model_key_from is "". So there is an error:
img_v3_0299_2cf5b259-af59-4854-83a8-b78e484cef3g

Steps to Reproduce

Doing single task finetuning based on multitask pre-trained model. Do not specify a model branch.

Further Information, Files, and Links

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions