Skip to content

MaceTorchSimModel support multi-head models via head parameter#1404

Closed
janosh wants to merge 1 commit intoACEsuit:developfrom
janosh:fix-torchsim-head-index
Closed

MaceTorchSimModel support multi-head models via head parameter#1404
janosh wants to merge 1 commit intoACEsuit:developfrom
janosh:fix-torchsim-head-index

Conversation

@janosh
Copy link
Copy Markdown
Contributor

@janosh janosh commented Mar 9, 2026

MaceTorchSimModel hardcodes head=0 in the data dict, silently selecting the first head (matpes_r2scan for MH-1) regardless of user intent. This produces wrong energies and forces for any head other than index 0.
Add a head: str constructor parameter that resolves the head name to its integer index, matching the behavior of MACECalculator.

MaceTorchSimModel hardcodes head=0 in the data dict, silently selecting
the first head (matpes_r2scan for MH-1) regardless of user intent. This
produces wrong energies and forces for any head other than index 0.

Add a head: str constructor parameter that resolves the head name to its
integer index, matching the behavior of MACECalculator.
@janosh janosh closed this Mar 20, 2026
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