use the target random number for also source random number - #2733
Merged
Conversation
Collaborator
|
@kctezcan : if this problem also exists on |
Contributor
Author
do you mean in |
Collaborator
Yes |
Contributor
|
Do we have a problem here for forcing streams which don't have a target mask and hence no random number? Maybe in this case my PR 2737 is complementary because a target mask is built even if target channels are empty. |
Jubeku
merged commit Aug 7, 2026
c2b5078
into
ecmwf:jk/develop-ssl-diffusion-v1/fix-streams
1 check passed
Jubeku
added a commit
that referenced
this pull request
Aug 7, 2026
* fix fsdp error from unused register token module * default to ddp_static_graph: False and fix num_params_q_aux * get random noise from either ERA5 or ERA5_in * fix fsdp and forcing stream target masks * fix checkpoint loading for unsharded target encoder * use the target random number for also source random number (#2733) --------- Co-authored-by: kctezcan <[email protected]>
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
Problem: the random number used to make the noise signal for the diffusion forward process is coming from the source random draw. the random number for calculating the loss weight for diffusion is coming from the target random draw.
Fix: take the arget random number also for the source.
Remark: for this to work, the
target_inputin the config has to be set:Issue Number
No issue
Is this PR a draft? Mark it as draft.
Checklist before asking for review
./scripts/actions.sh lint./scripts/actions.sh unit-test./scripts/actions.sh integration-testlaunch-slurm.py --time 60