OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

METNET3 Pytorch

METNET3 Pytorch is a Python and PyTorch implementation of the MetNet-3 neural weather forecasting model, combining a U-Net architecture with a vision transformer. Its README provides example code for model construction, training with weather inputs and targets, and prediction.

Independent OpenViST project profile, based on linked sources.

METNET3 Pytorch — Research experiments involving a U-Net and vision-transformer weather model
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want a code starting point for MetNet-3 experiments and can prepare the weather tensors required by the model. The README covers training and post-training prediction calls, not an end-user forecasting interface.

Who it is for

  • Researchers studying neural weather forecasting or MetNet-3.
  • Developers prototyping applications or demos that use weather-model predictions.

Documented uses

  • Construct a MetNet-3 model with configurable lead times, channels, target bins and HRRR normalization.
  • Pass weather inputs and targets to calculate training loss and backpropagate.
  • Request surface, HRRR and precipitation predictions after training.
Before you choose

Requirements & limits

The project is a public GitHub repository. Its repository metadata lists an MIT license.

  • The README expects structured weather inputs and targets with specified channel and spatial dimensions.
  • HRRR normalization can use synchronized batch normalization or pre-calculated channel statistics.
  • The README lists topological embedding as a TODO.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install the package and inspect the model workflow

Set up the package and follow the README’s example structure for model construction, training inputs and prediction.

Before you start

  • Python environment with pip
  • PyTorch, imported as torch in the README example
  • Prepared lead times and weather input tensors matching the example’s model configuration

Steps

  1. Install the package with the command below.

    Documented command
    pip install metnet3-pytorch
  2. Import torch and MetNet3 from metnet3_pytorch.

  3. Construct MetNet3 with configuration values for lead times, spatial size, channels, target bins and HRRR normalization.

  4. For the documented training workflow, pass lead times, the four weather input tensors and precipitation, surface and HRRR targets to the model, then use the returned total loss for backpropagation.

  5. After training, call eval() and pass lead times and the weather input tensors to obtain surface, HRRR and precipitation predictions.

Expected outcome

A package installation path and example sequence for training the model and requesting its prediction outputs.

Guide limitations

  • The README’s code shows example tensor shapes and values; it does not provide a data-preparation workflow.
  • The prediction example is described as occurring after training and does not document pretrained weights.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
28 November 2026
Original website title
lucidrains/metnet3-pytorch · Official homepage title · retained in its source language