What It Takes to Run a Spectral Wave Model on One GPU
A full 8-day Atlantic wave forecast, every day, on a single graphics card rather than a supercomputer.
Why this is unusual
Ocean wave forecasts have historically been produced on large compute clusters. Even when the model code is published (NOAA’s WAVEWATCH III is), running it operationally at basin scale has meant a large computer and a team. Our model was designed the other way from the start: PyTorch on a single GPU. Every spectral operation — moving waves across the grid, bending them over depth changes, wind input, dissipation, and the four-wave energy exchange — is a batched operation on the whole grid at once, and the most expensive part (the Mermaid-GSK wave–wave transfer) runs as a custom GPU kernel.
What it takes
Hardware
| Use | Hardware | What we measured |
|---|---|---|
| Daily forecast | One NVIDIA A100 (40 GB) on a cloud GPU service (Modal) | 8.2–8.7 min for all three grids in November 2026 (release v136), peak GPU memory 6.9 GB; v137 is expected to take about 45% longer |
| Physics tests | The same A100s | A 0.25° Atlantic-only 8-day run takes about 0.5–0.9 minutes per simulated day; 12 such runs cost $2.79 in November 2026 |
| Development | A desktop NVIDIA GPU and an Apple-silicon laptop | Fine for short runs and diagnostics; long or full-resolution runs go to the cloud |
Memory is rarely the limit: the whole nested run fits in a fraction of a data-centre GPU. Speed is set mostly by the number of ocean cells, the time step, and the wave–wave transfer.
Data
- Wind forecast: ECMWF’s 10 m wind forecast (its 00 UTC run) drives the live forecast. Physics tests use ECMWF’s ERA5 reanalysis winds instead (reconstructed historical winds that combine a model with observations), so that a wrong wind forecast does not get blamed on the wave physics.
- A starting sea state and boundary: gridded wave fields from an operational WAM-family model (through Copernicus Marine and Open-Meteo).
- Bathymetry (sea-floor depth): NOAA’s ETOPO global relief, plus fine-scale descriptions of small islands and shallow banks built from it.
- Truth for scoring: NOAA NDBC buoys and satellite altimeters, radar satellites that measure wave height from space (and, while it was available, the CFOSAT SWIM instrument for wave period).
Software
- Python and PyTorch, running on NVIDIA CUDA or Apple’s Metal (MPS) backend; a custom Triton kernel for the wave–wave transfer.
- NumPy, xarray and netCDF for data, and a configuration file that defines every physics setting of a run, so a run can be repeated exactly.
The daily loop
- Download the latest wind forecast and wave fields, and check they cover the whole domain. A run with missing input stops rather than filling gaps.
- Start from the previous run’s sea state where possible, otherwise build the wave spectrum (energy by period and direction) in each grid cell from the downloaded wave fields.
- Step the waves forward in time on the three nested grids (solving the wave-energy balance known as the action balance equation): first a 24-hour hindcast, a re-run of the past day that brings the sea state up to the present, then the 7-day forecast.
- Score and publish: compare with buoys, satellites, WAM and WAVEWATCH III, and publish the forecast, the maps and the scores to this site.
What is public, and what is not
- Public: the forecast itself, the Atlantic maps, the scores on How good is the forecast? and Model validation, every change with its evidence in the model notes, and the method as of spring 2026 in the published paper.
- Not public: the model’s source code and its run configuration. If you are a researcher interested in the method, get in touch.
Why it matters
- Iteration speed. Because a full 8-day Atlantic test costs cents and minutes, a physics idea can be tested on several past periods against satellites and buoys in an afternoon. Most of the changes in the model notes went through dozens of such runs.
- Local focus. The same budget that a single global run would take buys fine grids where they matter for one coast, such as the banks and islands north of Cabarete.
- Transparency of results. We cannot publish the code, but we can publish how good the forecast is, every day, including where it is worse than the big models.
About the name
KEWL stands for Kinetic Energy Wave Limiter, our package of “source terms”, the formulas for how wind adds energy to waves and how breaking and friction remove it. Mermaid is the family name of our wave–wave transfer; the current version is Mermaid-GSK. AtlanticWave is the model’s working name, and “KEWL Mermaid” is the forecast service built on it.
Tools and references
- PyTorch — the tensor framework everything runs on.
- Modal — the cloud GPU service that runs the daily forecast.
- Open-Meteo Marine API and Copernicus Marine — wave and wind data.
- NOAA ETOPO — global bathymetry.
- NOAA NDBC — buoy observations.