Zituo commited on
Commit
fd0381e
·
verified ·
1 Parent(s): cc14557

Release LGS checkpoints: PhyVAE (249M), PFlowFT latest (138M), PFlowFT submission (138M)

Browse files
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Zituo Chen and Sili Deng
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
MANIFEST.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "model_type": "phyvae",
4
+ "source_checkpoint": "sdvae16_Large_checkpoint_20.pth",
5
+ "source_checkpoint_sha256": "ad2674f4d34361c2edaf0178d36a80433e9b5ef3c3bbbb02fbbdf01198228e08",
6
+ "safetensors_sha256": "3b20a6ca3cabc996c9e010a594a182e8963d96af04445113e88acb4c66880504",
7
+ "n_trainable_parameters": 249162851,
8
+ "n_state_dict_elements": 249162851,
9
+ "subdir": "phyvae",
10
+ "bytes": 996689828
11
+ },
12
+ {
13
+ "model_type": "pflowft",
14
+ "source_checkpoint": "lgs_tune_clean75_continue_s32_epoch010.pth",
15
+ "source_checkpoint_sha256": "8d6d753aaffbde1e30de79c7c9202a4a473b8e95edd6d45d887e37cec3bfbee2",
16
+ "safetensors_sha256": "efc298eb1eae9f80323febcf40c269619232abf768262130ca5a283b8072608c",
17
+ "n_trainable_parameters": 138087168,
18
+ "n_state_dict_elements": 142280832,
19
+ "subdir": "pflowft",
20
+ "bytes": 569137296
21
+ },
22
+ {
23
+ "model_type": "pflowft",
24
+ "source_checkpoint": "sit_Small_vae_Large_checkpoint_20.pth",
25
+ "source_checkpoint_sha256": "d803c51ba48b23fe93f64e7c8efb1d81e5bc65dff82b4a5a9b764e5c90c514e3",
26
+ "safetensors_sha256": "ad1c33c3fcca517a0f8ad1149e884609e3991a4eb4a861c3d9d0516a16ec5467",
27
+ "n_trainable_parameters": 138087168,
28
+ "n_state_dict_elements": 142280832,
29
+ "subdir": "pflowft_submission",
30
+ "bytes": 569137296
31
+ }
32
+ ]
README.md ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: pytorch
4
+ tags:
5
+ - physics
6
+ - pde
7
+ - scientific-machine-learning
8
+ - flow-matching
9
+ - neural-pde-solver
10
+ - surrogate-model
11
+ ---
12
+
13
+ # Latent Generative Solvers (LGS) — pretrained checkpoints
14
+
15
+ Weights for **Latent Generative Solvers for Generalizable Long-Term Physics
16
+ Simulation** (Zituo Chen, Sili Deng; [arXiv:2602.11229](https://arxiv.org/abs/2602.11229)).
17
+ Code: <https://github.com/chenzituo/latent-generative-solver>.
18
+
19
+ LGS couples a **Physics VAE (PhyVAE)**, which maps states from twelve PDE
20
+ families into a shared latent physical manifold, with a **Pyramidal
21
+ Flow-Forcing Transformer (PFlowFT)**, which predicts the next latent state by
22
+ input-noised flow matching over a four-frame history pooled to 2/4/8/16
23
+ resolution.
24
+
25
+ ## Files
26
+
27
+ | Folder | Model | Trainable params | Recommended inference |
28
+ |---|---|---|---|
29
+ | `phyvae/` | PhyVAE-Large (`PFFT_VAE`, c16p16: 3×128×128 → 16×16×16) | 249.16M | posterior mean for encoding |
30
+ | `pflowft/` | PFlowFT-Small (`LGS`, dim 768, 12 layers, 12 heads) — **latest, recommended** | 138.09M | 1 Euler NFE, release-manifold transition |
31
+ | `pflowft_submission/` | PFlowFT-Small — checkpoint of the originally submitted paper version | 138.09M | 20 Euler NFE, release-manifold transition |
32
+
33
+ Each folder has `model.safetensors` (weights only, float32) and `config.json`
34
+ (constructor arguments, source-checkpoint SHA-256, and for `pflowft` the full
35
+ training protocol). PFlowFT state dicts additionally hold 4.19M fixed
36
+ positional buffers (`lgs_pred.s_pos*`). Both PFlowFT checkpoints were trained
37
+ against this exact frozen PhyVAE (SHA-256 of its training checkpoint:
38
+ `ad2674f4…8e08`).
39
+
40
+ ## Usage
41
+
42
+ ```bash
43
+ git clone https://github.com/chenzituo/latent-generative-solver.git && cd latent-generative-solver
44
+ pip install -r requirements.txt && export PYTHONPATH=$PWD
45
+ ```
46
+
47
+ ```python
48
+ from lgs_hub import load_lgs, rollout
49
+
50
+ vae, model, cfg = load_lgs("pflowft", device="cuda")
51
+ # frames: four tensors, oldest first, each (B, 3, 128, 128) in the normalized c3p128 corpus layout
52
+ fields = rollout(vae, model, frames, steps=10, nfe=cfg["recommended_inference"]["nfe"])
53
+ ```
54
+
55
+ A CUDA GPU with flash-attn is required.
56
+
57
+ ## Results
58
+
59
+ Relative L2 error (L2RE, %, lower is better) on the **test split** of all 16
60
+ systems, measured with `eval_rebuttal/dense_rollout.py` for this release: 10%
61
+ seeded test subset (seed 0, first 32 batches of 8 per system; 3,294 windows,
62
+ 2,816 at step 20), release-manifold transition (each prediction is decoded and
63
+ re-encoded before re-entering the four-frame history), bf16. Means are
64
+ sample-weighted within each system, then averaged uniformly over systems; the
65
+ 20-step column covers the 11 systems with at least 20 future frames.
66
+
67
+ | Checkpoint | Euler NFE / step | 1-step | 5-step | 10-step | 20-step |
68
+ |---|---|---|---|---|---|
69
+ | `pflowft` (latest) | 1 | **7.97** | **16.90** | **24.63** | **41.07** |
70
+ | `pflowft_submission` | 20 | 11.30 | 25.69 | 36.83 | 57.75 |
71
+
72
+ These numbers come from the current evaluation harness and are not a
73
+ reproduction of the paper's tables. `pflowft` was selected on the validation
74
+ split (1/5/10-step L2RE 6.67/13.96/21.29% over 7,510 validation windows); the
75
+ test split was evaluated once, after selection.
76
+
77
+ ## Training
78
+
79
+ - **Data.** Unified c3p128 corpus of 16 systems from FNO Navier–Stokes
80
+ (FNO-v3/v4/v5), PDEArena (PA-NS, PA-NSC, PA-SWE), PDEBench (PB-CNSL, PB-CNSH,
81
+ PB-SWE) and The Well (W-GS, W-AM, W-SWE, W-RB, W-SF, W-TR, W-VE); 8:1:1
82
+ train/validation/test split. See `preprocess/DOWNLOAD.md` in the code
83
+ repository for sources.
84
+ - **PhyVAE.** KL-VAE trained on the pooled corpus (KL weight 1e-3), AdamW,
85
+ cosine schedule, bf16.
86
+ - **PFlowFT (`pflowft_submission`).** Input-noised flow matching over frozen
87
+ PhyVAE latents, AdamW (β = 0.9, 0.995), cosine schedule, global batch 64.
88
+ - **PFlowFT (`pflowft`, latest).** Same architecture and frozen PhyVAE,
89
+ retrained from scratch (seed 3, 200k updates) and then refined by pooled
90
+ continuation phases (180k further updates) with hard-family reweighting,
91
+ a self-conditioned two-step rollout loss, clean-endpoint training
92
+ (p = 0.75) and a relative flow loss. Every phase was selected on the
93
+ validation split only; the test split was not used for selection.
94
+
95
+ ## Intended use and limitations
96
+
97
+ Research use: next-step and autoregressive forecasting for the 16 corpus
98
+ systems at 128² and as a pretrained starting point for adaptation to new 2D
99
+ PDE systems. It is not a general-purpose PDE solver: inputs must follow the
100
+ corpus channel layout and normalization; accuracy degrades with rollout length,
101
+ on systems outside the training families, and at other resolutions without
102
+ fine-tuning. Predictions are not guaranteed to conserve physical invariants.
103
+
104
+ ## Citation
105
+
106
+ ```bibtex
107
+ @article{chen2026latent,
108
+ title = {Latent Generative Solvers for Generalizable Long-Term Physics Simulation},
109
+ author = {Chen, Zituo and Deng, Sili},
110
+ journal = {arXiv preprint arXiv:2602.11229},
111
+ year = {2026}
112
+ }
113
+ ```
pflowft/config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "pflowft",
3
+ "class": "LGS",
4
+ "module": "pygpt_network",
5
+ "kwargs": {
6
+ "embed_dim": 768,
7
+ "num_heads": 12,
8
+ "layers": 12,
9
+ "ff_hidden_dim": 2048,
10
+ "d_vae": 16,
11
+ "dropout": 0.05
12
+ },
13
+ "recommended_inference": {
14
+ "nfe": 1,
15
+ "latent_state_transition": "release-manifold"
16
+ },
17
+ "description": "LGS Stage II PFlowFT-Small, latest checkpoint: pooled post-submission continuation (clean-endpoint p=0.75, seed 32, 10k updates from the seed-31 checkpoint). Recommended release model.",
18
+ "n_tensors": 134,
19
+ "n_state_dict_elements": 142280832,
20
+ "n_trainable_parameters": 138087168,
21
+ "source_training_epoch_index": 9,
22
+ "training_protocol": {
23
+ "experiment": "pooled-LGS-checkpoint-continuation",
24
+ "architecture": "submitted LGS-Small PFlowFT",
25
+ "architecture_changed": false,
26
+ "objective": "submitted input-noised flow-matching loss",
27
+ "training_regime": "pooled",
28
+ "system": "all",
29
+ "family_sampling_multipliers": {
30
+ "FNO-v3": 2.0,
31
+ "FNO-v4": 6.0,
32
+ "FNO-v5": 4.0,
33
+ "PA-NS": 2.0,
34
+ "PA-NSC": 3.0,
35
+ "PA-SWE": 5.0,
36
+ "W-AM": 4.0,
37
+ "W-RB": 2.0
38
+ },
39
+ "flow_variable_powers": {
40
+ "noise": 8.0,
41
+ "time": 8.0
42
+ },
43
+ "clean_endpoint_probability": 0.75,
44
+ "pyramid_loss_weights": [
45
+ 0.1,
46
+ 0.25,
47
+ 0.5,
48
+ 16.0
49
+ ],
50
+ "loss_normalization": "relative",
51
+ "latest_frame_duplication_prob": 0.25,
52
+ "self_conditioned_rollout": {
53
+ "steps": 2,
54
+ "weight": 1.0,
55
+ "first_prediction_detached": true,
56
+ "frozen_vae_projection": false
57
+ },
58
+ "train_split": "train",
59
+ "selection_split": "valid",
60
+ "test_split_used_for_selection": false,
61
+ "optimizer_updates": 10000,
62
+ "steps_per_epoch": 1000,
63
+ "global_batch_size": 64,
64
+ "optimizer": {
65
+ "name": "AdamW",
66
+ "learning_rate": 1e-05,
67
+ "betas": [
68
+ 0.9,
69
+ 0.95
70
+ ],
71
+ "eps": 1e-06,
72
+ "weight_decay": 0.0001,
73
+ "resumed_from_parent": false
74
+ },
75
+ "scheduler": {
76
+ "name": "cosine restart",
77
+ "warmup_fraction": 0.05
78
+ },
79
+ "seed": 32
80
+ },
81
+ "frozen_vae_sha256": "ad2674f4d34361c2edaf0178d36a80433e9b5ef3c3bbbb02fbbdf01198228e08",
82
+ "parent_checkpoint_sha256": "dc709ba8aebe158226f05aebf3f5fc3a780d5c14d35006360e4b17dca6ca142d",
83
+ "source_checkpoint": "lgs_tune_clean75_continue_s32_epoch010.pth",
84
+ "source_checkpoint_sha256": "8d6d753aaffbde1e30de79c7c9202a4a473b8e95edd6d45d887e37cec3bfbee2",
85
+ "safetensors_sha256": "efc298eb1eae9f80323febcf40c269619232abf768262130ca5a283b8072608c"
86
+ }
pflowft/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efc298eb1eae9f80323febcf40c269619232abf768262130ca5a283b8072608c
3
+ size 569137296
pflowft_submission/config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "pflowft",
3
+ "class": "LGS",
4
+ "module": "pygpt_network",
5
+ "kwargs": {
6
+ "embed_dim": 768,
7
+ "num_heads": 12,
8
+ "layers": 12,
9
+ "ff_hidden_dim": 2048,
10
+ "d_vae": 16,
11
+ "dropout": 0.05
12
+ },
13
+ "recommended_inference": {
14
+ "nfe": 20,
15
+ "latent_state_transition": "release-manifold"
16
+ },
17
+ "description": "LGS Stage II PFlowFT-Small, checkpoint of the originally submitted paper version.",
18
+ "n_tensors": 134,
19
+ "n_state_dict_elements": 142280832,
20
+ "n_trainable_parameters": 138087168,
21
+ "source_training_epoch_index": 207,
22
+ "source_checkpoint": "sit_Small_vae_Large_checkpoint_20.pth",
23
+ "source_checkpoint_sha256": "d803c51ba48b23fe93f64e7c8efb1d81e5bc65dff82b4a5a9b764e5c90c514e3",
24
+ "safetensors_sha256": "ad1c33c3fcca517a0f8ad1149e884609e3991a4eb4a861c3d9d0516a16ec5467"
25
+ }
pflowft_submission/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad1c33c3fcca517a0f8ad1149e884609e3991a4eb4a861c3d9d0516a16ec5467
3
+ size 569137296
phyvae/config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "phyvae",
3
+ "class": "PFFT_VAE",
4
+ "module": "pygpt_network",
5
+ "kwargs": {
6
+ "base_ch": 192,
7
+ "num_heads": 3,
8
+ "num_res": 3,
9
+ "d_latent": 16
10
+ },
11
+ "latent": "c16p16 (16 channels, 16x spatial downsampling of 3x128x128 fields)",
12
+ "description": "LGS Stage I PhyVAE-Large (KL-VAE over the unified 3-channel 128x128 multi-physics corpus).",
13
+ "n_tensors": 360,
14
+ "n_state_dict_elements": 249162851,
15
+ "n_trainable_parameters": 249162851,
16
+ "source_training_epoch_index": 199,
17
+ "source_checkpoint": "sdvae16_Large_checkpoint_20.pth",
18
+ "source_checkpoint_sha256": "ad2674f4d34361c2edaf0178d36a80433e9b5ef3c3bbbb02fbbdf01198228e08",
19
+ "safetensors_sha256": "3b20a6ca3cabc996c9e010a594a182e8963d96af04445113e88acb4c66880504"
20
+ }
phyvae/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b20a6ca3cabc996c9e010a594a182e8963d96af04445113e88acb4c66880504
3
+ size 996689828