...
2024-10-22 16:46:16.366 INFO: Loading atomic energies from ./multi-theory/data/PBEsol.json
Traceback (most recent call last):
File "/rds/user/tdw50/hpc-work/mace/mace/cli/run_train.py", line 407, in run
logging.info(f"Atomic Energies used (z: eV) for head {head_config.head_name}: " + "{" + ", ".join([f"{z}: {atomic_energies_dict[head_config.head_name][z]}" for z in head_config.z_table.zs]) + "}")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
KeyError: 1
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tdw50/miniforge3/envs/mace/bin/mace_run_train", line 8, in <module>
sys.exit(main())
^^^^^^
File "/rds/user/tdw50/hpc-work/mace/mace/cli/run_train.py", line 63, in main
run(args)
File "/rds/user/tdw50/hpc-work/mace/mace/cli/run_train.py", line 409, in run
raise KeyError(f"Atomic number {e} not found in atomic_energies_dict for head {head_config.head_name}, add E0s for this atomic number") from e
KeyError: 'Atomic number 1 not found in atomic_energies_dict for head PBE, add E0s for this atomic number'
Describe the bug Multihead training fails when E0s specified with json file, like here.
To Reproduce config.yaml:
PBE.json:
train_multihead.sh
Error
Possibly related: https://github.com/ACEsuit/mace/issues/371