Skip to content

Commit

Permalink
change fitting to descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengqian-Zhang committed Sep 23, 2024
1 parent fc5f1c2 commit e51a4f7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions deepmd/pt/train/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,7 @@ def collect_single_finetune_params(
if i != "_extra_state" and f".{_model_key}." in i
]
for item_key in target_keys:
if _new_fitting and (
(".fitting_net." in item_key)
or (".out_bias" in item_key)
or (".out_std" in item_key)
):
if _new_fitting and (".descriptor." not in item_key):
# print(f'Keep {item_key} in old model!')
_new_state_dict[item_key] = (
_random_state_dict[item_key].clone().detach()
Expand Down

0 comments on commit e51a4f7

Please sign in to comment.