Skip to content

Commit 605406c

Browse files
authored
Merge pull request #344 from anyangml2nd/fix/dp-finetune
Fix: use finetune tag
2 parents 3c2a6d2 + d55d386 commit 605406c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lambench/models/dp_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _finetune(model: Path, task: PropertyFinetuneTask):
7575
os.environ["NUM_WORKERS"] = "0"
7676
ngpus = torch.cuda.device_count()
7777
os.system(
78-
f"torchrun --no_python --nproc_per_node={ngpus} dp --pt train input.json --skip-neighbor-stat"
78+
f"torchrun --no_python --nproc_per_node={ngpus} dp --pt train input.json --finetune {model} --skip-neighbor-stat"
7979
)
8080
return Path("model.ckpt.pt") # hard coded in deepmd-kit
8181

lambench/models/models_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
num_parameters: 7021990
2727
packages:
2828
deepmd-kit: P0131
29-
show_finetune_task: True
30-
show_calculator_task: True
29+
show_direct_task: False # Hide deprecated model
30+
skip_tasks: [CalculatorTask, DirectPredictTask, PropertyFinetuneTask]
3131

3232
- model_name: dpa3_250415_v3_1_0_3M
3333
model_type: DP

0 commit comments

Comments
 (0)