Skip to content

enbable GP for nvidia graphgen#1791

Open
rayg1234 wants to merge 52 commits intomainfrom
rgao_gp_nvidia_graphgen
Open

enbable GP for nvidia graphgen#1791
rayg1234 wants to merge 52 commits intomainfrom
rgao_gp_nvidia_graphgen

Conversation

@rayg1234
Copy link
Contributor

@rayg1234 rayg1234 commented Feb 17, 2026

Branch off #1737

Previously, we passed the node_partition info via data_dict to radius_graph_pbc_v2, this allowed v2 to generate a partial graph efficiently where the target atoms are restricted to only atoms in the current graph partition. With v3 (nvidia graph gen), we can't do this so instead we feed the partition into generate_graph , which is cleaner anyways, and do the partitioning that way. This would make v2 slightly slower but we should default to v3 anyways

  • Note it is very important to perform node_partition edge filtering before get_pbc_distances because we don't want to do the O(edge) operations on the entire graph. In particular, the edge distance bmm is very inefficient when number of edges is large (see Early Partition and Parallel Graph Gen #1630)

MD speed with v2 before and after the change
image

@meta-cla meta-cla bot added the cla signed label Feb 17, 2026
@rayg1234 rayg1234 marked this pull request as draft February 17, 2026 23:14
@rayg1234 rayg1234 requested review from misko and mshuaibii February 18, 2026 00:00
@rayg1234 rayg1234 added enhancement New feature or request minor Minor version release labels Feb 18, 2026
@rayg1234 rayg1234 mentioned this pull request Feb 18, 2026
2 tasks
@mshuaibii mshuaibii changed the base branch from main to nvidia-graph February 18, 2026 17:12
@rayg1234 rayg1234 changed the title [WIP] GP nvidia graphgen GP for nvidia graphgen Feb 20, 2026
@rayg1234 rayg1234 changed the title GP for nvidia graphgen enbable GP for nvidia graphgen Feb 20, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 21, 2026
NVIDIA has released a suite of tools, of which includes a neighborlist.
Initial benchmarks look promising for both CPU and GPU performance.
Currently our external cpu implementation uses pymatgen.

- [x] cpu support
- [x] gpu support


<img width="4766" height="2060" alt="image"
src="https://github.com/user-attachments/assets/5d514209-c876-4ac5-a59e-60e4f337b922"
/>


Note - we should bump minimum python version to `3.11` for the CI.



# TODO
* GP is broken for V3. A separate PR will abstract it out to support the
other graph gen methods, including v3.
see #1791
* `external_graph_gen_method` is unused, to use nvidia graph gen with
this, we need a followup PR to add this option to the FairchemCalculator
(and deprecate `external_graph_gen` from inference_settings)

---------

Co-authored-by: Ray Gao <rgao@meta.com>
Co-authored-by: Ray Gao <7001989+rayg1234@users.noreply.github.com>
Base automatically changed from nvidia-graph to main February 21, 2026 05:52
@rayg1234 rayg1234 marked this pull request as ready for review February 21, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed enhancement New feature or request minor Minor version release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants