You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-38Lines changed: 35 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,39 +19,35 @@ The optional dependencies are required for the corresponding models.
19
19
20
20
### Installing with EquiformerV2 models
21
21
22
-
Using EquiformerV2 models requires the installation of the additional pytorch-geometric packages.
22
+
Using EquiformerV2 models requires the installation of additional pytorch-geometric packages.
23
23
Follow [the instructions](https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html#additional-libraries), then install `lambench[fairchem]`, e.g.
`mace-torch` pins `e3nn==0.4.4`, which is [not actually required](https://github.com/ACEsuit/mace/issues/555#issuecomment-2423730788) and conflicts with `fairchem`. One can install `lambench[fairchem]` and `lambench[mace]` separately to avoid the conflict.
27
-
28
-
## Usage
29
-
30
-
To run the benchmarks, use the following command:
31
-
32
-
```bash
33
-
lambench
34
-
```
35
-
36
-
### Command-line Arguments
37
-
38
-
Use `--models` to specify which models to run, `--tasks` to limit tasks, and `--task-types` to select task classes. Each flag is followed by one or more args. Add `--local` to run tasks on your local machine, instead of submitting jobs with `dflow`. For example:
`mace-torch` pins `e3nn==0.4.4`, which is [not actually required](https://github.com/ACEsuit/mace/issues/555#issuecomment-2423730788) and conflicts with `fairchem`. You can install `lambench[fairchem]` and `lambench[mace]` separately to avoid the conflict.
45
30
46
-
```bash
47
-
lambench --help
48
-
```
31
+
## Usage
49
32
50
-
If there are errors importing the `torch` package regarding symbol error, try:
To reproduce the results locally or test a custom model, please refer to the `ASEModel.evaluate` method.
34
+
- For direct prediction tasks, you can use the staticmethod `run_ase_dptest(calc: Calculator, test_data: Path) -> dict`. The test data can be found [here](https://www.aissquare.com/datasets/detail?pageType=datasets&name=LAMBench-TestData-v1&id=295).
35
+
- For calculator tasks, you can use the corresponding scripts provided in `lambench.tasks.calculator`.
36
+
- The phonon test data can be found [here](https://www.aissquare.com/datasets/detail?pageType=datasets&name=LAMBench-Phonon-MDR&id=310).
37
+
- An `ASEModel` object is needed for such tasks; you can create a dummy model as follows:
38
+
```python
39
+
model = ASEModel(
40
+
model_name="dummy",
41
+
model_type="ASE",
42
+
model_family="<FAMILY_NAME>",
43
+
virtualenv="test",
44
+
model_metadata={
45
+
"test":"test"
46
+
}
47
+
)
48
+
# Note: the corresponding ASE calculator needs to be defined in ASEModel.calc.
49
+
```
50
+
- For finetune tasks, only models based on `DeePMD-kit` framework are supported, please raise an issue if you would like to test other models.
55
51
56
52
## Contributing
57
53
@@ -63,24 +59,25 @@ To add a model, please modify the `lambench/models/models_config.yaml` file.
63
59
64
60
The file contains a list of models with the following structure:
65
61
66
-
```yaml
67
-
- model_name: a short and concise name for the model
68
-
model_family: the family of the model; used for selecting ASE Calculator in `ase_models.py`
69
-
model_type: usually `ASE`; use `DP` for deepmd-kit models
70
-
model_path: local path to the model weight; null if not required
71
-
virtualenv: (not used yet)
72
-
model_metadata:
73
-
model_description:
74
-
show_direct_task: True
75
-
show_finetune_task: False
76
-
show_calculator_task: False
77
-
```
62
+
```yaml
63
+
- model_name: a short and concise name for the model
64
+
model_family: the family of the model; used for selecting ASE Calculator in`ase_models.py`
65
+
model_type: usually `ASE`; use `DP`for deepmd-kit models
66
+
model_path: local path to the model weight; null ifnot required
67
+
virtualenv: (not used yet)
68
+
model_metadata:
69
+
model_description:
70
+
```
78
71
79
72
Please refer to `lambench/models/basemodel.py`for the field definitions.
80
73
81
74
Now, add the ASE calculator interface of your model to `lambench/models/ase_models.py`.
82
75
Once these modifications are done, please create a pull request. If you have any questions, feel free to create an issue.
83
76
77
+
### Adding a new task
78
+
79
+
To add a task (specifically a `calculator` task), please modify the `lambench/tasks/calculator/calculator_tasks.yml`file. Please use [this pull request](https://github.com/deepmodeling/LAMBench/pull/89) as an example.
80
+
84
81
## License
85
82
86
83
LAMBench is licensed under the MIT License. See the [LICENSE](LICENSE) filefor more details.
0 commit comments