Skip to content

Conversation

@deepsana
Copy link

@deepsana deepsana commented Aug 4, 2025

  • Ensemble of models extract average atom energies.
  • Created an extra_properties dictionary that allows one to include extra properties such as standard deviation to the energies or other extra properties.
  • Works with cpu and Kokkos to output in LAMMPS


if args.seed == 1001:
netname = f'TEST_ALUMINUM_MODEL_{args.seed}'
else:
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we're going to add arguments to this script let's just make a --ensemble one that changes the location for the model to be stored, rather than a special seed value.

Copy link
Author

Choose a reason for hiding this comment

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

Resolved with db7ea86

extra_properties = {"ens_predictions": ensemble_energy.all, "ens_std": ensemble_energy.std, "force_std":ensemble_force.std}
calc = HippynnCalculator(energy_node, extra_properties=extra_properties, en_unit=units.eV) #added
#calc = HippynnCalculator(energy_node, en_unit=units.eV)
'''# Load the files
Copy link
Collaborator

Choose a reason for hiding this comment

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

stray commented code?

Copy link
Author

Choose a reason for hiding this comment

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

Resolved with db7ea86

MaxwellBoltzmannDistribution(atoms, temperature_K=300)
dyn = VelocityVerlet(atoms, 0.5*units.fs)


Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems like maybe this script is getting repurposed for two things. Would it make sense to pull out this writing of data for lammps into an script in the examples/lammps folder?

Copy link
Author

Choose a reason for hiding this comment

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

Resolved with db7ea86

print('Energy per atom: Epot = %.7feV Ekin = %.7feV (T=%3.0fK) '
'Etot = %.7feV Stress = %.7f' % (epot, ekin, ekin / (1.5 * units.kB), epot + ekin, stress[:3].sum()/3 / units.bar))

#atomic_numbers = self.atoms.get_atomic_numbers()
Copy link
Collaborator

Choose a reason for hiding this comment

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

more code commented

Copy link
Author

Choose a reason for hiding this comment

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

Resolved with db7ea86

# Load trained model
try:
with active_directory("../TEST_ALUMINUM_MODEL", create=False):
with active_directory("/vast/home/dshahi/test_al_model/TEST_ALUMINUM_MODEL", create=False):
Copy link
Collaborator

Choose a reason for hiding this comment

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

hardcoded

Copy link
Author

Choose a reason for hiding this comment

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

Resolved with db7ea86

@lubbersnick
Copy link
Collaborator

Overall the implementation strategy looks ok, but there are several places where there are stray comments in the code or it looks like we are committing changes to the examples which break their intended functionality. We want to keep existing functionality in the examples intact. Where using the ensembles requires a larger amount of changes to the example script we should make that a separate script.

@deepsana deepsana force-pushed the generalized-changes-final branch from f4312af to db7ea86 Compare August 5, 2025 21:47
…r getting ase forces and positions in example/lammps
@deepsana deepsana force-pushed the generalized-changes-final branch from db7ea86 to 91087bf Compare August 6, 2025 15:46
@lubbersnick lubbersnick changed the title Generalized changes final lammps extra_properties per atom Sep 22, 2025
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