Skip to content

feat(torchsim): add variants support for model outputs#1

Closed
HaoZeke wants to merge 1 commit intoCompRhys:mainfrom
HaoZeke:feat/torchsim-variants
Closed

feat(torchsim): add variants support for model outputs#1
HaoZeke wants to merge 1 commit intoCompRhys:mainfrom
HaoZeke:feat/torchsim-variants

Conversation

@HaoZeke
Copy link

@HaoZeke HaoZeke commented Mar 13, 2026

Add variants parameter to MetatomicModel, following the same pattern as ase_calculator. Uses pick_output to resolve the energy output variant from the model's capabilities.

This allows using models with multiple output variants (e.g. different functionals or uncertainty quantification outputs) by specifying which variant to use for energy evaluation.

Part of metatensor#167 review comments - addresses Luthaf's comment about adding support for variants.

Add variants parameter to MetatomicModel.__init__, following the same
pattern as ase_calculator. Uses pick_output to resolve the energy
output variant from the model's capabilities.

This allows using models with multiple output variants (e.g. different
functionals or uncertainty quantification outputs) by specifying which
variant to use for energy evaluation.
@HaoZeke HaoZeke requested a review from CompRhys as a code owner March 13, 2026 15:24
@HaoZeke HaoZeke closed this Mar 13, 2026
@HaoZeke
Copy link
Author

HaoZeke commented Mar 13, 2026

Wrong target

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.

1 participant