Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularize wxc downstream tasks: downscaling, gravity #201

Open
romeokienzler opened this issue Oct 24, 2024 · 1 comment
Open

Modularize wxc downstream tasks: downscaling, gravity #201

romeokienzler opened this issue Oct 24, 2024 · 1 comment
Assignees
Labels

Comments

@romeokienzler
Copy link
Collaborator

from the conversation with @biancazadrozny and Johannes Schmude:

  • Enable more complex embedding networks (convolutions; optionally also pixel shuffle)
  • Enable more complex heads (convolutions; optionally also pixel shuffle)
  • Optionally skip connections
  • Optionally LoRA.

Image
Image
Image

When we are referring to the "backbone", we are referring to these two objects:
Encoder: https://github.com/NASA-IMPACT/Prithvi-WxC/blob/f9002006b413a3ffa968dc3f3edbe56afe81954b/PrithviWxC/model.py#L910
Decoder: https://github.com/NASA-IMPACT/Prithvi-WxC/blob/f9002006b413a3ffa968dc3f3edbe56afe81954b/PrithviWxC/model.py#L932

Downscaling:

The model is here: https://github.com/IBM/granite-wxc/blob/4032b17c31cf91bd44825a48dc2aa61f850623eb/granitewxc/models/finetune_model.py#L124
The backbone is here: https://github.com/IBM/granite-wxc/blob/4032b17c31cf91bd44825a48dc2aa61f850623eb/granitewxc/models/finetune_model.py#L45
If you read the forward function (https://github.com/IBM/granite-wxc/blob/4032b17c31cf91bd44825a48dc2aa61f850623eb/granitewxc/models/finetune_model.py#L248), you will find upscale and conv_after_backbone. I think those are the convolutions before/after the model.

Gravity waves:

Model is here: https://github.com/NASA-IMPACT/gravity-wave-finetuning/blob/b296edc4e6881cd32a5eab2f2cefa566acdff744/gravity_wave_model.py#L177
The U-Net seems to be defined via the encoder and decoder properties. I.e. the model is encoder-backbone-decoder, where the backbone is the pretrained part. (The naming is confusing). See here
Encoder: https://github.com/NASA-IMPACT/gravity-wave-finetuning/blob/b296edc4e6881cd32a5eab2f2cefa566acdff744/gravity_wave_model.py#L305
Decoder: https://github.com/NASA-IMPACT/gravity-wave-finetuning/blob/b296edc4e6881cd32a5eab2f2cefa566acdff744/gravity_wave_model.py#L325
Since this is a U-Net, only enc4 hits the foundation model ...

@romeokienzler romeokienzler self-assigned this Oct 24, 2024
@biancazadrozny
Copy link
Collaborator

@Joao-L-S-Almeida see above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants