-
Notifications
You must be signed in to change notification settings - Fork 16
Add graph-store PPR E2E wiring #655
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
Draft
mkolodner-sc
wants to merge
43
commits into
main
Choose a base branch
from
mkolodner-sc/graph_store_ppr_e2e
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 31 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
ed818c2
potential fix
mkolodner-sc abb8e56
Update
mkolodner-sc a0e84fa
Update
mkolodner-sc 088fe1b
Improvements
mkolodner-sc 5ca621c
Change int16 to int32
mkolodner-sc ac2ef26
Fix degree tensor tests and type checks
mkolodner-sc 7ad9faa
Merge branch 'mkolodner-sc/ppr_gs_memory' of github.com:Snapchat/GiGL…
mkolodner-sc d850b37
Add E2E PPR graphstore test
mkolodner-sc 845704b
Update
mkolodner-sc ebbc318
Fixes
mkolodner-sc 65eac99
Fix PPR graph-store sampling worker capacity
mkolodner-sc 97bd538
Fix
mkolodner-sc 92c9f51
more fixes
mkolodner-sc 7e31417
change back
mkolodner-sc d9d2086
Avoid cast for heterogeneous inference node ids
mkolodner-sc fd1e9ae
Trim branch to PPR sampler fixes
mkolodner-sc 71e1fa1
Merge remote-tracking branch 'origin/main' into mkolodner-sc/ppr_gs_m…
mkolodner-sc a49a650
Add graph-store PPR E2E wiring
mkolodner-sc 2ef9548
Keep PPR test ty ignores
mkolodner-sc 8c1dd36
Merge branch 'mkolodner-sc/ppr_gs_memory' into mkolodner-sc/graph_sto…
mkolodner-sc b08f0e5
Remove stale PPR test ty ignore
mkolodner-sc 851ed8b
Merge branch 'mkolodner-sc/ppr_gs_memory' into mkolodner-sc/graph_sto…
mkolodner-sc a6eedd1
Use union shape for PPR degree tensors
mkolodner-sc 68ab0f2
Restore useful degree computation comments
mkolodner-sc ab6aecd
Merge branch 'mkolodner-sc/ppr_gs_memory' into mkolodner-sc/graph_sto…
mkolodner-sc e71ccdb
Remove sampler diagnostic wrapper
mkolodner-sc ee5806b
Merge branch 'mkolodner-sc/ppr_gs_memory' into mkolodner-sc/graph_sto…
mkolodner-sc f76e548
Simplify degree all-reduce helper
mkolodner-sc 98bb3f9
Merge branch 'mkolodner-sc/ppr_gs_memory' into mkolodner-sc/graph_sto…
mkolodner-sc 23ee86f
Document degree tensor assumptions
mkolodner-sc f0e3275
Merge branch 'mkolodner-sc/ppr_gs_memory' into mkolodner-sc/graph_sto…
mkolodner-sc 3b3497d
Address PPR degree review comments
mkolodner-sc 5ac1c63
Address PPR degree memory review comments
mkolodner-sc a24e32a
Merge branch 'mkolodner-sc/ppr_gs_memory' into mkolodner-sc/graph_sto…
mkolodner-sc 2f35f22
Configure graph-store PPR sampler options inline
mkolodner-sc aa42d7a
Comments
mkolodner-sc 188525f
Clarify graph-store PPR sampler args
mkolodner-sc 2641834
Document PPR degree tensor dtype rationale
mkolodner-sc 1ff8635
Address remaining comments
mkolodner-sc 5548260
Fix
mkolodner-sc 0e734f3
Merge branch 'mkolodner-sc/ppr_gs_memory' into mkolodner-sc/graph_sto…
mkolodner-sc a9df285
Improve solution
mkolodner-sc 7757cec
Merge branch 'mkolodner-sc/ppr_gs_memory' into mkolodner-sc/graph_sto…
mkolodner-sc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
examples/link_prediction/graph_store/configs/e2e_hom_cora_sup_gs_ppr_task_config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| # This config runs homogeneous CORA supervised training and inference in Graph Store mode | ||
| # with PPR sampling. It intentionally reuses the standard graph-store training/inference | ||
| # entrypoints, changing only the sampler args and keeping the loop short for E2E coverage. | ||
| graphMetadata: | ||
| edgeTypes: | ||
| - dstNodeType: paper | ||
| relation: cites | ||
| srcNodeType: paper | ||
| nodeTypes: | ||
| - paper | ||
| datasetConfig: | ||
| dataPreprocessorConfig: | ||
| dataPreprocessorConfigClsPath: gigl.src.mocking.mocking_assets.passthrough_preprocessor_config_for_mocked_assets.PassthroughPreprocessorConfigForMockedAssets | ||
| dataPreprocessorArgs: | ||
| mocked_dataset_name: 'cora_homogeneous_node_anchor_edge_features_user_defined_labels' | ||
| trainerConfig: | ||
| trainerArgs: | ||
| log_every_n_batch: "1" | ||
| num_neighbors: "[10, 10]" | ||
| sampler_type: "ppr" | ||
| ppr_alpha: "0.5" | ||
| ppr_eps: "0.0001" | ||
| ppr_max_nodes: "20" | ||
| ppr_neighbors_per_hop: "100" | ||
| ppr_max_fetch_iterations: "2" | ||
| sampling_workers_per_process: "2" | ||
| main_batch_size: "8" | ||
| random_batch_size: "8" | ||
| num_max_train_batches: "4" | ||
| num_val_batches: "4" | ||
| val_every_n_batch: "1" | ||
| command: python -m examples.link_prediction.graph_store.homogeneous_training | ||
| graphStoreStorageConfig: | ||
| command: python -m examples.link_prediction.graph_store.storage_main | ||
| storageArgs: | ||
| sample_edge_direction: "in" | ||
| splitter_cls_path: "gigl.utils.data_splitters.DistNodeAnchorLinkSplitter" | ||
| splitter_kwargs: >- | ||
| { | ||
| "sampling_direction": "in", | ||
| "should_convert_labels_to_edges": True, | ||
| "num_val": 0.25, | ||
| "num_test": 0.25 | ||
| } | ||
| num_server_sessions: "1" | ||
| inferencerConfig: | ||
| inferencerArgs: | ||
| log_every_n_batch: "1" | ||
| num_neighbors: "[10, 10]" | ||
| sampler_type: "ppr" | ||
| ppr_alpha: "0.5" | ||
| ppr_eps: "0.0001" | ||
| ppr_max_nodes: "20" | ||
| ppr_neighbors_per_hop: "100" | ||
| ppr_max_fetch_iterations: "2" | ||
| sampling_workers_per_inference_process: "2" | ||
| inferenceBatchSize: 256 | ||
| command: python -m examples.link_prediction.graph_store.homogeneous_inference | ||
| graphStoreStorageConfig: | ||
| command: python -m examples.link_prediction.graph_store.storage_main | ||
| storageArgs: | ||
| sample_edge_direction: "in" | ||
| num_server_sessions: "1" | ||
| sharedConfig: | ||
| shouldSkipInference: false | ||
| shouldSkipModelEvaluation: true | ||
| taskMetadata: | ||
| nodeAnchorBasedLinkPredictionTaskMetadata: | ||
| supervisionEdgeTypes: | ||
| - dstNodeType: paper | ||
| relation: cites | ||
| srcNodeType: paper | ||
| featureFlags: | ||
| should_run_glt_backend: 'True' | ||
| data_preprocessor_num_shards: '2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Graph Store mode, the source of truth should be cluster_info.num_processes_per_compute, not a local CPU/GPU heuristic. The previous fallback could make inference spawn a different number of compute processes than storage expected, causing storage rendezvous failures like “only N/M clients joined.”