Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Chengqian-Zhang opened this issue Mar 26, 2024 · 0 comments
Assignees
Labels

Comments

@Chengqian-Zhang
Copy link
Collaborator

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

@iProzd iProzd self-assigned this Mar 26, 2024
@iProzd iProzd closed this as completed Mar 26, 2024
github-merge-queue bot pushed a commit that referenced this issue Mar 26, 2024
fix #3604 , when doing single-task finetuning from multitask pretrained
model and do not define the finetune model branch from command-line or
input file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants