Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pbc conv args #297

Closed
wants to merge 320 commits into from
Closed

Conversation

RylieWeaver
Copy link
Collaborator

This PR aims to address the issue related to generating conv_args that are in-line with periodic boundary conditions.

The following implementation should be robust under the following assumptions, which I think should always be true:
(1) radius < min(supercell_size) / 2
(2) The edge_index has been generated correctly with periodic boundary conditions.

Currently, only two models are updated to use the new functionality. If this is a good solution, it can be easily extended to the others.

pzhanggit and others added 30 commits December 9, 2021 14:21
* fix error name bugs

* rm tracking error of node sum

* reserved length for error lists
* Treat warnings as errors;
Ignore deprecation warnings from tpl

* fixup unscale assert
* Split device and device_name functions

* Move data to device in loading rather than training (does NOT affect performance)
* frequency relaxed

* frequency relaxed

Co-authored-by: Massimiliano Lupo Pasini <7ml@ornl.gov>
* mapping of degree tensor to GPU

* formatting fixed

Co-authored-by: Massimiliano Lupo Pasini <7ml@ornl.gov>
data.batch is remapped to the same device as data.x
* added dashed red diagonal and use of empty dots in scatterplot

* formatting fixed

Co-authored-by: Massimiliano Lupo Pasini <7ml@ornl.gov>
* save train/val/test to pkls when total provided and reorganize data loading

* remove raw in config
* Add pre-commit

* Add pre-commit to dev requirements

* Freeze black required version for now

* Add instructions for using pre-commit

Co-authored-by: Sam Reeve <6740307+streeve@users.noreply.github.com>
* fix an indexing bug in denormalization

* add min/max loading from pkl
* wip: init profile

* wip: add profile routine

* wip: add profile routine

* format fixed

* Create profiler class

* minor fix

* Minor changes for merging

* Move profile block to an upper level

Co-authored-by: Massimiliano Lupo Pasini <7ml@ornl.gov>
Co-authored-by: Massimiliano Lupo Pasini <massimiliano.lupo.pasini@gmail.com>
Co-authored-by: User <user@localadmins-Air.homenet.telecomitalia.it>
optimize get_head_indices with tensor operations
Check Cuda enabled for profiler
* reformatting

* Update create_configurations.py

* json file added for Ising model

* Update ising_model.json

* change in the definition of the spin and change of data format in .json file

* requirements file for example added

* Rename ising data

* Add tqdm

* Rename spin and redefine atom_type

* removed subtraction of -1 from coordinates

* sine used to map atom features into spin

* sinusoidal spin used to calculate the energy

* setting for creation of dfataset and model changed

Co-authored-by: Massimiliano Lupo Pasini <7ml@ornl.gov>
Co-authored-by: Sam Reeve <6740307+streeve@users.noreply.github.com>
* reformatting

* call to stratified splitting added in ci test input files

* collections added

* stratified_splitting removed from ci.json

* call to stratified splitting added in ci test input files

* reformatting

* indexing for validation and test set fixed

* fix Data object referring issue

* reformatting

* auxiliary functions created to make the code easier to maintain

* removed line from sklearn.model_selection.StratifiedShuffleSplit import StratifiedShuffleSplit

* explicit type statement removed from input parameter list

* reformatting

* reformatting

* routines renamed into compositional_data_splitting.py

Co-authored-by: Massimiliano Lupo Pasini <7ml@ornl.gov>
Co-authored-by: Pei Zhang <zhangp1@ornl.gov>
LemonAndRabbit and others added 27 commits July 23, 2024 15:34
…ing (ORNL#268)

* init commit, tested work on frontier

* update black formatting

* amend template

---------

Co-authored-by: Zhifan Ye <zye327@login07.frontier.olcf.ornl.gov>
* add energy linear regression

* remove pdb

* remove var_conf

* fix for energy per atom

* remove debug

* fix energy per atom

* fix for new energy calc

* add npz output

* save energy mean and linear regresison term

* black

* fix adios write

* remove emean
* Update deephyper runs

Update to capture all errors with try-except block.

* Update gfm_deephyper_multi_perlmutter.py

* Update distributed.py

Use "SLURM_STEP_NODELIST" env, which is needed for HPO.
* force tests, which required model arg, and some typo fixing in Lennard Jones

* Add PNAPlus since it uses positions as well

* formatting
* utils renamed and black formatting applied

* bug fixed solved for tests

* black formatting fixed

* examples corrected

* test_model_loadpred.py fixed

* black formatting fixed

* test_loss_and_activation_functions.py fixed

* black formatting fixed

* reverting inadvertent automated refactoring of dataset forlder into datasets

* reverting inadvertent automated refactoring of dataset forlder into datasets

* reverting inadvertent automated refactoring of dataset forlder into datasets

* reverting inadvertent automated refactoring of dataset forlder into datasets

* reverting inadvertent automated refactoring of hydragnn into hhydragnn package

* reverting inadvertent automated refactoring of dataset forlder into datasets

* reverting inadvertent automated refactoring of dataset forlder into datasets

* reverting inadvertent automated refactoring of dataset forlder into datasets

* git formatting fixed

* Adagrad converted to Adamax

* Additional changes to fix bugs and suggestions from erdem

* imports fixed for LennardJones example

* formatting fixed

* imports in LJ_data.py fixed

* import of graph utils fixed in LJ_data.py

* import of setup.ddp() fixed in LennardJones

* setup_log call fixed

* get_summary_writer call fixed

* additional calls fixed

* black formatting fixedf
@RylieWeaver RylieWeaver requested a review from allaffa October 29, 2024 01:14
@RylieWeaver
Copy link
Collaborator Author

@allaffa This should give an idea of the implementation I've been working with. I can still take a further look at the Facebook implementation you mentioned, but since this one is already working and I'm familiar with I wanted to show you what it would look like first. Let me know your thoughts.

Also I am not sure why there are so many commits. Maybe I forgot a rebase or merge

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.

10 participants