mudhil commited on
Commit
bba3ac2
·
verified ·
1 Parent(s): eedce05

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +80 -0
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - downscaling
5
+ - diffusion
6
+ - climate
7
+ - corrdiff
8
+ - physicsnemo
9
+ - era5
10
+ - conus404
11
+ ---
12
+
13
+ # CorrDiff baseline (NVIDIA official code) — ERA5 → CONUS404, native resolution
14
+
15
+ **This is NOT the repo's in-house Latent CorrDiff model.** It is NVIDIA's own
16
+ `physicsnemo` CorrDiff implementation (`NVIDIA/physicsnemo`,
17
+ `examples/weather/corrdiff`), trained from scratch on this project's ERA5→CONUS404
18
+ cache, as an architecture-controlled baseline: same data, same normalization, same
19
+ held-out dates as the in-house latent model, different (pixel-space, two-stage
20
+ regression+diffusion) architecture.
21
+
22
+ The in-house model (DRN + VAE + latent diffusion) lives at
23
+ [`mudhil/era5-conus404-diffusion-downscaling`](https://huggingface.co/mudhil/era5-conus404-diffusion-downscaling).
24
+ This repo exists purely so the CorrDiff baseline used in that comparison has its own
25
+ durable, clearly-labeled copy, independent of cluster scratch storage.
26
+
27
+ ## Files
28
+
29
+ | File | physicsnemo model class | Stage | Training steps | Role |
30
+ |---|---|---|---|---|
31
+ | `CorrDiffRegressionUNet.0.5000003.mdlus` | `CorrDiffRegressionUNet` | Stage 1 (regression) | 5,000,003 | Deterministic mean predictor |
32
+ | `EDMPrecondSuperResolution.0.5000000.mdlus` | `EDMPrecondSuperResolution` | Stage 2 (diffusion) | 5,000,000 | Residual diffusion, conditioned on Stage 1's output |
33
+
34
+ Both are final/`_latest`-equivalent checkpoints from a single clean training run to
35
+ convergence on this project's 4×A100 (40GB) cluster — see
36
+ `results/corrdiff_comparison/README.md` in the source repo for the full per-job
37
+ GPU-hour accounting (≈795 GPU-hours total across both stages).
38
+
39
+ ## Data / variables
40
+
41
+ Trained on the same 6-variable ERA5 input / CONUS404 output pair as the in-house model:
42
+
43
+ - ERA5 inputs: `t2m, d2m, u10, v10, sp, tp` (+ 6 static invariant channels: terrain,
44
+ orographic variance, lat, lon, LAI, land-sea mask)
45
+ - CONUS404 outputs: `T2, TD2, U10, V10, PSFC, PREC_ACC_NC`
46
+ - `crop_size=448` (CorrDiff's own patcher then samples sub-patches internally during
47
+ training; disabled at inference — see "Inference note" below)
48
+ - Native CONUS404 grid resolution throughout (no VAE / latent-space compression,
49
+ unlike the in-house model this is benchmarked against)
50
+
51
+ ## Loading
52
+
53
+ Requires `nvidia-physicsnemo` and a clone of `NVIDIA/physicsnemo` for the
54
+ `examples/weather/corrdiff` scripts (pip's wheel doesn't ship the `examples/` tree):
55
+
56
+ ```bash
57
+ pip install nvidia-physicsnemo
58
+ git clone --depth 1 https://github.com/NVIDIA/physicsnemo.git
59
+ hf download mudhil/corrdiff-conus404-baseline --local-dir corrdiff_baseline_ckpts/
60
+ ```
61
+
62
+ Then point `generation.io.reg_ckpt_filename` / `res_ckpt_filename` in a
63
+ `physicsnemo/examples/weather/corrdiff` Hydra generation config at the downloaded
64
+ `.mdlus` files and run `generate.py`. A matching Hydra config and dataset adapter
65
+ (`Era5Conus404Dataset`) are in the source repo under `external/corrdiff/`.
66
+
67
+ ## Inference note (patch selection)
68
+
69
+ The dataset adapter used to produce this benchmark draws a **deterministic**,
70
+ pre-selected crop per date (via a shared manifest keyed by date, seeded RNG) rather
71
+ than CorrDiff's own default unseeded-random crop — needed so output can be compared
72
+ pixel-for-pixel against the in-house model's output on the same date/location. See
73
+ `external/corrdiff/dataset.py` and `scripts/select_shared_patches.py` in the source
74
+ repo if reusing this checkpoint for a similar matched comparison.
75
+
76
+ ## Source
77
+
78
+ https://github.com/NVIDIA/physicsnemo (Apache-2.0) — architecture and training code.
79
+ Weights trained independently on this project's own ERA5/CONUS404 data; not derived
80
+ from or identical to any NVIDIA-released checkpoint.