-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Support PyTorch backend for DeePMD-kit.
Detailed Description
Although I have submitted deepmodeling/deepmd-kit#3191 to make most of the things the same, the suffixes of the model and checkpoint files are different by design. These suffixes are hardcoded in the code.
Lines 804 to 812 in 7392650
| backward_files = ["frozen_model.pb", "lcurve.out", "train.log"] | |
| backward_files += [ | |
| "model.ckpt.meta", | |
| "model.ckpt.index", | |
| "model.ckpt.data-00000-of-00001", | |
| "checkpoint", | |
| ] | |
| if jdata.get("dp_compress", False): | |
| backward_files.append("frozen_model_compressed.pb") |
Lines 884 to 889 in 7392650
| if not jdata.get("dp_compress", False): | |
| model_name = "frozen_model.pb" | |
| else: | |
| model_name = "frozen_model_compressed.pb" | |
| task_file = os.path.join(train_task_fmt % ii, model_name) | |
| ofile = os.path.join(work_path, "graph.%03d.pb" % ii) |
Line 1938 in 7392650
| all_models = glob.glob(os.path.join(work_path, "graph*pb")) |
dpgen/dpgen/simplify/simplify.py
Line 188 in 7392650
| models = glob.glob(os.path.join(train_path, "graph*pb")) |
Besides, glob doesn't work for backward_files - in dpdispatcher, some contexts like Bohrium don't support it.
So, may we consider adding a parameter to switch?
Further Information, Files, and Links
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Done