|
Download README.md from fletxcher/khaos-pde_wave_evolution_2d: direct link, hf CLI and curl.
- Browser
- Download file 2.77 kB
-
https://huggingface.co/fletxcher/khaos-pde_wave_evolution_2d/resolve/main/README.md
- Command line
-
hf download hf://fletxcher/khaos-pde_wave_evolution_2d/README.md
-
curl -L -o README.md https://huggingface.co/fletxcher/khaos-pde_wave_evolution_2d/resolve/main/README.md
2.77 kB
| license: cc-by-4.0 | |
| library_name: khaos | |
| tags: | |
| - khaos | |
| - physics | |
| - pde | |
| - wave-equation | |
| - neural-operator | |
| - surrogate | |
| - boundary-conditions | |
| pipeline_tag: other | |
| # Khaos Wave Evolution 2D | |
| A Fourier Neural Operator that maps a scenario (fields, boundary conditions and PDE parameters) to the displacement and velocity at a requested time on a 64 x 64 grid, orders of magnitude faster than a numerical solver. | |
| `pde_wave_evolution_2d` **v1**, from Khaos (a local-first library of pre-trained models for domain-specific tasks). This is the first release of the artifact. | |
| ## Model | |
| - Architecture: TimeConditionedFNO2d (4 Fourier layers, width 48, 32 x 32 modes) wrapped with input/output normalization; the Fourier transform uses explicit DFT matrices so it exports to ONNX | |
| - Parameters: 37,765,120 | |
| - Format: ONNX (`model.onnx`) plus PyTorch weights (`model.pt`) and `manifest.json` | |
| - Training data: [fletxcher/khaos-pde_wave_evolution_2d](https://huggingface.co/datasets/fletxcher/khaos-pde_wave_evolution_2d) | |
| ## Results | |
| Measured on the held-out test split of the training dataset. | |
| | Metric | Value | | |
| | --- | ---: | | |
| | test_rel_l2 | 0.5780 | | |
| | n_test | 150 | | |
| | test_ood_rel_l2 | 0.8156 | | |
| | test_rollout_rel_l2_final | 0.3884 | | |
| | baseline_zero_prediction_rel_l2 | 1.0000 | | |
| ### Rollout from the initial state in steps of 0.1 | |
| Each prediction is fed back as the next start state. | |
| | Step | Relative L2 | | |
| | --- | ---: | | |
| | 1 of 6 | 0.2010 | | |
| | 2 of 6 | 0.2474 | | |
| | 3 of 6 | 0.2855 | | |
| | 4 of 6 | 0.3215 | | |
| | 5 of 6 | 0.3556 | | |
| | 6 of 6 | 0.3884 | | |
| ### Test error by time snapshot | |
| | Snapshot | Relative L2 | | |
| | --- | ---: | | |
| | 1 of 6 | 0.2010 | | |
| | 2 of 6 | 0.4028 | | |
| | 3 of 6 | 0.5397 | | |
| | 4 of 6 | 0.6736 | | |
| | 5 of 6 | 0.7804 | | |
| | 6 of 6 | 0.8704 | | |
| ## Training | |
| ```json | |
| { | |
| "architecture": "TimeConditionedFNO2d", | |
| "time": true, | |
| "log": [], | |
| "epochs": 300, | |
| "batch": 32, | |
| "lr": 0.001, | |
| "extra": [ | |
| "test_ood" | |
| ], | |
| "pairs": true, | |
| "patience": 40, | |
| "resolution": [ | |
| 64, | |
| 64 | |
| ] | |
| } | |
| ``` | |
| Best epoch 296, trained in 25.1 minutes on a single consumer GPU (RTX 3050 8 GB). | |
| ## Intended use | |
| Fast approximate solutions for design exploration and sweeps on a 64 x 64 grid. The model takes the raw physical inputs described in the dataset card, so normalization is built in. | |
| ## Limitations | |
| - The grid is fixed at 64 x 64: other resolutions need a new model. | |
| - Accuracy is reported on the dataset's scenario distribution; boundary conditions or parameters outside it are extrapolation. | |
| - A surrogate has no error guarantee: check against a numerical solver before relying on it for safety-critical decisions. | |
| ## Usage | |
| ```bash | |
| pip install khaos | |
| khaos serve ./pde_wave_evolution_2d | |
| ``` | |
| ## License | |
| Trained on data generated by Khaos solvers; released under CC BY 4.0. | |