NanoCast-40M / config.json
jiteshkprasad's picture
PyTorch weights (safetensors, EMA float32) and a fine-tuning section
84d53d9 verified
Raw History Blame Contribute Delete
5.91 kB
{
"model_type": "nanocast",
"name": "NanoCast-40M",
"version": "1.0",
"format": "onnx",
"model_file": "nanocast_40m_fp16.onnx",
"stats_file": "stats.json",
"static_file": "static_240x121.bin",
"dtype": "float16",
"opset": 18,
"parameters": 39863341,
"architecture": {
"type": "spherical U-Net with a global attention bottleneck, residual tendency head",
"dims": [
64,
160,
320,
512
],
"blocks_per_stage": [
1,
2,
3,
2
],
"attention_layers": 6,
"attention_grid": [
16,
30
],
"norm": "BatchNorm (fused at export)"
},
"grid": {
"type": "equiangular, poles included (WeatherBench 2 240x121)",
"height": 121,
"width": 240,
"resolution_deg": 1.5,
"latitude": "row 0 = -90, row 120 = +90, step 1.5 (south to north)",
"longitude": "column 0 = 0E, step 1.5 eastward to 358.5"
},
"pressure_levels_hpa": [
1000,
925,
850,
700,
500,
300,
200,
100
],
"n_prognostic": 44,
"prognostic_channels": [
"geopotential_1000",
"geopotential_925",
"geopotential_850",
"geopotential_700",
"geopotential_500",
"geopotential_300",
"geopotential_200",
"geopotential_100",
"temperature_1000",
"temperature_925",
"temperature_850",
"temperature_700",
"temperature_500",
"temperature_300",
"temperature_200",
"temperature_100",
"u_component_of_wind_1000",
"u_component_of_wind_925",
"u_component_of_wind_850",
"u_component_of_wind_700",
"u_component_of_wind_500",
"u_component_of_wind_300",
"u_component_of_wind_200",
"u_component_of_wind_100",
"v_component_of_wind_1000",
"v_component_of_wind_925",
"v_component_of_wind_850",
"v_component_of_wind_700",
"v_component_of_wind_500",
"v_component_of_wind_300",
"v_component_of_wind_200",
"v_component_of_wind_100",
"specific_humidity_1000",
"specific_humidity_925",
"specific_humidity_850",
"specific_humidity_700",
"specific_humidity_500",
"specific_humidity_300",
"specific_humidity_200",
"specific_humidity_100",
"2m_temperature",
"10m_u_component_of_wind",
"10m_v_component_of_wind",
"mean_sea_level_pressure"
],
"storage": {
"note": "physical value = stored / scale + offset; the stats and the state files use stored units",
"offset": [
1000.0,
7500.0,
14500.0,
30000.0,
55000.0,
90000.0,
118000.0,
160000.0,
273.15,
273.15,
273.15,
273.15,
273.15,
273.15,
273.15,
273.15,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
273.15,
0.0,
0.0,
101325.0
],
"scale": [
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1000.0,
1000.0,
1000.0,
1000.0,
1000.0,
1000.0,
1000.0,
1000.0,
1.0,
1.0,
1.0,
1.0
],
"units_after_storage": [
"m2/s2",
"m2/s2",
"m2/s2",
"m2/s2",
"m2/s2",
"m2/s2",
"m2/s2",
"m2/s2",
"degC",
"degC",
"degC",
"degC",
"degC",
"degC",
"degC",
"degC",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"m/s",
"g/kg",
"g/kg",
"g/kg",
"g/kg",
"g/kg",
"g/kg",
"g/kg",
"g/kg",
"degC",
"m/s",
"m/s",
"Pa"
]
},
"normalization": "x_norm = (stored - stats.mean[c]) / stats.std[c] per channel; outputs are in the same normalized space",
"input_steps": 2,
"time_step_hours": 6,
"forecast_steps": 40,
"forecast_hours": 240,
"forcings": {
"channels": [
"orography (normalized)",
"land-sea mask",
"sin(latitude)",
"cos(latitude)",
"TOA solar cos(zenith) at t",
"TOA solar cos(zenith) at t+6h"
],
"static_file_layout": "float32 little-endian [2, 121, 240]: orography (normalized), land-sea mask",
"solar": "NOAA/Spencer analytic formula; see examples/forecast.py or web/physics.js in the GitHub repository"
},
"inputs": {
"x_prog": {
"dtype": "float16",
"shape": [
1,
44,
121,
240
],
"note": "normalized state at time t"
},
"x_prev": {
"dtype": "float16",
"shape": [
1,
44,
121,
240
],
"note": "normalized state at time t-6h"
},
"x_forc": {
"dtype": "float16",
"shape": [
1,
6,
121,
240
],
"note": "forcings, in the order above"
}
},
"outputs": {
"next_prog": {
"dtype": "float16",
"shape": [
1,
44,
121,
240
],
"note": "normalized state at t+6h; feed back as x_prog (and the old x_prog as x_prev)"
},
"diag": {
"dtype": "float16",
"shape": [
1,
1,
121,
240
],
"note": "6-hour precipitation in log1p(mm); mm = expm1(clip(diag, 0, 8))"
}
},
"state_file_layout": "raw float16 little-endian [2, 44, 121, 240] in stored units: the state at t-6h, then at t (5,111,040 bytes)",
"samples": [
{
"name": "Hurricane Ian, start 2022-09-25 00:00 UTC (ERA5)",
"file": "samples/ian_2022-09-25T00Z.bin",
"timestamp_s": 1664064000,
"truth_file": "samples/ian_2022-09-25T00Z_era5_truth.bin",
"truth_layout": "float16 [5 leads (+24, +72, +120, +168, +240 h), 4 fields (2 m temperature degC, 10 m wind speed m/s, sea-level pressure hPa, Z500 dam), 121, 240]"
}
],
"training_data": "ERA5 via WeatherBench 2, 1.5 degrees, 1979-2019",
"license": "apache-2.0",
"by": "Udgam Labs",
"pytorch_file": "nanocast_40m.safetensors",
"pytorch": {
"file": "nanocast_40m.safetensors",
"dtype": "float32",
"weights": "EMA",
"build": "build_model(\"g2_40m_v2\", 121, 240, norm_type=\"bn\", c_prog=44, two_step=True) in src/model.py (github.com/udgamlabs/nanocast)"
}
}