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

Open catalyst #211

Merged
merged 27 commits into from
Mar 18, 2024
Merged

Open catalyst #211

merged 27 commits into from
Mar 18, 2024

Conversation

allaffa
Copy link
Collaborator

@allaffa allaffa commented Mar 14, 2024

No description provided.

@allaffa allaffa added the enhancement New feature or request label Mar 14, 2024
@allaffa allaffa requested a review from jychoi-hpc March 14, 2024 13:09
@allaffa allaffa self-assigned this Mar 14, 2024
@allaffa allaffa requested a review from pzhanggit March 14, 2024 19:47
@jychoi-hpc
Copy link
Member

I am getting the following error. Do I need to set any option?

Traceback (most recent call last):
  File "train.py", line 196, in <module>
    trainset = OpenCatalystDataset(
  File "train.py", line 90, in __init__
    write_images_to_adios(a2g, chunked_txt_files, self.data_path)
  File "/lustre/orion/cph161/world-shared/jyc/frontier/HydraGNN-oc/examples/open_catalyst_2020/utils/preprocess.py", line 48, in write_images_to_adios
    data_object = a2g.convert(frame)
  File "/lustre/orion/cph161/world-shared/jyc/frontier/HydraGNN-oc/examples/open_catalyst_2020/utils/atoms_to_graphs.py", line 111, in convert
    data = self.radius_graph_pbc(data)
  File "/lustre/orion/world-shared/cph161/jyc/frontier/HydraGNN-oc/hydragnn/preprocess/utils.py", line 144, in __call__
    assert hasattr(
AssertionError: The data must contain the size of the supercell to apply periodic boundary conditions.

@allaffa allaffa force-pushed the open_catalyst branch 2 times, most recently from e629c14 to fa100bd Compare March 15, 2024 21:54
@allaffa
Copy link
Collaborator Author

allaffa commented Mar 16, 2024

@jychoi-hpc @pzhanggit
After discussion with Jong, we decided not to apply periodic boundary conditions. Due to the variable size of the graphs, the feasibility of applying PBC is too case-dependent.

@jychoi-hpc jychoi-hpc requested review from jychoi-hpc and removed request for jychoi-hpc March 16, 2024 14:23
Copy link
Member

@jychoi-hpc jychoi-hpc left a comment

Choose a reason for hiding this comment

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

This PR works for me on Frontier.

Copy link
Collaborator

@pzhanggit pzhanggit left a comment

Choose a reason for hiding this comment

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

Looks good to me with minor comments

@allaffa allaffa requested a review from pzhanggit March 18, 2024 18:34
@allaffa allaffa merged commit a6ff278 into ORNL:main Mar 18, 2024
2 checks passed
@allaffa allaffa deleted the open_catalyst branch March 18, 2024 21:10
RylieWeaver pushed a commit to RylieWeaver/HydraGNN that referenced this pull request Oct 17, 2024
* open catalysts pre-load scripts added

* train.py added

* data loading, data processing, and training added

* test set changed to validation because we need labels

* exception handler in data loader removed

* skip command added if len(traj_logs) != len(traj_frames)

* fix adios

* removing second np.split

* uncompress file added

* energy float converted into tensor

* add update_predicted_values in adios reader

* add var_config for adios

* file reader uses glob.iglob

* minor update

* choice of adios or pickle in pre-loading

* minor fixes

* formatting fixed

* black reformatting of utils/adiosdataset.py

* black reformarring of scripts in examples/open_catalyst_2020

* Dataset section in the JSON file is removed

---------

Co-authored-by: Massimiliano Lupo Pasini <[email protected]>
Co-authored-by: Massimiliano Lupo Pasini <[email protected]>
Co-authored-by: Jong Choi <[email protected]>
Co-authored-by: Massimiliano Lupo Pasini <[email protected]>
Co-authored-by: Massimiliano Lupo Pasini <[email protected]>
Co-authored-by: Jong Choi <[email protected]>
Co-authored-by: Massimiliano Lupo Pasini <[email protected]>
Co-authored-by: Jong Choi <[email protected]>
Co-authored-by: Massimiliano Lupo Pasini <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants