Skip to content

feat(model): fileGraphProvider - loading graphs from disk - #1245

Open
Sooph-knmi wants to merge 14 commits into
mainfrom
feat/fileGraphProvider
Open

feat(model): fileGraphProvider - loading graphs from disk#1245
Sooph-knmi wants to merge 14 commits into
mainfrom
feat/fileGraphProvider

Conversation

@Sooph-knmi

@Sooph-knmi Sooph-knmi commented Jul 17, 2026

Copy link
Copy Markdown

Description

Supporting loading graphs from disk during training.

If the provided graph in system.input.graph is a Path, the graphs are loaded from that folder with the new graph provider FileGraphProvider during the model forward.

Use cases:

  • Training with large (high resolution) graphs
  • Scaling up the amount of graphs (multi-dataset/multi-domain training)

No breaking changes.

What problem does this change solve?

Currently, the graph provider supports either static graphs or dynamically created graphs. When scaling up to a large amount of (possibly also large-sized) graphs, using static graphs can cause out of memory exceptions, and dynamically creating graphs causes an extreme slow-down in training.

What issue or task does this change relate to?

#1150

Additional notes

Right now, the model/traning initialization can still be slow because many graph attributes are loaded independently (see also the #1150 discussion). This might be something for a separate discussion.

Current implementation is only for AnemoiModelEncProcDec. Can be extended to the other models if there is interest from the community.

As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/

By opening this pull request, I affirm that all authors agree to the Contributor License Agreement.


📚 Documentation preview 📚: https://anemoi-training--1245.org.readthedocs.build/en/1245/


📚 Documentation preview 📚: https://anemoi-graphs--1245.org.readthedocs.build/en/1245/


📚 Documentation preview 📚: https://anemoi-models--1245.org.readthedocs.build/en/1245/

@Sooph-knmi Sooph-knmi added enhancement New feature or request training labels Jul 17, 2026
@Sooph-knmi Sooph-knmi linked an issue Jul 17, 2026 that may be closed by this pull request
@github-project-automation github-project-automation Bot moved this to To be triaged in Anemoi-dev Jul 17, 2026
@github-actions github-actions Bot added the bug Something isn't working label Jul 17, 2026
@Sooph-knmi Sooph-knmi changed the title feat(models, training): fileGraphProvider - loading graphs from disk feat(model): fileGraphProvider - loading graphs from disk Jul 17, 2026
This was referenced Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ATS Approval Needed Approval needed by ATS bug Something isn't working enhancement New feature or request models training

Projects

Status: To be triaged

Development

Successfully merging this pull request may close these issues.

feat(models): Support loading graphs from disk

2 participants