[来源关键摘录] Google DeepMind 官方气象模型开源代码库(原 graphcast 仓库已并入),公开 GraphCast、GenCast 与 WeatherNext 2 推理代码。
[正文前段节选] Skip to content
Navigation Menu
Appearance settings
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
Repository navigation
NotificationsYou must be signed in to change notification settings
Fork998 (998)
Star7.8k (7.8k)You must be signed in to star a repository
No description or website provided.
weatherweather-forecast
Apache-2.0 license
Contributing
Custom properties
103 watching
Report repository
BranchesTags
Open more actions menu
Latest commit
Folders and files
Last commit message
Last commit date
CONTRIBUTING.md
View all files
Repository files navigation
WeatherNext 2
This repo contains the code for WeatherNext 2 (WN2), the global, medium-range
atmospheric and cyclone forecasting model developed by Google DeepMind and
Google Research.
It also contains code for prior generation models
Accessing Forecast Data Feeds
If you are interested in directly accessing daily data feeds of WN2 model
outputs rather than running the model yourself, we provide them across multiple
Google Cloud
(including Earth Engine, BigQuery, and Vertex AI).
WeatherLab (including cyclone tracks).
OpenMeteo (including an API and interactive builder).
Model Guide & Documentation: Google Developers WeatherNext Guide
WeatherNext Cyclones Paper: Operational tropical cyclone forecasting
FGN/WN2 Technical Report: Skillful joint probabilistic weather
forecasting from marginals
(arXiv:2506.10772)
WeatherNext 2 Blog Post: WeatherNext 2: Our most advanced weather forecasting model
WeatherNext Cyclones Blog Post: WeatherNext: AI model achieves breakthrough in forecasting cyclones
Older Models
This repository serves as the primary home for the WeatherNext family models.
Alongside WN2, this repository also hosts the code and documentation for our
legacy and specialized models:
WeatherNext Graph: Deterministic
medium-range weather forecasting using graph neural networks. Published as
WeatherNext Gen: Diffusion-based ensemble
forecasting for medium-range weather. Published as GenCast.
Provided Pretrained Models
This repository provides code to run the different versions of WeatherNext 2 and
WeatherNext Cyclones. The only difference between them is that WN2 can also
predict 100m wind. In particular, WN2 also forecasts cyclones with the exact
same algorithm as WN Cyclones. Their weights are different due to independent
training runs.
WeatherNext2_<2025 (Used Operationally): 0.25° resolution (~30km).
Fine-tuned on ECMWF HRES data and designed to be initialized directly from
operational HRES initial conditions rather than ERA5 reanalysis. Trained on
data through 2024. Corresponding weights files:
WeatherNext2_<2025_model{1,2,3,4}.npz.
WeatherNext Cyclones - models which reproduce the results in paper
WeatherNextCyclones_<2025 (Used Operationally): 0.25° resolution. The
model that ran live during the 2025 Atlantic hurricane season, publicly
referred to as FNV3 (NHC's postprocessed version was called GDMI). Trained
on data through 2024. The paper appendix contains a partial evaluation of
2025 in NHC basins for this model checkpoint, and how the tracker
improvement in September 2025 improved results. Corresponding weights files:
WeatherNextCyclones_<2025_model{1,2,3,4}.npz.
WeatherNextCyclones_<2024: 0.25° resolution. Reproduces results from the
paper on 2024. Trained on data through 2023. Corresponding weights files:
WeatherNextCyclones_<2024_model{1,2,3,4}.npz.
WeatherNextCyclones_<2023: 0.25° resolution. Reproduces results from the
paper on 2023. Trained on data through 2022. Corresponding weights files:
WeatherNextCyclones_<2023_model{1,2,3,4}.npz.
WeatherNext Cyclones Mini
WeatherNextCyclones_Mini_<2024: 1° resolution. A lightweight version
suitable for lower memory and compute constraints (e.g., local testing or
single TPUs or GPUs). Not expected to match the performance of the larger
versions. Forecasts the same things as WeatherNext2_<2025, including
cyclones. Trained on data through 2023. Corresponding weights file:
WeatherNextCyclones_Mini_<2024.npz.
WeatherNextCyclones_Mini_<2023: As above, but only trained on data through
2022. Corresponding weights file: WeatherNextCyclones_Mini_<2023.npz.
Evaluation results for WeatherNextCyclones_Mini can be found in the appendix
WeatherNext Cyclones Paper.
Quick Start Guide
The easiest way to get started with WeatherNext 2 is by running our interactive
Colab Notebook, which can be opened from
Colaboratory.
This notebook defaults to WeatherNext Cyclones Mini, which we recommend running
using the v5e-1 runtime, available for free as a Colab runtime. However, the
notebook can also be used to run the other models enumerated above (but these
will require a v5p accelerator).
In general, we recommend running WeatherNext 2 on TPU where possible, since its
implementation has been optimised for it. However, if choosing to run on GPU,
the attention implementation must be switched, as shown in the demo notebook.
The non-Mini models require H100 for sufficient VRAM. The Mini models should
manage inference on a P100.
Pre-trained weights and sample data are available on our Google Cloud
Inside the notebook, you will learn how to:
Automatically load the required model weights from our storage bucket.
Load initial state weather data (e.g., HRES initial conditions).
Initialize the WN2 (FGN) architecture.
Run auto-regressive rollout steps to generate a forecast prediction.
Visualize the outputs (e.g., temperature, wind speed, geopotential height).
Run the direct tracker on model outputs to obtain track data for cyclones.
Compute the training loss on model predictions and targets, and take a
gradient step.
Installation
This is research code provided as-is for the purpose of running and
experimenting with the published models. There are no guarantees of API
stability and future updates may introduce breaking changes without notice. We
recommend pinning to a specific release.
pip install git+https://github.com/google-deepmind/weathernext.git@v0.3.0
Model Weights
To run WeatherNext 2 or WeatherNext Cyclones, you will need to download the
pre-trained model weights. You can access the weights on Google Cloud
Shared Utilities
The utils/ directory contains shared libraries used by multiple WeatherNext
models, providing common infrastructure for autoregressive rollouts, input
normalization, graph building blocks, loss computation, and JAX-compatible
xarray utilities. See the per-model READMEs for model-specific code.
Training Data
Full model training requires downloading the
dataset from ECMWF, best accessed as Zarr via
WeatherBench2.
Operational fine-tuning data is available via WeatherBench2's HRES
These datasets may be governed by separate terms and conditions. Check that you
can comply with any applicable restrictions before use.
Copyright 2026 Google LLC.
The Colab notebooks and the associated code are licensed under the Apache
License, Version 2.0 (Apache 2.0); you may not use these materials except in
compliance with the Apache 2.0 license. You may obtain a copy of the License at:
https://www.apache.org/licenses/LICENSE-2.0.
All other materials are licensed under the Creative Commons Attribution 4.0
International (CC BY 4.0). You may obtain a copy of the License at:
https://creativecommons.org/licenses/by/4.0/.
Unless required by applicable law or agreed to in writing, all software and
materials distributed here under the Apache 2.0 or CC-BY 4.0 licenses are
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the licenses for the specific language governing
permissions and limitations under those licenses.
This is not an officially supported Google product.
[...内容已截断,完整版请查看原文或 Wayback 快照]