-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add mac installation script and quickstart MD example (#45)
* add one click script to uv pip install on mac * add quickstart example * update orb model source to aws
- Loading branch information
1 parent
e8f2e75
commit 69330cc
Showing
4 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,9 @@ | |
> [!NOTE] | ||
> Contributions of new tasks are very welcome! If you're interested in joining the effort, please reach out to Yuan at [[email protected]](mailto:[email protected]). See [project page](https://github.com/orgs/atomind-ai/projects/1) for some outstanding tasks, or propose new one in [Discussion](https://github.com/atomind-ai/mlip-arena/discussions/new?category=ideas). | ||
MLIP Arena is a platform for evaluating foundation machine learning interatomic potentials (MLIPs) beyond conventional energy and force error metrics. It focuses on revealing the underlying physics and chemistry learned by these models and assessing their performance in molecular dynamics (MD) simulations. The platform's benchmarks are specifically designed to evaluate the readiness and reliability of open-source, open-weight models in accurately reproducing both qualitative and quantitative behaviors of atomic systems. | ||
MLIP Arena is a unified platform for evaluating foundation machine learning interatomic potentials (MLIPs) beyond conventional error metrics. It focuses on revealing the underlying physics and chemistry learned by these models and assessing their utilitarian performance agnostic to underlying model architecture. The platform's benchmarks are specifically designed to evaluate the readiness and reliability of open-source, open-weight models in accurately reproducing both qualitative and quantitative behaviors of atomic systems. | ||
|
||
MLIP Arena leverages modern pythonic workflow orchestractor [Prefect](https://www.prefect.io/) to enable advanced task/flow chaining and caching. | ||
|
||
## Installation | ||
|
||
|
@@ -24,6 +26,8 @@ pip install mlip-arena | |
|
||
### From source | ||
|
||
**Linux** | ||
|
||
```bash | ||
git clone https://github.com/atomind-ai/mlip-arena.git | ||
cd mlip-arena | ||
|
@@ -36,6 +40,16 @@ pip install -e .[mace] | |
DP_ENABLE_TENSORFLOW=0 pip install -e .[deepmd] | ||
``` | ||
|
||
**Mac** | ||
|
||
```bash | ||
# (Optional) Install uv | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
source $HOME/.local/bin/env | ||
# One script installation | ||
bash scripts/install-macosx.sh | ||
``` | ||
|
||
## Contribute | ||
|
||
MLIP Arena is now in pre-alpha. If you're interested in joining the effort, please reach out to Yuan at [[email protected]](mailto:[email protected]). | ||
|
@@ -46,6 +60,37 @@ MLIP Arena is now in pre-alpha. If you're interested in joining the effort, plea | |
streamlit run serve/app.py | ||
``` | ||
|
||
## Quickstart | ||
|
||
### Molecular dynamics (MD) | ||
|
||
Run all the compiled MLIPs by looping thorugh `MLIPEnum`: | ||
|
||
```python | ||
from mlip_arena.tasks.md import run as MD | ||
# from mlip_arena.tasks import MD # convenient loading | ||
from mlip_arena.models import MLIPEnum | ||
|
||
from ase.build import bulk | ||
|
||
atoms = bulk("Cu", "fcc", a=3.6) | ||
|
||
results = [] | ||
|
||
for model in MLIPEnum: | ||
result = MD( | ||
atoms=atoms, | ||
calculator_name=model, | ||
calculator_kwargs={}, | ||
ensemble="nve", | ||
dynamics="velocityverlet", | ||
total_time=1e3, # 1 ps = 1e3 fs | ||
time_step=2, # fs | ||
) | ||
results.append(result) | ||
|
||
``` | ||
|
||
### Add new benchmark tasks (WIP) | ||
|
||
> [!NOTE] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
|
||
# (Optional) Install uv | ||
# curl -LsSf https://astral.sh/uv/install.sh | sh | ||
# source $HOME/.local/bin/env | ||
|
||
TORCH=2.2.0 | ||
|
||
uv pip install torch==${TORCH} | ||
uv pip install torch-scatter --no-build-isolation | ||
uv pip install torch-sparse --no-build-isolation | ||
|
||
uv pip install dgl -f https://data.dgl.ai/wheels/torch-${TORCH}/cpu/repo.html | ||
|
||
uv pip install -e .[test] | ||
uv pip install -e .[mace] | ||
|
||
|