Push model using huggingface_hub.
Browse files- README.md +66 -0
- config.json +14 -0
- model.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
datasets: polymathic-ai/helmholtz_staircase
|
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 |
+
# CNextU-Net
|
19 |
+
|
20 |
+
Implementation of the [U-Net model](https://arxiv.org/abs/1505.04597) using [ConvNext blocks](https://arxiv.org/abs/2201.03545).
|
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 | 7 |
|
29 |
+
| Initial Dimension | 42 |
|
30 |
+
| Block per Stage | 2 |
|
31 |
+
| Up/Down Blocks | 4 |
|
32 |
+
| Bottleneck Blocks | 1 |
|
33 |
+
|
34 |
+
|
35 |
+
## Trained Model Versions
|
36 |
+
|
37 |
+
Below is the list of checkpoints available for the training of CNextU-Net on different datasets of the Well.
|
38 |
+
|
39 |
+
| Dataset | Learning Rate | Epoch | VRMSE |
|
40 |
+
|---------|---------------|-------|-------|
|
41 |
+
| [acoustic_scattering_maze](https://huggingface.co/polymathic-ai/UNetConvNext-acoustic_scattering) | 1E-3 | 10 | 0.0196 |
|
42 |
+
| [active_matter](https://huggingface.co/polymathic-ai/UNetConvNext-active_matter) | 5E-3 | 156 | 0.0953 |
|
43 |
+
| [convective_envelope_rsg](https://huggingface.co/polymathic-ai/UNetConvNext-convective_envelope_rsg) | 1E-4 | 5 | 0.0663 |
|
44 |
+
| [gray_scott_reaction_diffusion](https://huggingface.co/polymathic-ai/UNetConvNext-gray_scott_reaction_diffusion) | 1E-4 | 15 | 0.3596 |
|
45 |
+
| [helmholtz_staircase](https://huggingface.co/polymathic-ai/UNetConvNext-helmholtz_staircase) | 5E-4 | 47 | 0.00146 |
|
46 |
+
| [MHD_64](https://huggingface.co/polymathic-ai/UNetConvNext-MHD_64) | 5E-3 | 59 | 0.1487 |
|
47 |
+
| [planetswe](https://huggingface.co/polymathic-ai/UNetConvNext-planetswe) | 1E-2 | 18 | 0.3268 |
|
48 |
+
| [post_neutron_star_merger](https://huggingface.co/polymathic-ai/UNetConvNext-post_neutron_star_merger) | - | - | - |
|
49 |
+
| [rayleigh_benard](https://huggingface.co/polymathic-ai/UNetConvNext-rayleigh_benard) | 5E-4 | 12 | 0.4807 |
|
50 |
+
| [rayleigh_taylor_instability](https://huggingface.co/polymathic-ai/UNetConvNext-rayleigh_taylor_instability) | 5E-3 | 56 | 0.3771 |
|
51 |
+
| [shear_flow](https://huggingface.co/polymathic-ai/UNetConvNext-shear_flow) | 5E-4 | 9 | 0.3972 |
|
52 |
+
| [supernova_explosion_64](https://huggingface.co/polymathic-ai/UNetConvNext-supernova_explosion_64) | 5E-4 | 13 | 0.2801 |
|
53 |
+
| [turbulence_gravity_cooling](https://huggingface.co/polymathic-ai/UNetConvNext-turbulence_gravity_cooling) | 1E-3 | 3 | 0.2093 |
|
54 |
+
| [turbulent_radiative_layer_2D](https://huggingface.co/polymathic-ai/UNetConvNext-turbulent_radiative_layer_2D) | 5E-3 | 495 | 0.1247 |
|
55 |
+
| [viscoelastic_instability](https://huggingface.co/polymathic-ai/UNetConvNext-viscoelastic_instability) | 5E-4 | 114 | 0.1966 |
|
56 |
+
|
57 |
+
|
58 |
+
## Loading the model from Hugging Face
|
59 |
+
|
60 |
+
To load the UNetConvNext model trained on the `helmholtz_staircase` of the Well, use the following commands.
|
61 |
+
|
62 |
+
```python
|
63 |
+
from the_well.benchmark.models import UNetConvNext
|
64 |
+
|
65 |
+
model = UNetConvNext.from_pretrained("polymathic-ai/UNetConvNext-helmholtz_staircase")
|
66 |
+
```
|
config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"blocks_at_neck": 1,
|
3 |
+
"blocks_per_stage": 2,
|
4 |
+
"dim_in": 9,
|
5 |
+
"dim_out": 2,
|
6 |
+
"gradient_checkpointing": false,
|
7 |
+
"init_features": 42,
|
8 |
+
"n_spatial_dims": 2,
|
9 |
+
"spatial_resolution": [
|
10 |
+
1024,
|
11 |
+
256
|
12 |
+
],
|
13 |
+
"stages": 4
|
14 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd702f0b8f56905e34af27af0a653e5e61d13fcd4357859faf7d5a2bf362b812
|
3 |
+
size 74307152
|