Release LGS checkpoints: PhyVAE (249M), PFlowFT latest (138M), PFlowFT submission (138M)
Browse filesFiles changed (9)
- LICENSEAdded+21
- MANIFEST.jsonAdded+32
- README.mdAdded+113
- pflowft/config.jsonAdded+86
- pflowft/model.safetensorsAdded+3
- pflowft_submission/config.jsonAdded+25
- pflowft_submission/model.safetensorsAdded+3
- phyvae/config.jsonAdded+20
- phyvae/model.safetensorsAdded+3
123456789101112131415161718192021MIT License
Copyright (c) 2026 Zituo Chen and Sili Deng
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.1234567891011121314151617181920212223242526272829303132[ { "model_type": "phyvae", "source_checkpoint": "sdvae16_Large_checkpoint_20.pth", "source_checkpoint_sha256": "ad2674f4d34361c2edaf0178d36a80433e9b5ef3c3bbbb02fbbdf01198228e08", "safetensors_sha256": "3b20a6ca3cabc996c9e010a594a182e8963d96af04445113e88acb4c66880504", "n_trainable_parameters": 249162851, "n_state_dict_elements": 249162851, "subdir": "phyvae", "bytes": 996689828 }, { "model_type": "pflowft", "source_checkpoint": "lgs_tune_clean75_continue_s32_epoch010.pth", "source_checkpoint_sha256": "8d6d753aaffbde1e30de79c7c9202a4a473b8e95edd6d45d887e37cec3bfbee2", "safetensors_sha256": "efc298eb1eae9f80323febcf40c269619232abf768262130ca5a283b8072608c", "n_trainable_parameters": 138087168, "n_state_dict_elements": 142280832, "subdir": "pflowft", "bytes": 569137296 }, { "model_type": "pflowft", "source_checkpoint": "sit_Small_vae_Large_checkpoint_20.pth", "source_checkpoint_sha256": "d803c51ba48b23fe93f64e7c8efb1d81e5bc65dff82b4a5a9b764e5c90c514e3", "safetensors_sha256": "ad1c33c3fcca517a0f8ad1149e884609e3991a4eb4a861c3d9d0516a16ec5467", "n_trainable_parameters": 138087168, "n_state_dict_elements": 142280832, "subdir": "pflowft_submission", "bytes": 569137296 }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113---license: mitlibrary_name: pytorchtags: - physics - pde - scientific-machine-learning - flow-matching - neural-pde-solver - surrogate-model---
# Latent Generative Solvers (LGS) — pretrained checkpoints
Weights for **Latent Generative Solvers for Generalizable Long-Term PhysicsSimulation** (Zituo Chen, Sili Deng; [arXiv:2602.11229](https://arxiv.org/abs/2602.11229)).Code: <https://github.com/chenzituo/latent-generative-solver>.
LGS couples a **Physics VAE (PhyVAE)**, which maps states from twelve PDEfamilies into a shared latent physical manifold, with a **PyramidalFlow-Forcing Transformer (PFlowFT)**, which predicts the next latent state byinput-noised flow matching over a four-frame history pooled to 2/4/8/16resolution.
## Files
| Folder | Model | Trainable params | Recommended inference ||---|---|---|---|| `phyvae/` | PhyVAE-Large (`PFFT_VAE`, c16p16: 3×128×128 → 16×16×16) | 249.16M | posterior mean for encoding || `pflowft/` | PFlowFT-Small (`LGS`, dim 768, 12 layers, 12 heads) — **latest, recommended** | 138.09M | 1 Euler NFE, release-manifold transition || `pflowft_submission/` | PFlowFT-Small — checkpoint of the originally submitted paper version | 138.09M | 20 Euler NFE, release-manifold transition |
Each folder has `model.safetensors` (weights only, float32) and `config.json`(constructor arguments, source-checkpoint SHA-256, and for `pflowft` the fulltraining protocol). PFlowFT state dicts additionally hold 4.19M fixedpositional buffers (`lgs_pred.s_pos*`). Both PFlowFT checkpoints were trainedagainst this exact frozen PhyVAE (SHA-256 of its training checkpoint:`ad2674f4…8e08`).
## Usage
```bashgit clone https://github.com/chenzituo/latent-generative-solver.git && cd latent-generative-solverpip install -r requirements.txt && export PYTHONPATH=$PWD```
```pythonfrom lgs_hub import load_lgs, rollout
vae, model, cfg = load_lgs("pflowft", device="cuda")# frames: four tensors, oldest first, each (B, 3, 128, 128) in the normalized c3p128 corpus layoutfields = rollout(vae, model, frames, steps=10, nfe=cfg["recommended_inference"]["nfe"])```
A CUDA GPU with flash-attn is required.
## Results
Relative L2 error (L2RE, %, lower is better) on the **test split** of all 16systems, measured with `eval_rebuttal/dense_rollout.py` for this release: 10%seeded test subset (seed 0, first 32 batches of 8 per system; 3,294 windows,2,816 at step 20), release-manifold transition (each prediction is decoded andre-encoded before re-entering the four-frame history), bf16. Means aresample-weighted within each system, then averaged uniformly over systems; the20-step column covers the 11 systems with at least 20 future frames.
| Checkpoint | Euler NFE / step | 1-step | 5-step | 10-step | 20-step ||---|---|---|---|---|---|| `pflowft` (latest) | 1 | **7.97** | **16.90** | **24.63** | **41.07** || `pflowft_submission` | 20 | 11.30 | 25.69 | 36.83 | 57.75 |
These numbers come from the current evaluation harness and are not areproduction of the paper's tables. `pflowft` was selected on the validationsplit (1/5/10-step L2RE 6.67/13.96/21.29% over 7,510 validation windows); thetest split was evaluated once, after selection.
## Training
- **Data.** Unified c3p128 corpus of 16 systems from FNO Navier–Stokes (FNO-v3/v4/v5), PDEArena (PA-NS, PA-NSC, PA-SWE), PDEBench (PB-CNSL, PB-CNSH, PB-SWE) and The Well (W-GS, W-AM, W-SWE, W-RB, W-SF, W-TR, W-VE); 8:1:1 train/validation/test split. See `preprocess/DOWNLOAD.md` in the code repository for sources.- **PhyVAE.** KL-VAE trained on the pooled corpus (KL weight 1e-3), AdamW, cosine schedule, bf16.- **PFlowFT (`pflowft_submission`).** Input-noised flow matching over frozen PhyVAE latents, AdamW (β = 0.9, 0.995), cosine schedule, global batch 64.- **PFlowFT (`pflowft`, latest).** Same architecture and frozen PhyVAE, retrained from scratch (seed 3, 200k updates) and then refined by pooled continuation phases (180k further updates) with hard-family reweighting, a self-conditioned two-step rollout loss, clean-endpoint training (p = 0.75) and a relative flow loss. Every phase was selected on the validation split only; the test split was not used for selection.
## Intended use and limitations
Research use: next-step and autoregressive forecasting for the 16 corpussystems at 128² and as a pretrained starting point for adaptation to new 2DPDE systems. It is not a general-purpose PDE solver: inputs must follow thecorpus channel layout and normalization; accuracy degrades with rollout length,on systems outside the training families, and at other resolutions withoutfine-tuning. Predictions are not guaranteed to conserve physical invariants.
## Citation
```bibtex@article{chen2026latent, title = {Latent Generative Solvers for Generalizable Long-Term Physics Simulation}, author = {Chen, Zituo and Deng, Sili}, journal = {arXiv preprint arXiv:2602.11229}, year = {2026}}```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586{ "model_type": "pflowft", "class": "LGS", "module": "pygpt_network", "kwargs": { "embed_dim": 768, "num_heads": 12, "layers": 12, "ff_hidden_dim": 2048, "d_vae": 16, "dropout": 0.05 }, "recommended_inference": { "nfe": 1, "latent_state_transition": "release-manifold" }, "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.", "n_tensors": 134, "n_state_dict_elements": 142280832, "n_trainable_parameters": 138087168, "source_training_epoch_index": 9, "training_protocol": { "experiment": "pooled-LGS-checkpoint-continuation", "architecture": "submitted LGS-Small PFlowFT", "architecture_changed": false, "objective": "submitted input-noised flow-matching loss", "training_regime": "pooled", "system": "all", "family_sampling_multipliers": { "FNO-v3": 2.0, "FNO-v4": 6.0, "FNO-v5": 4.0, "PA-NS": 2.0, "PA-NSC": 3.0, "PA-SWE": 5.0, "W-AM": 4.0, "W-RB": 2.0 }, "flow_variable_powers": { "noise": 8.0, "time": 8.0 }, "clean_endpoint_probability": 0.75, "pyramid_loss_weights": [ 0.1, 0.25, 0.5, 16.0 ], "loss_normalization": "relative", "latest_frame_duplication_prob": 0.25, "self_conditioned_rollout": { "steps": 2, "weight": 1.0, "first_prediction_detached": true, "frozen_vae_projection": false }, "train_split": "train", "selection_split": "valid", "test_split_used_for_selection": false, "optimizer_updates": 10000, "steps_per_epoch": 1000, "global_batch_size": 64, "optimizer": { "name": "AdamW", "learning_rate": 1e-05, "betas": [ 0.9, 0.95 ], "eps": 1e-06, "weight_decay": 0.0001, "resumed_from_parent": false }, "scheduler": { "name": "cosine restart", "warmup_fraction": 0.05 }, "seed": 32 }, "frozen_vae_sha256": "ad2674f4d34361c2edaf0178d36a80433e9b5ef3c3bbbb02fbbdf01198228e08", "parent_checkpoint_sha256": "dc709ba8aebe158226f05aebf3f5fc3a780d5c14d35006360e4b17dca6ca142d", "source_checkpoint": "lgs_tune_clean75_continue_s32_epoch010.pth", "source_checkpoint_sha256": "8d6d753aaffbde1e30de79c7c9202a4a473b8e95edd6d45d887e37cec3bfbee2", "safetensors_sha256": "efc298eb1eae9f80323febcf40c269619232abf768262130ca5a283b8072608c"}123version https://git-lfs.github.com/spec/v1oid sha256:efc298eb1eae9f80323febcf40c269619232abf768262130ca5a283b8072608csize 56913729612345678910111213141516171819202122232425{ "model_type": "pflowft", "class": "LGS", "module": "pygpt_network", "kwargs": { "embed_dim": 768, "num_heads": 12, "layers": 12, "ff_hidden_dim": 2048, "d_vae": 16, "dropout": 0.05 }, "recommended_inference": { "nfe": 20, "latent_state_transition": "release-manifold" }, "description": "LGS Stage II PFlowFT-Small, checkpoint of the originally submitted paper version.", "n_tensors": 134, "n_state_dict_elements": 142280832, "n_trainable_parameters": 138087168, "source_training_epoch_index": 207, "source_checkpoint": "sit_Small_vae_Large_checkpoint_20.pth", "source_checkpoint_sha256": "d803c51ba48b23fe93f64e7c8efb1d81e5bc65dff82b4a5a9b764e5c90c514e3", "safetensors_sha256": "ad1c33c3fcca517a0f8ad1149e884609e3991a4eb4a861c3d9d0516a16ec5467"}123version https://git-lfs.github.com/spec/v1oid sha256:ad1c33c3fcca517a0f8ad1149e884609e3991a4eb4a861c3d9d0516a16ec5467size 5691372961234567891011121314151617181920{ "model_type": "phyvae", "class": "PFFT_VAE", "module": "pygpt_network", "kwargs": { "base_ch": 192, "num_heads": 3, "num_res": 3, "d_latent": 16 }, "latent": "c16p16 (16 channels, 16x spatial downsampling of 3x128x128 fields)", "description": "LGS Stage I PhyVAE-Large (KL-VAE over the unified 3-channel 128x128 multi-physics corpus).", "n_tensors": 360, "n_state_dict_elements": 249162851, "n_trainable_parameters": 249162851, "source_training_epoch_index": 199, "source_checkpoint": "sdvae16_Large_checkpoint_20.pth", "source_checkpoint_sha256": "ad2674f4d34361c2edaf0178d36a80433e9b5ef3c3bbbb02fbbdf01198228e08", "safetensors_sha256": "3b20a6ca3cabc996c9e010a594a182e8963d96af04445113e88acb4c66880504"}123version https://git-lfs.github.com/spec/v1oid sha256:3b20a6ca3cabc996c9e010a594a182e8963d96af04445113e88acb4c66880504size 996689828LICENSEAdded+21
MANIFEST.jsonAdded+32
README.mdAdded+113
pflowft/config.jsonAdded+86
pflowft/model.safetensorsAdded+3
pflowft_submission/config.jsonAdded+25
pflowft_submission/model.safetensorsAdded+3
phyvae/config.jsonAdded+20
phyvae/model.safetensorsAdded+3