Push model using huggingface_hub.
Browse files- README.md +65 -0
- config.json +11 -0
- model.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
datasets: polymathic-ai/planetswe
|
3 |
+
tags:
|
4 |
+
- physics
|
5 |
+
---
|
6 |
+
|
7 |
+
# Benchmarking Models on the Well
|
8 |
+
|
9 |
+
[The Well](https://github.com/PolymathicAI/the_well) is a 15TB dataset collection of physics simulations. This model is part of the models that have been benchmarked on the Well.
|
10 |
+
|
11 |
+
|
12 |
+
The models have been trained for a fixed time of 12 hours or up to 500 epochs, whichever happens first. The training was performed on a NVIDIA H100 96GB GPU.
|
13 |
+
In the time dimension, the context length was set to 4. The batch size was set to maximize the memory usage. We experiment with 5 different learning rates for each model on each dataset.
|
14 |
+
We use the model performing best on the validation set to report test set results.
|
15 |
+
|
16 |
+
The reported results are here to provide a simple baseline. **They should not be considered as state-of-the-art**. We hope that the community will build upon these results to develop better architectures for PDE surrogate modeling.
|
17 |
+
|
18 |
+
# U-Net
|
19 |
+
|
20 |
+
Implementation of the [U-Net model](https://arxiv.org/abs/1505.04597).
|
21 |
+
|
22 |
+
## Model Details
|
23 |
+
|
24 |
+
For benchmarking on the Well, we used the following parameters.
|
25 |
+
|
26 |
+
| Parameters | Values |
|
27 |
+
|---------------------|--------|
|
28 |
+
| Spatial Filter Size | 3 |
|
29 |
+
| Initial Dimension | 48 |
|
30 |
+
| Block per Stage | 1 |
|
31 |
+
| Up/Down Blocks | 4 |
|
32 |
+
| Bottleneck Blocks | 1 |
|
33 |
+
|
34 |
+
## Trained Model Versions
|
35 |
+
|
36 |
+
Below is the list of checkpoints available for the training of U-Net on different datasets of the Well.
|
37 |
+
|
38 |
+
| Dataset | Learning Rate | Epochs | VRMSE |
|
39 |
+
|---------|---------------|--------|-------|
|
40 |
+
| [acoustic_scattering (maze)](https://huggingface.co/polymathic-ai/UNET-acoustic_scattering) | 1E-2 | 26 | 0.0395 |
|
41 |
+
| [active_matter](https://huggingface.co/polymathic-ai/UNET-active_matter) | 5E-3 | 239 | 0.2609 |
|
42 |
+
| [convective_envelope_rsg](https://huggingface.co/polymathic-ai/UNET-convective_envelope_rsg) | 5E-4 | 19 | 0.0701 |
|
43 |
+
| [gray_scott_reaction_diffusion](https://huggingface.co/polymathic-ai/UNET-gray_scott_reaction_diffusion) | 1E-2 | 44 | 0.5870 |
|
44 |
+
| [helmholtz_staircase](https://huggingface.co/polymathic-ai/UNET-helmholtz_staircase) | 1E-3 | 120 | 0.01655 |
|
45 |
+
| [MHD_64](https://huggingface.co/polymathic-ai/UNET-MHD_64) | 5E-4 | 165 | 0.1988 |
|
46 |
+
| [planetswe](https://huggingface.co/polymathic-ai/UNET-planetswe) | 1E-2 | 49 | 0.3498 |
|
47 |
+
| [post_neutron_star_merger](https://huggingface.co/polymathic-ai/UNET-post_neutron_star_merger) | - | - | – |
|
48 |
+
| [rayleigh_benard](https://huggingface.co/polymathic-ai/UNET-rayleigh_benard) | 1E-4 | 29 | 0.8448 |
|
49 |
+
| [rayleigh_taylor_instability](https://huggingface.co/polymathic-ai/UNET-rayleigh_taylor_instability) | 5E-4 | 193 | 0.6140 |
|
50 |
+
| [shear_flow](https://huggingface.co/polymathic-ai/UNET-shear_flow) | 5E-4 | 29 | 0.836 |
|
51 |
+
| [supernova_explosion_64](https://huggingface.co/polymathic-ai/UNET-supernova_explosion_64) | 5E-4 | 46 | 0.3242 |
|
52 |
+
| [turbulence_gravity_cooling](https://huggingface.co/polymathic-ai/UNET-turbulence_gravity_cooling) | 1E-3 | 14 | 0.3152 |
|
53 |
+
| [turbulent_radiative_layer_2D](https://huggingface.co/polymathic-ai/UNET-turbulent_radiative_layer_2D) | 5E-3 | 500 | 0.2394 |
|
54 |
+
| [viscoelastic_instability](https://huggingface.co/polymathic-ai/UNET-viscoelastic_instability) | 5E-4 | 198 | 0.3147 |
|
55 |
+
|
56 |
+
|
57 |
+
## Loading the model from Hugging Face
|
58 |
+
|
59 |
+
To load the UNetClassic model trained on the `planetswe` of the Well, use the following commands.
|
60 |
+
|
61 |
+
```python
|
62 |
+
from the_well.benchmark.models import UNetClassic
|
63 |
+
|
64 |
+
model = UNetClassic.from_pretrained("polymathic-ai/UNetClassic-planetswe")
|
65 |
+
```
|
config.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"dim_in": 12,
|
3 |
+
"dim_out": 3,
|
4 |
+
"gradient_checkpointing": false,
|
5 |
+
"init_features": 48,
|
6 |
+
"n_spatial_dims": 2,
|
7 |
+
"spatial_resolution": [
|
8 |
+
256,
|
9 |
+
512
|
10 |
+
]
|
11 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:522549d29b9abb80f121aa95bcbc16921a8c387141561c2daa5729597ec20488
|
3 |
+
size 69908196
|