Skip to content

Kmonte/het train #80

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
wants to merge 103 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
d38c654
setup labeled tensors
kmonte Apr 25, 2025
c887985
fix type checl
kmonte Apr 25, 2025
7a85872
Merge branch 'main' into kmonte/setup-labels
kmontemayor2-sc Apr 25, 2025
75e7af6
Support batching input in our neighbor loader
kmonte Apr 25, 2025
0941a57
address comments
kmonte Apr 28, 2025
c6e1f96
rename
kmonte Apr 28, 2025
69f8e14
Merge branch 'kmonte/loader-input' into kmonte/udl-to-homogeneous
kmonte Apr 28, 2025
57d1d6f
wip
kmonte Apr 29, 2025
1b6bbff
Merge branch 'main' into kmonte/setup-labels
kmonte Apr 29, 2025
298fd32
update doc comment + name
kmonte Apr 29, 2025
f5a1bd7
require supervision edge types (and heterogeneous graph)
kmonte Apr 29, 2025
c8b717a
address comments
kmonte Apr 30, 2025
a98c794
Merge branch 'main' into kmonte/setup-labels
kmontemayor2-sc Apr 30, 2025
34c51fc
update
kmonte Apr 30, 2025
57687a6
Merge branch 'kmonte/setup-labels' of github.com:Snapchat/GiGL into k…
kmonte Apr 30, 2025
bb01458
Merge branch 'main' into kmonte/udl-to-homogeneous
kmonte Apr 30, 2025
a9fa642
blegh
kmonte Apr 30, 2025
1ba1572
Merge branch 'kmonte/setup-labels' into kmonte/udl-to-homogeneous
kmonte Apr 30, 2025
58b8cea
update
kmonte Apr 30, 2025
aaec92a
Merge branch 'main' into kmonte/udl-to-homogeneous
kmonte Apr 30, 2025
88edccf
re-enable tests
kmonte Apr 30, 2025
84bc945
fixes
kmonte Apr 30, 2025
6288182
tests
kmonte Apr 30, 2025
9ade2cd
add doc comment
kmonte Apr 30, 2025
8b3bb53
add comment
kmonte Apr 30, 2025
c8fd5be
format
kmonte Apr 30, 2025
989d304
address comments
kmonte Apr 30, 2025
c1aab4a
swap to generating label edge types based on message passing edge types
kmonte May 1, 2025
3c94da4
also support pyg edge types
kmonte May 1, 2025
010f452
add comment
kmonte May 1, 2025
122ec4a
Merge branch 'main' into kmonte/udl-to-homogeneous
kmonte May 1, 2025
ad63f60
wip
kmonte May 2, 2025
bcd5f7b
only conversion
kmonte May 2, 2025
2023b3e
Merge branch 'main' into kmonte/just-homogeneous
kmonte May 2, 2025
843b24e
update
kmonte May 2, 2025
43f4664
add todo
kmonte May 2, 2025
a2223b4
address comments
kmonte May 5, 2025
c01b725
Merge branch 'main' into kmonte/just-homogeneous
kmonte May 5, 2025
8c3f43a
wip
kmonte May 6, 2025
45235dd
address comments
kmonte May 6, 2025
3f8296c
Merge branch 'kmonte/just-homogeneous' into kmonte/label-sentinels
kmonte May 6, 2025
c2c85da
works but pending GLT patch
kmonte May 6, 2025
13c2029
Merge branch 'main' into kmonte/udl-example
kmonte May 7, 2025
f6c526f
buncha stuff but functional
kmonte May 8, 2025
b3d7e8f
Merge branch 'main' into kmonte/just-homogeneous
kmonte May 8, 2025
849e27f
add DistNABLPLoader
kmonte May 8, 2025
475501d
type fix
kmonte May 8, 2025
bb23fb4
Merge branch 'main' into kmonte/udl-example
kmonte May 9, 2025
e02de45
Merge branch 'kmonte/just-homogeneous' into kmonte/udl-example
kmonte May 9, 2025
b86923e
set padded labels
kmonte May 9, 2025
7448456
update to ABLP
kmonte May 9, 2025
adb1553
cleanup
kmonte May 9, 2025
66a4cd9
rename config
kmonte May 9, 2025
b3e5432
rename (again)
kmonte May 9, 2025
266f914
address comments
kmonte May 9, 2025
b886cf2
remove transforms as an arg
kmonte May 12, 2025
c9abf33
bleg
kmonte May 12, 2025
5a70c2b
enable tests
kmonte May 12, 2025
6ccc7ec
very wip
kmonte May 12, 2025
2c2c89e
fix mypyp
kmonte May 13, 2025
fc8e11a
Merge branch 'main' into kmonte/udl-example
kmonte May 13, 2025
610a0d4
Merge update
kmonte May 13, 2025
0b61cdf
whitespace
kmonte May 14, 2025
d0e580b
add comment
kmonte May 14, 2025
9ccb8f2
update tests
kmonte May 14, 2025
8ffa0c0
add todo
kmonte May 14, 2025
c852d33
Merge branch 'main' into kmonte/udl-example
kmonte May 14, 2025
59f7ee3
address merge changes
kmonte May 14, 2025
b1f04e6
setup homogeneous training example
kmonte May 15, 2025
02f08af
add comment and move private classes to bottom
kmonte May 16, 2025
50040e5
Merge branch 'main' into kmonte/udl-example
kmontemayor2-sc May 16, 2025
118326b
some more
kmonte May 19, 2025
de40a2b
Merge branch 'main' into kmonte/udl-example
kmonte May 19, 2025
49fabc2
Swap to dict return and address comments
kmonte May 19, 2025
92d72ac
Merge branch 'main' into kmonte/udl-example
kmonte May 19, 2025
799a59a
don't run new test
kmonte May 19, 2025
96ea06b
remove commented code
kmonte May 19, 2025
3f7e27d
always do the label -> edge setup for training
kmonte May 19, 2025
b67f364
address comments
kmonte May 20, 2025
afc3e9d
Merge branch 'main' into kmonte/udl-example
kmonte May 20, 2025
a1b7376
address comments
kmonte May 20, 2025
e5a215d
Merge branch 'kmonte/udl-example' into kmonte/het-train
kmonte May 20, 2025
09ae308
trying local
kmonte May 20, 2025
79dc828
some comments
kmonte May 20, 2025
8add9d6
Merge branch 'main' into kmonte/udl-example
kmonte May 21, 2025
bfb36cf
move splitter creation logic to build_dataset
kmonte May 21, 2025
4acf255
disable test
kmonte May 21, 2025
cc8f30f
Merge branch 'kmonte/udl-example' into kmonte/het-train
kmonte May 21, 2025
c8e251b
kinda working locally
kmonte May 22, 2025
7b0ae16
Merge branch 'main' into kmonte/het-train
kmonte Jun 2, 2025
20c81a0
format?
kmonte Jun 2, 2025
2861cd0
with _infer_inputs
kmonte Jun 2, 2025
d3e1f8d
with val
kmonte Jun 2, 2025
10864a6
ddp
kmonte Jun 2, 2025
2938ff0
add num_random and try to cleanup
kmonte Jun 2, 2025
42503b9
add num_random and try to cleanup
kmonte Jun 2, 2025
0037fdc
stuff freezes idk
kmonte Jun 2, 2025
6519793
Merge branch 'main' into kmonte/het-train
kmonte Jun 9, 2025
591e5f3
merge refactor
kmonte Jun 9, 2025
7dbe15b
with device to loss/scaler
Jun 10, 2025
5dab4c3
Merge branch 'main' into kmonte/het-train
Jun 10, 2025
356dacb
instructions for testing distributed
kmonte Jun 10, 2025
bcdf4e8
remove unused helper
kmonte Jun 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/distributed/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local_dataset.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
datasetConfig:
dataPreprocessorConfig:
dataPreprocessorArgs:
mocked_dataset_name: cora_homogeneous_node_anchor_edge_features_user_defined_labels
dataPreprocessorConfigClsPath: gigl.src.mocking.mocking_assets.passthrough_preprocessor_config_for_mocked_assets.PassthroughPreprocessorConfigForMockedAssets
splitGeneratorConfig:
assignerArgs:
seed: '42'
test_split: '0.2'
train_split: '0.7'
val_split: '0.1'
assignerClsPath: splitgenerator.lib.assigners.UserDefinedLabelsEdgeToLinkSplitHashingAssigner
splitStrategyClsPath: splitgenerator.lib.split_strategies.UserDefinedLabelsNodeAnchorBasedLinkPredictionSplitStrategy
subgraphSamplerConfig:
numHops: 2
numNeighborsToSample: 10
numUserDefinedNegativeSamples: 1
numUserDefinedPositiveSamples: 1
featureFlags:
data_preprocessor_num_shards: '2'
should_run_glt_backend: 'True'
graphMetadata:
condensedEdgeTypeMap:
'0':
dstNodeType: paper
relation: cites
srcNodeType: paper
condensedNodeTypeMap:
'0': paper
edgeTypes:
- dstNodeType: paper
relation: cites
srcNodeType: paper
nodeTypes:
- paper
inferencerConfig:
command: python -m examples.distributed.homogeneous_inference
inferenceBatchSize: 512
inferencerArgs:
log_every_n_batch: '50'
sharedConfig:
datasetMetadata:
nodeAnchorBasedLinkPredictionDataset:
testMainDataUri: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/split_generator/test/main_samples/samples/
testNodeTypeToRandomNegativeDataUri:
paper: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/split_generator/test/random_negatives/paper/neighborhoods/
trainMainDataUri: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/split_generator/train/main_samples/samples/
trainNodeTypeToRandomNegativeDataUri:
paper: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/split_generator/train/random_negatives/paper/neighborhoods/
valMainDataUri: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/split_generator/val/main_samples/samples/
valNodeTypeToRandomNegativeDataUri:
paper: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/split_generator/val/random_negatives/paper/neighborhoods/
flattenedGraphMetadata:
nodeAnchorBasedLinkPredictionOutput:
nodeTypeToRandomNegativeTfrecordUriPrefix:
paper: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/subgraph_sampler/node_anchor_based_link_prediction/random_negative_rooted_neighborhood_samples/paper/samples/
tfrecordUriPrefix: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/subgraph_sampler/node_anchor_based_link_prediction/node_anchor_based_link_prediction_samples/samples/
inferenceMetadata:
nodeTypeToInferencerOutputInfoMap:
paper:
embeddingsPath: external-snap-ci-github-gigl.gigl_embeddings.embeddings_paper_cora_glt_udl_test_on__54606
postprocessedMetadata:
postProcessorLogMetricsUri: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/post_processor/post_processor_metrics.json
preprocessedMetadataUri: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/data_preprocess/preprocessed_metadata.yaml
shouldSkipModelEvaluation: true
shouldSkipTraining: true
trainedModelMetadata:
evalMetricsUri: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/trainer/models/trainer_eval_metrics.json
scriptedModelUri: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/trainer/models/scripted_model.pt
tensorboardLogsUri: gs://gigl-cicd-perm/cora_glt_udl_test_on__54606/trainer/tensorboard_logs/
trainedModelUri: gs://public-gigl/mocked_assets/2024-07-15--21-30-07-UTC/cora_homogeneous_node_anchor_edge_features_user_defined_labels/trainer/models/model.pt
taskMetadata:
nodeAnchorBasedLinkPredictionTaskMetadata:
supervisionEdgeTypes:
- dstNodeType: paper
relation: cites
srcNodeType: paper
Loading