Finetuning on PET model and rotational symmetrization #79
-
|
Hi everyone, I am applying a foundational-model + fine-tuning workflow to KTaO₃ and I am seeing an unexpected structural distortion after fine-tuning. I would appreciate any insight into whether this behavior is expected or if I may be making a mistake in my setup. Using VASP with the PBEsol functional, I first relaxed cubic KTaO₃ and obtained a lattice parameter of 3.989 Å. I then fine-tuned the MAD-S model using the following YAML configuration: The training metrics were: Train; Validation Test However, when I use this fine-tuned model to relax KTaO₃, the structure no longer remains cubic. Instead, it relaxes to a rhombohedral structure with a lattice parameter of approximately 5.25 Å and bond angles changing from 90° to ~62.5°. Is there a mistake I am making in this fine-tuning process? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 17 replies
-
|
Thank you for sharing your issue, @dominicvarghese! Before going deep into details, could you tell what script do you use to run the relaxation after fine-tuning the model? |
Beta Was this translation helpful? Give feedback.
-
|
Hi, Since I have the fine-tuned model for the KTaO3 dataset I am using, I was doing the full geometry relaxation of the Pm-3m structure to get the relaxed lattice parameters using the potential. I used the following code in ASE to do the relaxation: When I use the standard structure from Materials Project for relaxation; Input:
The relaxed output is as follows:
Using the default tolerance in FINDSYM to check the symmetry gives a spacegroup different from the Pm-3m. Is there anything that needs to be added in the relaxation script so that I can get the perfect cubic structure with a = b = c, alpha = beta = gamma = 90? |
Beta Was this translation helpful? Give feedback.
-
|
Hi Dominic, This behavior is quite expected because the architecture of PET is unconstrained and you're relaxing the cell without any symmetry constraint (have a look here for further details and some comments). If you want to keep a symmetric structure, you should constrain the relaxation with something like: This way, the space group will not change during relaxation. |
Beta Was this translation helpful? Give feedback.
-
|
Hi everyone, I am currently fine-tuning a foundation model (e.g., PET-OAM, trained on PBE) using a smaller dataset calculated with a different functional (e.g., PBEsol). |
Beta Was this translation helpful? Give feedback.
-
|
@dominicvarghese Does everything work for you now? Can we mark the discussion as resolved? You can always open a new discussion if you want to discuss things further |
Beta Was this translation helpful? Give feedback.
-
|
Issues solved (both virial vs stress and rotational symmetrization) |
Beta Was this translation helpful? Give feedback.






I think
UPETCalculatorneeds the.ckptfile (and not.pt).Otherwise, if you want to stick to the lower-level
MetatomicCalculator, you can just wrap your calculator insideSymmetrizedCalculator(documentation here)