Update README.md
Browse files
README.md
CHANGED
|
@@ -14,48 +14,6 @@ pipeline_tag: other
|
|
| 14 |
|
| 15 |
StepNets one-step weather backbone: variable-aware embedding and a two-stage trunk, 69 ERA5-like variables, **1.5° grid (121×240 lat×lon in the paper)**.
|
| 16 |
|
| 17 |
-
## Loading
|
| 18 |
-
|
| 19 |
-
Weights: `model.safetensors`. Hyperparameters: `config.json` (`init_args`).
|
| 20 |
-
Install the small **`sonny`** package (model code only; [github.com/jmj2316/Sonny](https://github.com/jmj2316/Sonny)) or the full `stormer` research tree if you already use it.
|
| 21 |
-
|
| 22 |
-
```python
|
| 23 |
-
from sonny import load_sonny_from_hub
|
| 24 |
-
|
| 25 |
-
model = load_sonny_from_hub("Francismj/sonny", map_location="cuda")
|
| 26 |
-
model.eval()
|
| 27 |
-
```
|
| 28 |
-
|
| 29 |
-
Or download the files and build `networks.sonny.Sonny(**init_args)` then `load_state_dict` (see `class_qualname` in `config.json`).
|
| 30 |
-
|
| 31 |
-
## Google Colab
|
| 32 |
-
|
| 33 |
-
Install `sonny` (clone or zip of the repo with `pyproject.toml`, packages `sonny/` and `networks/`).
|
| 34 |
-
|
| 35 |
-
```text
|
| 36 |
-
!pip install -q huggingface_hub safetensors timm pyyaml
|
| 37 |
-
!pip install -q xformers
|
| 38 |
-
!git clone https://github.com/jmj2316/Sonny.git sonny_src
|
| 39 |
-
%cd sonny_src
|
| 40 |
-
!pip install -q -e .
|
| 41 |
-
%cd /content
|
| 42 |
-
```
|
| 43 |
-
|
| 44 |
-
```python
|
| 45 |
-
from sonny import load_sonny_from_hub
|
| 46 |
-
|
| 47 |
-
model = load_sonny_from_hub("Francismj/sonny", map_location="cuda")
|
| 48 |
-
model.eval()
|
| 49 |
-
```
|
| 50 |
-
|
| 51 |
-
Private code: zip the `sonny` repo → upload in Colab → `pip install -e /content/unzipped_folder`.
|
| 52 |
-
|
| 53 |
-
## Files
|
| 54 |
-
|
| 55 |
-
- `config.json` — hyperparameters and variable list
|
| 56 |
-
- `model.safetensors` — EMA ``ema_model_state_dict``
|
| 57 |
-
- `normalization_note.txt` — reminder to use your local ``normalization_constants`` from the training repo for real inference
|
| 58 |
-
|
| 59 |
## Citation
|
| 60 |
|
| 61 |
If you use this checkpoint or architecture, cite:
|
|
|
|
| 14 |
|
| 15 |
StepNets one-step weather backbone: variable-aware embedding and a two-stage trunk, 69 ERA5-like variables, **1.5° grid (121×240 lat×lon in the paper)**.
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
## Citation
|
| 18 |
|
| 19 |
If you use this checkpoint or architecture, cite:
|