dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
tags: [plasma-physics, gyrokinetics, turbulence, scientific-data]
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Gyrokinetic adiabatic-electron turbulence (256 trajectories)
|
| 7 |
+
|
| 8 |
+
Adiabatic-electron gyrokinetic turbulence simulations (GKW): the full 5D distribution
|
| 9 |
+
function and electrostatic potentials at every timestep, in bfloat16. This is the
|
| 10 |
+
dataset used to train the GyroSwin neural surrogates.
|
| 11 |
+
|
| 12 |
+
- GyroSwin (surrogate model, source of this dataset): https://arxiv.org/abs/2510.07314
|
| 13 |
+
- PINC (physics-informed neural compression): https://arxiv.org/abs/2602.04758v2
|
| 14 |
+
- Code: https://github.com/ml-jku/neural-gyrokinetics
|
| 15 |
+
|
| 16 |
+
## Parameter scan
|
| 17 |
+
|
| 18 |
+
Cyclone Base Case (CBC) ion-temperature-gradient turbulence, scanned across the trajectories:
|
| 19 |
+
|
| 20 |
+
| Parameter | Range |
|
| 21 |
+
|---|---|
|
| 22 |
+
| ion temperature gradient | 3.71 – 11.97 |
|
| 23 |
+
| density gradient | 0.00 – 6.99 |
|
| 24 |
+
| magnetic shear (ŝ) | 0.51 – 5.00 |
|
| 25 |
+
| safety factor (q) | 1.55 – 8.99 |
|
| 26 |
+
|
| 27 |
+
Grid resolution `(nvpar, nmu, ns, nkx, nky) = (32, 8, 16, 85, 32)`, fixed across trajectories.
|
| 28 |
+
|
| 29 |
+
## Storage precision (bf16)
|
| 30 |
+
|
| 31 |
+
Data is stored in bfloat16. Reconstruction loss vs float32, over ~4900 random snapshots across all trajectories:
|
| 32 |
+
|
| 33 |
+
| quantity | mean | worst |
|
| 34 |
+
|---|---|---|
|
| 35 |
+
| 5D field PSNR ↑ | 85.5 | 72.7 |
|
| 36 |
+
| 5D field rel. L2 ↓ | 1.66e-3 | 1.69e-3 |
|
| 37 |
+
| heat-flux rel. L1 ↓ | 7.0e-6 | 2.1e-4 |
|
| 38 |
+
| potential rel. L1 ↓ | 2.2e-4 | 4.6e-3 |
|
| 39 |
+
|
| 40 |
+
## Structure
|
| 41 |
+
|
| 42 |
+
```
|
| 43 |
+
iteration_<n>_ifft_realpotens/
|
| 44 |
+
data/timestep_<t>.bf16.bin # 5D distribution function f
|
| 45 |
+
data/poten_<t>.bf16.bin # electrostatic potentials
|
| 46 |
+
metadata_light.npz # geometry, grid, spectra metadata
|
| 47 |
+
input.dat # GKW input deck
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## Usage
|
| 51 |
+
|
| 52 |
+
Download the dataset (the full set is large; grab **one trajectory** first to get started):
|
| 53 |
+
|
| 54 |
+
```python
|
| 55 |
+
from huggingface_hub import snapshot_download
|
| 56 |
+
snapshot_download(
|
| 57 |
+
"gerkone/cbc-gyroswin-256traj",
|
| 58 |
+
repo_type="dataset",
|
| 59 |
+
allow_patterns=["iteration_0_ifft_realpotens/*"], # just ONE trajectory (~12 GB); drop this line for the full set
|
| 60 |
+
local_dir="data/preprocessed_kvikio",
|
| 61 |
+
)
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
Train GyroSwin, from the [code repo](https://github.com/ml-jku/neural-gyrokinetics):
|
| 65 |
+
|
| 66 |
+
```bash
|
| 67 |
+
python main.py \
|
| 68 |
+
workflow=gyroswin dataset=cyclone_gyroswin model=multi \
|
| 69 |
+
dataset.path=data/preprocessed_kvikio \
|
| 70 |
+
+dataset.prefer_dtype=bf16 \
|
| 71 |
+
training.batch_size=1
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
Notes:
|
| 75 |
+
- **`+dataset.prefer_dtype=bf16` is required** — this dataset ships bf16 shards (`*.bf16.bin`); without it the loader looks for fp32 shards and errors.
|
| 76 |
+
- The training command uses the dataset config's **full** trajectory set — download all trajectories first (drop the `allow_patterns` filter above). To just smoke-test on the single pulled trajectory, add `dataset.training_trajectories=[iteration_0] dataset.validation_trajectories=[iteration_0]` (trajectory names omit the `_ifft_realpotens` suffix).
|
| 77 |
+
- `df` normalization is recomputed from the field data on first load (a stats cache is written next to the data); the precomputed stats are intentionally not shipped.
|
| 78 |
+
- Both training and evaluation run directly on the bf16 shards (`prefer_dtype=bf16` applies to the validation loader too).
|