Khaos Heat Diffusion 2D

A Fourier Neural Operator that maps a scenario (fields, boundary conditions and PDE parameters) to the temperature field at a requested time on a 64 x 64 grid, orders of magnitude faster than a numerical solver.

pde_heat_diffusion_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 32, 16 x 16 modes) wrapped with input/output normalization; the Fourier transform uses explicit DFT matrices so it exports to ONNX
  • Parameters: 4,203,181
  • Format: ONNX (model.onnx) plus PyTorch weights (model.pt) and manifest.json
  • Training data: fletxcher/khaos-pde_heat_diffusion_2d

Results

Measured on the held-out test split of the training dataset.

Metric Value
test_rel_l2 0.0961
n_test 150
test_ood_rel_l2 0.1130
baseline_zero_prediction_rel_l2 1.0000

Test error by time snapshot

Snapshot Relative L2
1 of 6 0.0925
2 of 6 0.0869
3 of 6 0.0887
4 of 6 0.0950
5 of 6 0.1020
6 of 6 0.1115

Training

{
  "architecture": "TimeConditionedFNO2d",
  "time": true,
  "log": [],
  "epochs": 100,
  "batch": 32,
  "lr": 0.001,
  "extra": [
    "test_ood"
  ],
  "resolution": [
    64,
    64
  ]
}

Best epoch 97, trained in 7.6 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

pip install khaos
khaos serve ./pde_heat_diffusion_2d

License

Trained on data released under CC BY 4.0 or generated by Khaos; released under CC BY 4.0.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support