Quick Start¶
Run in Google Colab¶
The Colab quickstart installs the latest stable Samudra release from PyPI and walks through a complete, YAML-configured training run on a free-tier GPU. It writes and displays an editable configuration, trains and validates Samudra 2 on public 2° OM4 data with live batch progress, saves a checkpoint, and plots one held-out sea-surface-height prediction.
PyPI installation, public S3 streaming, and a Colab GPU provide a browser-based workflow from configuration through visualization. The same editable YAML is a starting point for longer runs, more variables, and higher-resolution experiments.
Training a Model¶
Training is configured via YAML files. To launch a training run with the default Samudra configuration:
The samudra-multi model supports multi-scale training across different resolutions:
Data Paths¶
Training configs reference OM4 ocean model data stored in Zarr format. The bundled
samudra_om4/train.yaml includes data/om4.yaml; point it at your own data. In a
checkout, edit the preset in place:
# src/samudra/configs/data/om4.yaml
data:
path: "s3://<your-bucket>/path/to/OM4.zarr" # Update with your data path
Without a checkout, copy a preset out and edit it, or override paths on the command
line (see below). See src/samudra/configs/data/ for example data configurations at
1°, 1/2°, and 1/4° resolutions.
Evaluation¶
Run a long autoregressive rollout against ground-truth data:
This produces metrics (RMSE, bias, anomaly correlation) and writes predicted fields to a Zarr output file.
Visualization¶
Generate maps, time series, and probability density plots from evaluation outputs:
Configuration¶
All commands accept --help for available options:
You can override any config key from the command line:
See Configuration for details on the configuration system.