GyroFlow
generative checkpoints for gyrokinetics
2 min readupdated
A temporary release of weights for the GyroFlow scientific model, built for simulating plasma turbulence and calculating heat flux. It includes checkpoints for an autoencoder (a model that compresses data into a compact representation) and a flow-matching diffusion transformer (DiT — an architecture for generating states along trajectories), trained as part of the neural-gyrokinetics project by ml-jku. The repository lets you reproduce heat flux estimates on pre-computed trajectories without downloading the full training dataset. Ideal for researchers in computational physics and scientific machine learning.
Key features
- Two-stage pipeline: a trained autoencoder (400 epochs) and a flow-matching DiT (120 epochs) in PyTorch (
.pth) format. - Includes the original training configs (
config.yaml), generation parameters (generate_gyroflow.yaml), and training set normalization statistics. - To run quality evaluations, you only need to download the lightweight trajectory metadata from the
cbc-gyroswin-256trajdataset.
What you can do
- Reproduce time-averaged heat flux calculations (Qbar RMSE) across 31 in-distribution (ID) test trajectories as well as out-of-distribution (OOD) scenarios.
- Use the pre-trained weights and normalization statistics as a starting point for ML experiments in gyrokinetic modeling based on the
ml-jku/neural-gyrokineticsrepository.
Example
from huggingface_hub import snapshot_download
snapshot_download(
"gerkone/cbc-gyroswin-256traj",
repo_type="dataset",
allow_patterns=["id/*/metadata_light.npz", "ood/*/metadata_light.npz"],
local_dir="data/preprocessed_kvikio"
)
Read more
DetailsExpected Qbar RMSE on the 31 ID trajectories is 19.0 (Table 1 from the paper), and around 14 on
ood_iteration_0-4.Sampling parameters: 128 samples, 15 Euler steps,
latent_scale 0.0478053.Running the evaluation script requires PR #10 from the
ml-jku/neural-gyrokinetics repository; a full release is expected later.









Comments