WRF-JAX v1.1.28: a differentiable regional weather model with fully coupled physics, numerically consistent with WRF and matching 128-process CPU performance on a single GPU
Abstract. Porting a regional weather model in its entirety to a graphics processing unit (GPU) requires complete implementation of the dynamical core and all physical processes, and improved computational efficiency. This paper introduces WRF-JAX v1.1.28, a JAX reimplementation of the dynamical core of the Weather Research and Forecasting (WRF) model version 4.5 and the complete CONUS physics suite. We conducted 27 ten-day integrations across nine regions and three initialization months, with a horizontal grid spacing of 3 km and 700×700 grid points, and established two numerical-difference baselines. The full-field RMSEs of wind, temperature, and moisture in WRF-JAX and the WRF internal numerical-difference baseline showed similar long-term evolution: the medians of the case-wise RMSE ratios were 1.05–1.07 at 24 h and 1.02–1.04 at 240 h. The mean sustained integration time on a single NVIDIA A800 was 175.0 s per model hour, corresponding to speedups of 1.17 and 1.05 relative to 128-process single-precision WRF runs compiled with gfortran and ifort, respectively. The experiments further backpropagated through 100 steps with full physics coupling, obtaining all three-dimensional gradient components of the initial zonal wind, meridional wind, dry potential temperature perturbation, and water vapour mixing ratio (UVTQ) fields in a single calculation. The full-field Gaussian random-direction evaluation used 500 directions and three perturbation amplitudes per variable; the median relative differences in directional derivatives for zonal wind, meridional wind, dry potential temperature, and water vapour were 2.58–5.22 %, 2.94–6.49 %, 7.86–10.06 %, and 3.51–3.91 %, respectively. WRF-JAX combines fully coupled forecasting with differentiation across time steps, providing computable approximate gradients for regional weather simulation and end-to-end optimization, with accuracy comparable to that of the original WRF model and a forward integration speed equivalent to that of the original WRF model running on at least 128 cores.
I thank the authors for this impressive work. The WRF internal-difference baseline is a methodological contribution the field has needed, and the numerical consistency WRF-JAX achieves exceeds any prior Python re-implementation. I have two questions and one suggestion.
1. Efficiency breakdown: dynamics vs. physics. In WRF-JAX, the dynamical core is expressed as domain-wide array operations, while the physics retains its column structure with horizontal batching. Relative to the original WRF's MPI decomposition, do these two components benefit differently from GPU execution? A breakdown of the sustained integration time by component (dynamics, radiation, remaining physics) would clarify where the speedup mainly comes from and how much optimization headroom remains.
2. Observation-based verification of forecast skill. The consistency evaluation compares WRF-JAX with WRF, yet the original WRF itself carries systematic errors relative to observations. Section 5.2 notes that forecasting capability could eventually be evaluated against actual observations rather than against a WRF with inherent biases — have the authors attempted, or do they plan, such observation-based verification? For example, comparing the six typhoon tracks in Fig. 8 against best-track data (e.g., IBTrACS) would quantify the actual forecast capability of both implementations and further support the conclusion that WRF-JAX possesses practical forecasting ability.
3. Interpreting the cross-paper comparison in Fig. 5. The two samples differ beyond levels and physics: PyWRF covers eight targeted heavy-precipitation events over East China against WRF 3.9.1.1 + WSM6, while WRF-JAX covers 27 regionally and seasonally sampled cases against WRF 4.5 + Thompson; divergence from the reference grows with convective activity, and qr MAE scales with sample rain content and the microphysics scheme. Moreover, PyWRF's differences stem largely from a deliberate redesign of the WSM6 sedimentation algorithm evaluated at identical double precision (Chu et al., 2026, Section 2.1.1) — a different class from WRF-JAX's mixed-precision and reduction-order differences. Noting this context in Section 4.1.2 or the figure caption would prevent over-interpretation of the ratios, and adding a few targeted convective cases would only strengthen the claim.
I look forward to following WRF-JAX's development.