Open
Conversation
…andom and healpix masking. Open issues with _coords_local, centroids and probably other things.
TODO: - Forecast still needs to be adapted - Some more cleanup of variable naming, return values etc
…e. Unclear how to deal with it with MTM
* initial commit [draft]
* adapt noise conditioner to make it closer to DiT
* adapt dimensionalities – code runs with default config
* lint
* fix: add conditional prediction mode handling
This commit resolves architectural incompatibilities when integrating
diffusion-based forecast engines:
1. FSDP Sharding: DiffusionForecastEngine wraps ForecastingEngine
as `self.net`, but trainer code assumed direct `fe_blocks` access. Fixed by:
- Adding fe_diffusion_model conditional check in init_model_and_shard()
- Routing to model.forecast_engine.net.fe_blocks for diffusion mode
2. Model Initialization: Reordered ForecastingEngine creation to handle both
standard and diffusion-wrapped variants with proper fallback.
3. Target Format Handling: Autoencoder mode uses different target
structure than diffusion mode. Added conditional formatting:
- Diffusion: targets = {"targets": [targets], "aux_outputs": aux}
- Autoencoder: targets = {"physical": batch[0]}
4. Config Updates: added file config/diffusion_config.yml for diffusion
model config
* added forecast engine argument
* removed unecessary logging
* reverting back to the previous config
* replaced getattr by get
* modification of forecasting engine initialization
---------
Co-authored-by: moritzhauschulz <moritz.hauschulz@gmail.com>
Co-authored-by: Matthias Karlbauer <matthias.karlbauer@ecmwf.int>
…herGenerator into mk/mh/1843_viz_denoised_image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Diffusion development branch
Issue Number
Closes #944
Checklist before asking for review
./scripts/actions.sh lint./scripts/actions.sh unit-test./scripts/actions.sh integration-testlaunch-slurm.py --time 60