README.md 2.13 KB
Newer Older
1
# ICT-CSP
2

3
4
5
An open-source Python framework that integrates machine learning interatomic
potentials (MLIPs) with a tailored batched optimization strategy, enabling rapid,
unbiased structure prediction across the full density range.
6

7
8
9
## Installation (Hygon DCU)

### 1. Clone the repository
10
11

```sh
12
13
git clone -b public git@gitee.com:nivren/ict-csp.git
cd ict-csp
fanding2000's avatar
change  
fanding2000 committed
14
15
```

16
### 2. Configure local torch & triton wheels
fanding2000's avatar
change  
fanding2000 committed
17

18
19
Edit `pyproject.toml` — replace the paths under `[tool.uv.sources]` for `torch` and
`triton` with the local `.whl` file paths for your DCU platform.
20

21
### 3. Fetch third-party submodules
fanding2000's avatar
change  
fanding2000 committed
22
23

```sh
24
25
26
27
28
git submodule update --init \
  batchASE \
  3rdparty/mace \
  3rdparty/FastEq \
  3rdparty/cuequivariance_torch
fanding2000's avatar
change  
fanding2000 committed
29
```
30

31
32
### 4. Set up build dependencies

fanding2000's avatar
change  
fanding2000 committed
33
```sh
34
35
36
37
38
39
source /opt/dtk/env.sh

sudo apt install python3.10-dev python3-dev
sudo apt install libgflags-dev libgoogle-glog-dev
sudo apt install build-essential libstdc++-12-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/librt.so.1 /usr/lib/x86_64-linux-gnu/librt.so
40
41
```

42
43
44
45
46
47
48
### 5. Create the virtual environment

> **Prerequisite:** This project uses [uv](https://docs.astral.sh/uv/) for Python
> environment management. Install it first if you haven't:
> ```sh
> curl -LsSf https://astral.sh/uv/install.sh | sh
> ```
fanding2000's avatar
change  
fanding2000 committed
49

50
```sh
51
uv sync
52
```
fanding2000's avatar
change  
fanding2000 committed
53

54
55
### 6. Verify the installation

56
```sh
57
uv run python -c "import torch, ase, mace, fasteq; print('ok')"
58
59
```

60
### 7. Prepare MACE model weights
61

62
63
Ensure `~/.cache/mace/` contains the required weight file (e.g.
`MACE-OFF23_small.model`). Download from:
64

65
66
- <https://github.com/ACEsuit/mace-off/tree/main>
- <https://gitee.com/pfsuo/mace-off/raw/main/mace_off23/MACE-OFF23_small.model>
67

68
### 8. Set up a test run directory
69

70
```sh
71
mkdir run && cp example/* run/
72
73
```

74
### 9. Test crystal structure generation
75

76
77
78
79
```sh
source .venv/bin activate
./run/generation.sh
```
80

81
### 10. Test crystal structure relaxation
82

83
84
85
86
```sh
source .venv/bin/activate
./run/relaxation.sh
```
87

88
## Results & Configuration
89

90
91
- **Results** are written to the `csp_results/` directory.
- **Configuration files** for generation and relaxation are located in the `run/` directory.
92

93
## Tested Environment
94

95
Hygon DCU · BW200 · DTK 25.04.1