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

Chore fill anemoi models #1

Merged
merged 32 commits into from
May 30, 2024
Merged

Chore fill anemoi models #1

merged 32 commits into from
May 30, 2024

Conversation

theissenhelen
Copy link
Collaborator

Initial implementation of anemoi-models components including the following modules:

  • interface
  • models
  • distributed
  • layers
  • preprocessing

theissenhelen and others added 27 commits May 28, 2024 16:20
Allows Distributed Data Parallel

Co-authored-by: Jesper Dramsch <[email protected]>
Co-authored-by: Simon Lang <[email protected]>
Co-authored-by: Matthew Chantry <[email protected]>
Co-authored-by: Mihai Alexe <[email protected]>
Co-authored-by: Jesper Dramsch <[email protected]>
Encompasses encoder, processor and decoder structure.

Co-authored-by: Jesper Dramsch <[email protected]>
Co-authored-by: Matthew Chantry <[email protected]>
Co-authored-by: Simon Lang <[email protected]>
Co-authored-by: mihai.alexe <[email protected]>
Dynamic data handling and indexing

Co-authored-by: Florian Pinault <[email protected]>
Co-authored-by: Baudouin Raoult <[email protected]>
Co-authored-by: Matthew Chantry <[email protected]>
Co-authored-by: mihai.alexe <[email protected]>
Co-authored-by: Simon Lang <[email protected]>
Pytorch model interface

Co-authored-by: Jesper Dramsch <[email protected]>

Co-authored-by: Simon Lang <[email protected]>

Co-authored-by: Matthew Chantry <[email protected]>

Co-authored-by: Mihai Alexe <[email protected]>
Co-authored-by: Jesper Dramsch <[email protected]>

Co-authored-by: Matthew Chantry <[email protected]>

Co-authored-by: Mihai Alexe <[email protected]

Co-authored-by: Florian Pinault <[email protected]>

Co-authored-by: Baudouin Raoult <[email protected]>
test config missing

Co-authored-by: Jesper Dramsch <[email protected]>
Co-authored-by: Simon Lang <[email protected]>
Co-authored-by: Helen Theissen <[email protected]>
---------

Co-authored-by: Steffen Tietsche <[email protected]>
Co-authored-by: Helen Theissen <[email protected]>
Co-authored-by: Sara Hahner <[email protected]>
Co-authored-by: Mariana Clare <[email protected]>
Reviewed-by: Mariana Clare <[email protected]>
@mchantry
Copy link
Member

Distributed folder has no init.

@mchantry
Copy link
Member

Some tests fail with flash-attention, I'm not sure that should be a blocker, but just an issue to fix.

t, "(batch grid) (heads vars) -> batch heads grid vars", batch=batch_size, heads=self.num_heads
),
(query, key, value),
query, key, value = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this being refactored?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readability mostly.

query, key, value = map(
lambda t: einops.rearrange(t, "batch heads grid vars -> batch grid heads vars"),
(query, key, value),
query, key, value = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above, what's the pro of the refactor?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly readability

@theissenhelen theissenhelen merged commit 6f053a8 into develop May 30, 2024
4 checks passed
@theissenhelen theissenhelen deleted the chore-fill-anemoi-models branch May 30, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants