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
+13-4
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,9 @@
14
14
15
15
MatterGen is a generative model for inorganic materials design across the periodic table that can be fine-tuned to steer the generation towards a wide range of property constraints.
16
16
17
+
> [!WARNING]
18
+
> This branch adds **experimental** support to run MatterGen on Apple Silicon. Use at your own risk.
19
+
17
20
## Table of Contents
18
21
-[Installation](#installation)
19
22
-[Get started with a pre-trained model](#get-started-with-a-pre-trained-model)
@@ -74,6 +77,7 @@ To sample from the pre-trained base model, run the following command.
74
77
```bash
75
78
export MODEL_PATH=checkpoints/mattergen_base # Or provide your own model
76
79
export RESULTS_PATH=results/ # Samples will be written to this directory
You can also generate materials conditioned on more than one property. For instance, you can use the pre-trained model located at `checkpoints/chemical_system_energy_above_hull` to generate conditioned on chemical system and energy above the hull, or the model at `checkpoints/dft_mag_density_hhi_score` for joint conditioning on [HHI score](https://en.wikipedia.org/wiki/Herfindahl%E2%80%93Hirschman_index) and magnetic density.
103
108
Adapt the following command to your specific needs:
The validation loss (`loss_val`) should reach 0.4 after 360 epochs (about 80k steps). The output checkpoints can be found at `outputs/singlerun/${now:%Y-%m-%d}/${now:%H-%M-%S}`. We call this folder `$MODEL_PATH` for future reference.
@@ -166,7 +173,8 @@ The validation loss (`loss_val`) should reach 0.4 after 360 epochs (about 80k st
166
173
167
174
To train the MatterGen base model on `alex_mp_20`, use the following command:
> Note that a single GPU's memory usually is not enough for the batch size of 512, hence we accumulate gradients over 4 batches. If you still run out of memory, increase this further.
@@ -184,7 +192,8 @@ Assume that you have a MatterGen base model at `$MODEL_PATH` (e.g., `checkpoints
0 commit comments