GO-Diff 1.0.0__tar.gz → 1.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {go_diff-1.0.0 → go_diff-1.1.0}/PKG-INFO +59 -43
- {go_diff-1.0.0 → go_diff-1.1.0}/README.md +58 -42
- go_diff-1.1.0/VERSION +1 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/docs/source/concepts.rst +1 -1
- {go_diff-1.0.0 → go_diff-1.1.0}/docs/source/conf.py +9 -1
- {go_diff-1.0.0 → go_diff-1.1.0}/docs/source/index.rst +2 -6
- go_diff-1.1.0/docs/source/installation.rst +34 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/docs/source/overview.rst +4 -3
- go_diff-1.1.0/docs/source/references.rst +84 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/docs/source/troubleshooting.rst +6 -8
- {go_diff-1.0.0 → go_diff-1.1.0}/docs/source/tutorial/quickstart.rst +50 -53
- go_diff-1.1.0/go_diff/__init__.py +3 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/filter.py +32 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/go_diff.py +82 -49
- go_diff-1.0.0/scripts/heptamer_ffg.py → go_diff-1.1.0/scripts/heptamer.py +2 -2
- go_diff-1.0.0/scripts/stepped_pt_ffg.py → go_diff-1.1.0/scripts/stepped_pt.py +2 -1
- {go_diff-1.0.0 → go_diff-1.1.0}/tests/test_godiff.py +17 -24
- go_diff-1.0.0/VERSION +0 -1
- go_diff-1.0.0/docs/source/installation.rst +0 -60
- go_diff-1.0.0/docs/source/references.rst +0 -69
- go_diff-1.0.0/go_diff/__init__.py +0 -3
- go_diff-1.0.0/scripts/heptamer.py +0 -70
- go_diff-1.0.0/scripts/stepped_pt.py +0 -69
- {go_diff-1.0.0 → go_diff-1.1.0}/.github/workflows/auto-tag.yml +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/.github/workflows/publish.yml +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/.github/workflows/tests.yml +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/.gitignore +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/.readthedocs.yaml +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/LICENSE +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/docs/Makefile +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/docs/make.bat +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/docs/requirements.txt +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/docs/source/tutorial/tutorial.rst +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/controllers/__init__.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/controllers/buffer.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/controllers/sample.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/controllers/temperature.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/controllers/training.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/logger.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/noisers/__init__.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/noisers/weighted_pos.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/go_diff/utils.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/pyproject.toml +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/tests/__init__.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/tests/conftest.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/tests/test_sample_controller.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/tests/test_temperature.py +0 -0
- {go_diff-1.0.0 → go_diff-1.1.0}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: GO-Diff
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: GO-Diff
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Requires-Python: >=3.12
|
|
@@ -22,9 +22,9 @@ Description-Content-Type: text/markdown
|
|
|
22
22
|
|
|
23
23
|
# GO-Diff
|
|
24
24
|
|
|
25
|
-
**GO-Diff
|
|
26
|
-
atomistic structure search. It couples a
|
|
27
|
-
energy/force calculator
|
|
25
|
+
**GO-Diff: Data-free and amortized global structure optimization** a
|
|
26
|
+
generative diffusion framework for atomistic structure search. It couples a diffusion model with an
|
|
27
|
+
energy/force calculator and iteratively refines the model through
|
|
28
28
|
Boltzmann-weighted training, adaptive temperature annealing, and an adaptive
|
|
29
29
|
replay buffer.
|
|
30
30
|
|
|
@@ -32,15 +32,15 @@ replay buffer.
|
|
|
32
32
|
|
|
33
33
|
## Installation
|
|
34
34
|
|
|
35
|
+
Install from pypi
|
|
35
36
|
```bash
|
|
36
37
|
pip install go-diff
|
|
37
38
|
```
|
|
38
39
|
|
|
39
|
-
### (Optional)
|
|
40
|
-
|
|
40
|
+
### (Optional) Install of MLIPs for running GO-Diff
|
|
41
|
+
E.g.
|
|
41
42
|
```bash
|
|
42
43
|
pip install mace-torch
|
|
43
|
-
pip install "agox[full]"
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
---
|
|
@@ -49,55 +49,68 @@ pip install "agox[full]"
|
|
|
49
49
|
|
|
50
50
|
```python
|
|
51
51
|
import numpy as np
|
|
52
|
-
|
|
52
|
+
|
|
53
|
+
from ase.build import fcc111, surface
|
|
53
54
|
from mace.calculators import mace_mp
|
|
54
|
-
from agedi import create_diffusion
|
|
55
55
|
|
|
56
|
-
from
|
|
57
|
-
from
|
|
58
|
-
TemperatureSchedule,
|
|
59
|
-
SampleController,
|
|
60
|
-
MomentumConsensusStop,
|
|
61
|
-
)
|
|
62
|
-
from go_diff.noisers import WeightedPositions
|
|
56
|
+
from agedi import AtomsGraph, create_diffusion
|
|
57
|
+
from agedi.diffusion import ForcefieldGuidanceConfig
|
|
63
58
|
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
from go_diff import GODiff, MinEnergyFilter
|
|
60
|
+
from go_diff.controllers import SampleController, BufferController, TemperatureSchedule, MomentumConsensusStop
|
|
61
|
+
from go_diff.noisers import WeightedConfinedCellPositions
|
|
66
62
|
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
##### SYSTEM #####
|
|
64
|
+
formula = "Pt"
|
|
65
|
+
|
|
66
|
+
template = surface('Pt', (1,2,2), 5, vacuum=8.0)
|
|
69
67
|
template.positions[:, 2] -= template.positions[:, 2].min()
|
|
70
|
-
confinement = [0.0, 4.0 + template.positions[:, 2].max()]
|
|
71
68
|
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
confinement_above_zmax = np.array([0.0, 4.0])
|
|
70
|
+
confinement = confinement_above_zmax + template.positions[:, 2].max()
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
##### CALCULATOR #####
|
|
74
|
+
from mace.calculators import mace_mp
|
|
75
|
+
calc = mace_mp(model="medium", dispersion=False, default_dtype="float32", device='cuda')
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
#### DIFFUSION MODEL #####
|
|
79
|
+
diffusion = create_diffusion(noisers=(WeightedConfinedCellPositions(),), force_field=True)
|
|
80
|
+
|
|
74
81
|
|
|
75
|
-
|
|
82
|
+
#### GO-DIFF #####
|
|
76
83
|
godiff = GODiff(
|
|
77
84
|
calculator=calc,
|
|
78
85
|
diffusion=diffusion,
|
|
79
86
|
temperature_schedule=TemperatureSchedule(fast=0.5, slow=0.9),
|
|
80
87
|
sample_controller=SampleController(initial_N=16, target_ess=8),
|
|
88
|
+
buffer_controller=BufferController(initial_buffer_size=16, max_buffer_size=96, adaption_rate=0.2),
|
|
81
89
|
training_controller=MomentumConsensusStop(min_steps=100, patience=250, drop_factor=0.9),
|
|
82
90
|
sample_config={
|
|
83
91
|
"template": template,
|
|
84
|
-
"
|
|
92
|
+
"formula": formula,
|
|
93
|
+
"confinement": confinement,
|
|
94
|
+
"ff_guidance": ForcefieldGuidanceConfig(guidance=1.0,)
|
|
85
95
|
},
|
|
86
96
|
dataset_config={
|
|
87
97
|
"mask": "MaskFixed",
|
|
88
98
|
"confinement": confinement,
|
|
99
|
+
"regressor_data": "all_data", # use all data for training the regressor, not just the data in the buffer
|
|
100
|
+
},
|
|
101
|
+
trainer_config={
|
|
102
|
+
"name": name
|
|
89
103
|
},
|
|
90
|
-
|
|
91
|
-
|
|
104
|
+
min_E=min_E,
|
|
105
|
+
valid_structure_filters=[MinEnergyFilter(-200)],
|
|
92
106
|
)
|
|
93
107
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
108
|
+
#### RUN GO-Diff #####
|
|
109
|
+
godiff.run(max_iterations=20)
|
|
110
|
+
|
|
97
111
|
```
|
|
98
112
|
|
|
99
|
-
See `scripts
|
|
100
|
-
paper reproduction scripts.
|
|
113
|
+
See `scripts/*.py` for the full scripts.
|
|
101
114
|
|
|
102
115
|
---
|
|
103
116
|
|
|
@@ -109,7 +122,7 @@ paper reproduction scripts.
|
|
|
109
122
|
| `TemperatureSchedule` | Adaptive annealing; `fast` / `slow` cooling factors based on heat capacity |
|
|
110
123
|
| `SampleController` | Stops sampling when the Effective Sample Size (ESS) reaches a target |
|
|
111
124
|
| `MomentumConsensusStop` | Stops training when gradient–momentum agreement drops |
|
|
112
|
-
| `AdaptiveRefinementStop` |
|
|
125
|
+
| `AdaptiveRefinementStop` | Stop criterion based on split-batch gradient agreement EMA |
|
|
113
126
|
| `WeightedPositions` | Boltzmann-weighted position noiser for the diffusion model |
|
|
114
127
|
| `GODiffLogger` | TensorBoard logger (energies, ESS, timing, analysis figures) |
|
|
115
128
|
|
|
@@ -118,35 +131,38 @@ paper reproduction scripts.
|
|
|
118
131
|
## Running the tests
|
|
119
132
|
|
|
120
133
|
```bash
|
|
134
|
+
<!-- CLONE package -->
|
|
135
|
+
git clone https://github.com/nronne/go-diff.git
|
|
136
|
+
cd go-diff
|
|
137
|
+
|
|
138
|
+
<!-- INSTALL with pip including test extras-->
|
|
121
139
|
pip install ".[test]"
|
|
140
|
+
|
|
141
|
+
<!-- RUN pytest -->
|
|
122
142
|
pytest
|
|
123
143
|
```
|
|
124
144
|
|
|
125
145
|
---
|
|
126
146
|
|
|
127
|
-
## Scripts
|
|
128
|
-
|
|
129
|
-
Scripts to reproduce the results in the paper are in `scripts/`. Utilities for
|
|
130
|
-
identifying the Pt-heptamer structure are in `utils/`.
|
|
131
|
-
|
|
132
|
-
---
|
|
133
147
|
|
|
134
148
|
## Citation
|
|
135
149
|
|
|
136
150
|
If you use GO-Diff please cite:
|
|
151
|
+
> Ronne, Nikolaj, Tejs Vegge and Arghya Bhowmik. "GO-Diff: Data-free
|
|
152
|
+
> and amortized global structure optimization"
|
|
153
|
+
> arXiv:2510.13448. Preprint, arXiv, October 15, 2025.
|
|
154
|
+
> <https://arxiv.org/abs/2510.13448>
|
|
137
155
|
|
|
138
156
|
> Ronne, Nikolaj, and Bjork Hammer. "Atomistic Generative Diffusion for Materials
|
|
139
157
|
> Modeling." arXiv:2507.18314. Preprint, arXiv, July 24, 2025.
|
|
140
158
|
> <https://arxiv.org/abs/2507.18314>
|
|
141
159
|
|
|
142
|
-
If studying surface-supported systems also cite:
|
|
143
|
-
|
|
160
|
+
If studying surface-supported systems please also cite:
|
|
144
161
|
> Ronne, Nikolaj, Alan Aspuru-Guzik, and Bjork Hammer. "Generative Diffusion
|
|
145
162
|
> Model for Surface Structure Discovery." Physical Review B 110, no. 23 (2024):
|
|
146
163
|
> 235427. <https://doi.org/10.1103/PhysRevB.110.235427>
|
|
147
164
|
|
|
148
|
-
Optionally, if using any AGOX functionality:
|
|
149
|
-
|
|
165
|
+
Optionally, if using any AGOX functionality please cite:
|
|
150
166
|
> Christiansen, Mads-Peter V., Nikolaj Ronne, and Bjork Hammer. "Atomistic
|
|
151
167
|
> Global Optimization X: A Python Package for Optimization of Atomistic
|
|
152
168
|
> Structures." The Journal of Chemical Physics 157, no. 5 (2022): 054701.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# GO-Diff
|
|
2
2
|
|
|
3
|
-
**GO-Diff
|
|
4
|
-
atomistic structure search. It couples a
|
|
5
|
-
energy/force calculator
|
|
3
|
+
**GO-Diff: Data-free and amortized global structure optimization** a
|
|
4
|
+
generative diffusion framework for atomistic structure search. It couples a diffusion model with an
|
|
5
|
+
energy/force calculator and iteratively refines the model through
|
|
6
6
|
Boltzmann-weighted training, adaptive temperature annealing, and an adaptive
|
|
7
7
|
replay buffer.
|
|
8
8
|
|
|
@@ -10,15 +10,15 @@ replay buffer.
|
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
|
+
Install from pypi
|
|
13
14
|
```bash
|
|
14
15
|
pip install go-diff
|
|
15
16
|
```
|
|
16
17
|
|
|
17
|
-
### (Optional)
|
|
18
|
-
|
|
18
|
+
### (Optional) Install of MLIPs for running GO-Diff
|
|
19
|
+
E.g.
|
|
19
20
|
```bash
|
|
20
21
|
pip install mace-torch
|
|
21
|
-
pip install "agox[full]"
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
---
|
|
@@ -27,55 +27,68 @@ pip install "agox[full]"
|
|
|
27
27
|
|
|
28
28
|
```python
|
|
29
29
|
import numpy as np
|
|
30
|
-
|
|
30
|
+
|
|
31
|
+
from ase.build import fcc111, surface
|
|
31
32
|
from mace.calculators import mace_mp
|
|
32
|
-
from agedi import create_diffusion
|
|
33
33
|
|
|
34
|
-
from
|
|
35
|
-
from
|
|
36
|
-
TemperatureSchedule,
|
|
37
|
-
SampleController,
|
|
38
|
-
MomentumConsensusStop,
|
|
39
|
-
)
|
|
40
|
-
from go_diff.noisers import WeightedPositions
|
|
34
|
+
from agedi import AtomsGraph, create_diffusion
|
|
35
|
+
from agedi.diffusion import ForcefieldGuidanceConfig
|
|
41
36
|
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
from go_diff import GODiff, MinEnergyFilter
|
|
38
|
+
from go_diff.controllers import SampleController, BufferController, TemperatureSchedule, MomentumConsensusStop
|
|
39
|
+
from go_diff.noisers import WeightedConfinedCellPositions
|
|
44
40
|
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
##### SYSTEM #####
|
|
42
|
+
formula = "Pt"
|
|
43
|
+
|
|
44
|
+
template = surface('Pt', (1,2,2), 5, vacuum=8.0)
|
|
47
45
|
template.positions[:, 2] -= template.positions[:, 2].min()
|
|
48
|
-
confinement = [0.0, 4.0 + template.positions[:, 2].max()]
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
confinement_above_zmax = np.array([0.0, 4.0])
|
|
48
|
+
confinement = confinement_above_zmax + template.positions[:, 2].max()
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
##### CALCULATOR #####
|
|
52
|
+
from mace.calculators import mace_mp
|
|
53
|
+
calc = mace_mp(model="medium", dispersion=False, default_dtype="float32", device='cuda')
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
#### DIFFUSION MODEL #####
|
|
57
|
+
diffusion = create_diffusion(noisers=(WeightedConfinedCellPositions(),), force_field=True)
|
|
58
|
+
|
|
52
59
|
|
|
53
|
-
|
|
60
|
+
#### GO-DIFF #####
|
|
54
61
|
godiff = GODiff(
|
|
55
62
|
calculator=calc,
|
|
56
63
|
diffusion=diffusion,
|
|
57
64
|
temperature_schedule=TemperatureSchedule(fast=0.5, slow=0.9),
|
|
58
65
|
sample_controller=SampleController(initial_N=16, target_ess=8),
|
|
66
|
+
buffer_controller=BufferController(initial_buffer_size=16, max_buffer_size=96, adaption_rate=0.2),
|
|
59
67
|
training_controller=MomentumConsensusStop(min_steps=100, patience=250, drop_factor=0.9),
|
|
60
68
|
sample_config={
|
|
61
69
|
"template": template,
|
|
62
|
-
"
|
|
70
|
+
"formula": formula,
|
|
71
|
+
"confinement": confinement,
|
|
72
|
+
"ff_guidance": ForcefieldGuidanceConfig(guidance=1.0,)
|
|
63
73
|
},
|
|
64
74
|
dataset_config={
|
|
65
75
|
"mask": "MaskFixed",
|
|
66
76
|
"confinement": confinement,
|
|
77
|
+
"regressor_data": "all_data", # use all data for training the regressor, not just the data in the buffer
|
|
78
|
+
},
|
|
79
|
+
trainer_config={
|
|
80
|
+
"name": name
|
|
67
81
|
},
|
|
68
|
-
|
|
69
|
-
|
|
82
|
+
min_E=min_E,
|
|
83
|
+
valid_structure_filters=[MinEnergyFilter(-200)],
|
|
70
84
|
)
|
|
71
85
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
86
|
+
#### RUN GO-Diff #####
|
|
87
|
+
godiff.run(max_iterations=20)
|
|
88
|
+
|
|
75
89
|
```
|
|
76
90
|
|
|
77
|
-
See `scripts
|
|
78
|
-
paper reproduction scripts.
|
|
91
|
+
See `scripts/*.py` for the full scripts.
|
|
79
92
|
|
|
80
93
|
---
|
|
81
94
|
|
|
@@ -87,7 +100,7 @@ paper reproduction scripts.
|
|
|
87
100
|
| `TemperatureSchedule` | Adaptive annealing; `fast` / `slow` cooling factors based on heat capacity |
|
|
88
101
|
| `SampleController` | Stops sampling when the Effective Sample Size (ESS) reaches a target |
|
|
89
102
|
| `MomentumConsensusStop` | Stops training when gradient–momentum agreement drops |
|
|
90
|
-
| `AdaptiveRefinementStop` |
|
|
103
|
+
| `AdaptiveRefinementStop` | Stop criterion based on split-batch gradient agreement EMA |
|
|
91
104
|
| `WeightedPositions` | Boltzmann-weighted position noiser for the diffusion model |
|
|
92
105
|
| `GODiffLogger` | TensorBoard logger (energies, ESS, timing, analysis figures) |
|
|
93
106
|
|
|
@@ -96,35 +109,38 @@ paper reproduction scripts.
|
|
|
96
109
|
## Running the tests
|
|
97
110
|
|
|
98
111
|
```bash
|
|
112
|
+
<!-- CLONE package -->
|
|
113
|
+
git clone https://github.com/nronne/go-diff.git
|
|
114
|
+
cd go-diff
|
|
115
|
+
|
|
116
|
+
<!-- INSTALL with pip including test extras-->
|
|
99
117
|
pip install ".[test]"
|
|
118
|
+
|
|
119
|
+
<!-- RUN pytest -->
|
|
100
120
|
pytest
|
|
101
121
|
```
|
|
102
122
|
|
|
103
123
|
---
|
|
104
124
|
|
|
105
|
-
## Scripts
|
|
106
|
-
|
|
107
|
-
Scripts to reproduce the results in the paper are in `scripts/`. Utilities for
|
|
108
|
-
identifying the Pt-heptamer structure are in `utils/`.
|
|
109
|
-
|
|
110
|
-
---
|
|
111
125
|
|
|
112
126
|
## Citation
|
|
113
127
|
|
|
114
128
|
If you use GO-Diff please cite:
|
|
129
|
+
> Ronne, Nikolaj, Tejs Vegge and Arghya Bhowmik. "GO-Diff: Data-free
|
|
130
|
+
> and amortized global structure optimization"
|
|
131
|
+
> arXiv:2510.13448. Preprint, arXiv, October 15, 2025.
|
|
132
|
+
> <https://arxiv.org/abs/2510.13448>
|
|
115
133
|
|
|
116
134
|
> Ronne, Nikolaj, and Bjork Hammer. "Atomistic Generative Diffusion for Materials
|
|
117
135
|
> Modeling." arXiv:2507.18314. Preprint, arXiv, July 24, 2025.
|
|
118
136
|
> <https://arxiv.org/abs/2507.18314>
|
|
119
137
|
|
|
120
|
-
If studying surface-supported systems also cite:
|
|
121
|
-
|
|
138
|
+
If studying surface-supported systems please also cite:
|
|
122
139
|
> Ronne, Nikolaj, Alan Aspuru-Guzik, and Bjork Hammer. "Generative Diffusion
|
|
123
140
|
> Model for Surface Structure Discovery." Physical Review B 110, no. 23 (2024):
|
|
124
141
|
> 235427. <https://doi.org/10.1103/PhysRevB.110.235427>
|
|
125
142
|
|
|
126
|
-
Optionally, if using any AGOX functionality:
|
|
127
|
-
|
|
143
|
+
Optionally, if using any AGOX functionality please cite:
|
|
128
144
|
> Christiansen, Mads-Peter V., Nikolaj Ronne, and Bjork Hammer. "Atomistic
|
|
129
145
|
> Global Optimization X: A Python Package for Optimization of Atomistic
|
|
130
146
|
> Structures." The Journal of Chemical Physics 157, no. 5 (2022): 054701.
|
go_diff-1.1.0/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.1.0
|
|
@@ -6,10 +6,18 @@
|
|
|
6
6
|
# -- Project information -----------------------------------------------------
|
|
7
7
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
8
8
|
|
|
9
|
+
import os
|
|
10
|
+
|
|
9
11
|
project = 'GO-Diff'
|
|
10
12
|
copyright = '2025, Nikolaj Rønne'
|
|
11
13
|
author = 'Nikolaj Rønne'
|
|
12
|
-
|
|
14
|
+
|
|
15
|
+
_version_file = os.path.join(os.path.dirname(__file__), '..', '..', 'VERSION')
|
|
16
|
+
try:
|
|
17
|
+
with open(_version_file) as _f:
|
|
18
|
+
release = _f.read().strip()
|
|
19
|
+
except OSError as e:
|
|
20
|
+
raise RuntimeError(f"Could not read VERSION file at {_version_file}: {e}") from e
|
|
13
21
|
|
|
14
22
|
# -- General configuration ---------------------------------------------------
|
|
15
23
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
GO-Diff Documentation
|
|
4
4
|
=====================
|
|
5
5
|
|
|
6
|
-
**GO-Diff
|
|
7
|
-
for atomistic structure search. It couples a
|
|
6
|
+
**GO-Diff: Data-free and amortized global structure optimization** a
|
|
7
|
+
generative diffusion framework for atomistic structure search. It couples a diffusion model with an
|
|
8
8
|
energy/force calculator and iteratively refines the model through
|
|
9
9
|
Boltzmann-weighted training, adaptive temperature annealing, and an adaptive
|
|
10
10
|
replay buffer.
|
|
11
11
|
|
|
12
|
-
.. note::
|
|
13
|
-
|
|
14
|
-
This project is under active development.
|
|
15
|
-
|
|
16
12
|
.. toctree::
|
|
17
13
|
:maxdepth: 2
|
|
18
14
|
:caption: Documentation
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Installation
|
|
2
|
+
============
|
|
3
|
+
|
|
4
|
+
Requirements
|
|
5
|
+
------------
|
|
6
|
+
|
|
7
|
+
- Python >= 3.12
|
|
8
|
+
- A CUDA-capable GPU is strongly recommended for training and sampling.
|
|
9
|
+
|
|
10
|
+
Install GO-Diff
|
|
11
|
+
---------------
|
|
12
|
+
|
|
13
|
+
.. code-block:: console
|
|
14
|
+
|
|
15
|
+
pip install go-diff
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Developer install
|
|
19
|
+
-----------------
|
|
20
|
+
|
|
21
|
+
Clone the repository and install in editable mode with the test extras:
|
|
22
|
+
|
|
23
|
+
.. code-block:: console
|
|
24
|
+
|
|
25
|
+
git clone https://github.com/nronne/go-diff.git
|
|
26
|
+
cd go-diff
|
|
27
|
+
pip install -e ".[test]"
|
|
28
|
+
|
|
29
|
+
Verify installation
|
|
30
|
+
-------------------
|
|
31
|
+
|
|
32
|
+
.. code-block:: console
|
|
33
|
+
|
|
34
|
+
python -c "from go_diff import GODiff; print('GO-Diff installed successfully')"
|
|
@@ -4,7 +4,7 @@ Overview
|
|
|
4
4
|
What GO-Diff is
|
|
5
5
|
---------------
|
|
6
6
|
|
|
7
|
-
GO-Diff
|
|
7
|
+
GO-Diff is a framework for atomistic global
|
|
8
8
|
structure search using diffusion models. It wraps the
|
|
9
9
|
`AGeDi <https://github.com/nronne/agedi>`_ diffusion backend with an outer
|
|
10
10
|
optimisation loop that drives the model towards low-energy configurations via
|
|
@@ -58,5 +58,6 @@ Typical workflow
|
|
|
58
58
|
3. Instantiate :class:`~go_diff.GODiff` with the calculator, diffusion model,
|
|
59
59
|
and desired controllers.
|
|
60
60
|
4. Call :py:meth:`~go_diff.GODiff.run` to start the optimisation loop.
|
|
61
|
-
5. Inspect saved checkpoints and trajectory files in the output
|
|
62
|
-
|
|
61
|
+
5. Inspect saved checkpoints and trajectory files in the output
|
|
62
|
+
directory and TensorBoard logs.
|
|
63
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
References and citation
|
|
2
|
+
=======================
|
|
3
|
+
|
|
4
|
+
Primary publications
|
|
5
|
+
--------------------
|
|
6
|
+
|
|
7
|
+
1. N. Rønne, T. Vegge and A. Bhowmik
|
|
8
|
+
*GO-Diff: Data-free and amortized global structure optimization*
|
|
9
|
+
arXiv preprint **arXiv:2510.13448** (2025).
|
|
10
|
+
URL: https://arxiv.org/abs/2510.13448
|
|
11
|
+
|
|
12
|
+
2. N. Rønne and B. Hammer,
|
|
13
|
+
*Atomistic Generative Diffusion for Materials Modeling*,
|
|
14
|
+
arXiv preprint **arXiv:2507.18314** (2025).
|
|
15
|
+
URL: https://arxiv.org/abs/2507.18314
|
|
16
|
+
|
|
17
|
+
3. N. Rønne, A. Aspuru-Guzik, and B. Hammer,
|
|
18
|
+
*Generative Diffusion Model for Surface Structure Discovery*,
|
|
19
|
+
**Physical Review B** **110**, 235427 (2024).
|
|
20
|
+
DOI: https://doi.org/10.1103/PhysRevB.110.235427
|
|
21
|
+
|
|
22
|
+
How this documentation maps to the papers
|
|
23
|
+
------------------------------------------
|
|
24
|
+
|
|
25
|
+
- GO-Diff including buffered training and Boltzmann-weighting is
|
|
26
|
+
described in ref. 1.
|
|
27
|
+
- The atomistic diffusion model package AGeDi used as the diffusion
|
|
28
|
+
model in GO-Diff is presented in ref. 2
|
|
29
|
+
- The surface supported diffusion model including its confinement and
|
|
30
|
+
correspond methodology is introduced in ref. 3.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
Suggested citation
|
|
34
|
+
------------------
|
|
35
|
+
|
|
36
|
+
If you use GO-Diff in academic work, please cite the GO-Diff preprint,
|
|
37
|
+
the AGeDi preprint and the PRB paper::
|
|
38
|
+
|
|
39
|
+
@misc{ronne2025A,
|
|
40
|
+
title={GO-Diff: Data-free and amortized global structure optimization},
|
|
41
|
+
author={Nikolaj Rønne and Tejs Vegge and Arghya Bhowmik},
|
|
42
|
+
year={2025},
|
|
43
|
+
eprint={2510.13448},
|
|
44
|
+
archivePrefix={arXiv},
|
|
45
|
+
primaryClass={physics.comp-ph},
|
|
46
|
+
url={https://arxiv.org/abs/2510.13448},
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@misc{ronne2025B,
|
|
50
|
+
title={Atomistic Generative Diffusion for Materials Modeling},
|
|
51
|
+
author={Nikolaj Rønne and Bjørk Hammer},
|
|
52
|
+
year={2025},
|
|
53
|
+
eprint={2507.18314},
|
|
54
|
+
archivePrefix={arXiv},
|
|
55
|
+
primaryClass={physics.comp-ph},
|
|
56
|
+
url={https://arxiv.org/abs/2507.18314},
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
If investigating surface supported systems please also cite::
|
|
61
|
+
|
|
62
|
+
@article{ronne2024,
|
|
63
|
+
title = {Generative Diffusion Model for Surface Structure Discovery},
|
|
64
|
+
author = {R{\o}nne, Nikolaj and Aspuru-Guzik, Al{\'a}n and Hammer, Bj{\o}rk},
|
|
65
|
+
journal = {Physical Review B},
|
|
66
|
+
volume = {110},
|
|
67
|
+
pages = {235427},
|
|
68
|
+
year = {2024},
|
|
69
|
+
doi = {10.1103/PhysRevB.110.235427},
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
If you make use of AGOX utilities please also cite::
|
|
73
|
+
|
|
74
|
+
@article{christiansen2022,
|
|
75
|
+
title = {Atomistic Global Optimization X: A Python Package for
|
|
76
|
+
Optimization of Atomistic Structures},
|
|
77
|
+
author = {Christiansen, Mads-Peter V. and R{\o}nne, Nikolaj and
|
|
78
|
+
Hammer, Bj{\o}rk},
|
|
79
|
+
journal = {The Journal of Chemical Physics},
|
|
80
|
+
volume = {157},
|
|
81
|
+
pages = {054701},
|
|
82
|
+
year = {2022},
|
|
83
|
+
doi = {10.1063/5.0094165},
|
|
84
|
+
}
|
|
@@ -10,14 +10,12 @@ Sampling pitfalls
|
|
|
10
10
|
|
|
11
11
|
- **All sampled structures are filtered out**
|
|
12
12
|
|
|
13
|
-
GO-Diff
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
energies, or check that the confinement bounds are physically reasonable
|
|
20
|
-
so structures do not overlap.
|
|
13
|
+
GO-Diff can use filters defined through ``valid_structure_filters``
|
|
14
|
+
such as ``MinEnergyFilter`` to discard unphysical structures before
|
|
15
|
+
contaminating the search.
|
|
16
|
+
|
|
17
|
+
*Fix*: Change ``valid_structure_filters`` to fit the system you are
|
|
18
|
+
investigating.
|
|
21
19
|
|
|
22
20
|
- **ESS target never reached**
|
|
23
21
|
|