-
Notifications
You must be signed in to change notification settings - Fork 25
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
Introducing structured model outputs #316
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
6dc2090
refactor: making output head construction quasi-optional
laserkelvin b1b1749
fix: using moduledict instead of regular dict to pass assertion
laserkelvin 25d4321
refactor: making forward pass predictions if not embeddings
laserkelvin 8cfc5e5
refactor: stashing embeddings if included in encoder outputs
laserkelvin 1873f56
refactor: adding check to validate encoder outputs
laserkelvin f2dbeb1
refactor: return encoder predictions directly for force regression
laserkelvin 8abd7a9
Merge branch 'main' into byo-outputs
laserkelvin 9724f89
refactor: added private variable for abstract tasks to signal byo out…
laserkelvin 64c9aa5
refactor: updating forward signature with non-embedding output
laserkelvin 78446c3
Merge branch 'structured-model-output-type' into byo-outputs
laserkelvin 09e10fe
refactor: introducing model output data structure
laserkelvin fc28949
Merge branch 'structured-model-output-type' into byo-outputs
laserkelvin 9e70a70
refactor: updated output signatures to include ModelOutput
laserkelvin 87e0c43
refactor: allowing high level forward call to skip output heads
laserkelvin 87c7d92
refactor: mapping model outputs to process embeddings
laserkelvin c075a55
refactor: removing kwarg for using encoder_predictions in favor of de…
laserkelvin d9ba520
refactor: changing forward signature to emit ModelOutput or dict
laserkelvin a8db278
refactor: using getattr instead of dict lookup to support dict or Mod…
laserkelvin 74a14e2
refactor: adding dict case in addition to getattr
laserkelvin d5d88b2
refactor: making MACE wrapper emit model output structure
laserkelvin 69565a9
refactor: flipping default state for forces in MACE to be disabled
laserkelvin 8d1a882
Merge branch 'structured-model-output-type' into byo-outputs
laserkelvin 51d1f52
test: updating MACE wrapper test to work for model outputs
laserkelvin d155f1c
refactor: updating force regression to allow ModelOutput
laserkelvin 408844b
fix: added missing macewrapper to pyg model namespace
laserkelvin 2829cdd
fix: mapping unit shifts into MACE kwargs
laserkelvin af0d9f1
test: adding unit test for BYO outputs represented by MACE
laserkelvin 60513a9
docs: added documentation about using modeloutput data structure
laserkelvin 3a091c2
refactor: adding model output key check in ForceRegressionTask
laserkelvin 52dfeff
refactor: skipping output kwargs if encoder doesn't use output heads
laserkelvin f2bbf30
docs: updated design intention with model outputs
laserkelvin 2c0b6b8
Merge branch 'main' into byo-outputs
laserkelvin abaf72f
fix: correcting missing FAENet import in pyg namespace
laserkelvin 2e4a5ba
fix: correcting model to encoder in expected attribute name
laserkelvin a1e98ba
Merge branch 'main' into byo-outputs
laserkelvin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment that may not be super important to consider right at this moment but should be noted - some workflows, such as serving models with OpenKIM's
kusp
to then run benchmarks, require that node energies are present. Some models (such as mace) can output these directly and they may be worth hanging onto as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think they're included in
ModelOutput
- in the wrapper output they're stashed asnode_energies
. That's what you mean right?