-
Notifications
You must be signed in to change notification settings - Fork 5
Setup ray cluster #38
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0bd522a
update the downloading path of cora dataset
yuyang2S2023 aad0d7d
Add ogbn dataset
yy462 cf88bb7
Update data_process.py
yy462 9ecb93b
Fix issues detected by pre-commit
yuyang2S2023 23b65c1
Add setup_cluster.sh script and update README for Ray cluster setup
yuyang2S2023 768c56a
Update readme for setup cluster
yuyang2S2023 aa3c6df
add setup custer doc
yuyang2S2023 7e7ebd6
update config paths, and adjust Ray cluster setup
yuyang2S2023 b24f0f8
adjust the structure of the folder and finish testing the code
yuyang2S2023 e57b2ee
Merge branch 'main' into setup-ray-cluster
yh-yao 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
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
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,38 @@ | ||
| dual_weight: 5.e-4 | ||
| aug_lagrange_rho: 6.e-4 | ||
| model_lr: 0.06 | ||
| model_regularisation: 2.e-3 | ||
| dual_lr: 1.e-2 | ||
| num_local_iters: 1 | ||
| train_rounds: 35 | ||
| global_rounds: 35 | ||
| gamma: 0.2 | ||
| attn_func_parameter: 0.2 | ||
| # lambda x: AttnFunction(x, 0.2) | ||
| attn_func_domain: [-5, 5, 500] | ||
| sample_probab: 1 | ||
| hidden_dim: 8 | ||
| num_heads: 8 | ||
| max_deg: 16 | ||
|
|
||
| # dataset: ogbn-arxiv | ||
| dataset: cora | ||
| n_trainer: 20 | ||
| num_layers: 2 | ||
| num_hops: 2 | ||
| gpu: false | ||
| momentum: 0.0 | ||
| iid_beta: 10000 | ||
| logdir: ./runs | ||
| device: cpu | ||
| optim_kind: Adam | ||
| glob_comm: FedAvg | ||
| optim_reset: False | ||
| dampening: 0.0 | ||
| limit_node_degree: 150 | ||
| # method: DistributedGAT | ||
| # method: CentralizedGAT | ||
| method: FedGAT | ||
| batch_size: False | ||
| vecgen: True | ||
| communication_grad: True |
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,11 @@ | ||
| dataset: cora | ||
| fedtype: fedgcn | ||
| global_rounds: 100 | ||
| local_step: 3 | ||
| learning_rate: 0.5 | ||
| n_trainer: 2 | ||
| num_layers: 2 | ||
| num_hops: 2 | ||
| gpu: false | ||
| iid_beta: 10000 | ||
| logdir: ./runs |
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,29 @@ | ||
| # general: | ||
| model: 'FedAvg' | ||
|
|
||
| # dataset | ||
| dataset: "IMDB-BINARY" | ||
| is_multiple_dataset: False | ||
| datapath: './data' | ||
| convert_x: False | ||
| overlap: False | ||
|
|
||
| # setup | ||
| device: 'cpu' | ||
| seed: 10 | ||
| seed_split_data: 42 | ||
|
|
||
| # model_parameters | ||
| num_trainers: 2 | ||
| num_rounds: 200 | ||
| local_epoch: 1 | ||
| lr: 0.001 | ||
| weight_decay: 0.0005 | ||
| nlayer: 3 | ||
| hidden: 64 | ||
| dropout: 0.5 | ||
| batch_size: 128 | ||
|
|
||
| # output | ||
| outbase: './outputs' | ||
| save_files: False |
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,30 @@ | ||
| # general: | ||
| model: 'FedAvg' | ||
|
|
||
| # dataset: | ||
| dataset: "IMDB-BINARY" | ||
| is_multiple_dataset: False | ||
| datapath: './data' | ||
| convert_x: False | ||
| overlap: False | ||
|
|
||
| # setup: | ||
| device: 'cpu' | ||
| seed: 10 | ||
| seed_split_data: 42 | ||
|
|
||
| # model_parameters: | ||
| num_trainers: 2 | ||
| num_rounds: 200 | ||
| local_epoch: 1 | ||
| lr: 0.001 | ||
| weight_decay: 0.0005 | ||
| nlayer: 3 | ||
| hidden: 64 | ||
| dropout: 0.5 | ||
| batch_size: 128 | ||
| mu: 0.01 | ||
|
|
||
| # output: | ||
| outbase: './outputs' | ||
| save_files: False |
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,33 @@ | ||
| # general: | ||
| model: 'GCFL' | ||
|
|
||
| # dataset: | ||
| dataset: "IMDB-BINARY" | ||
| is_multiple_dataset: False | ||
| datapath: './data' | ||
| convert_x: False | ||
| overlap: False | ||
|
|
||
| # setup: | ||
| device: 'cpu' | ||
| seed: 10 | ||
| seed_split_data: 42 | ||
|
|
||
| # model_parameters: | ||
| num_trainers: 2 | ||
| num_rounds: 200 | ||
| local_epoch: 1 | ||
| lr: 0.001 | ||
| weight_decay: 0.0005 | ||
| nlayer: 3 | ||
| hidden: 64 | ||
| dropout: 0.5 | ||
| batch_size: 128 | ||
| standardize: False | ||
| seq_length: 5 | ||
| epsilon1: 0.05 | ||
| epsilon2: 0.1 | ||
|
|
||
| # output: | ||
| outbase: './outputs' | ||
| save_files: False |
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,33 @@ | ||
| # general: | ||
| model: 'GCFL' | ||
|
|
||
| # dataset: | ||
| dataset: "IMDB-BINARY" | ||
| is_multiple_dataset: False | ||
| datapath: './data' | ||
| convert_x: False | ||
| overlap: False | ||
|
|
||
| # setup: | ||
| device: 'cpu' | ||
| seed: 10 | ||
| seed_split_data: 42 | ||
|
|
||
| # model_parameters: | ||
| num_trainers: 2 | ||
| num_rounds: 200 | ||
| local_epoch: 1 | ||
| lr: 0.001 | ||
| weight_decay: 0.0005 | ||
| nlayer: 3 | ||
| hidden: 64 | ||
| dropout: 0.5 | ||
| batch_size: 128 | ||
| standardize: False | ||
| seq_length: 5 | ||
| epsilon1: 0.05 | ||
| epsilon2: 0.1 | ||
|
|
||
| # output: | ||
| outbase: './outputs' | ||
| save_files: False |
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,33 @@ | ||
| # general: | ||
| model: 'GCFL' | ||
|
|
||
| # dataset: | ||
| dataset: "IMDB-BINARY" | ||
| is_multiple_dataset: False | ||
| datapath: './data' | ||
| convert_x: False | ||
| overlap: False | ||
|
|
||
| # setup: | ||
| device: 'cpu' | ||
| seed: 10 | ||
| seed_split_data: 42 | ||
|
|
||
| # model_parameters: | ||
| num_trainers: 2 | ||
| num_rounds: 200 | ||
| local_epoch: 1 | ||
| lr: 0.001 | ||
| weight_decay: 0.0005 | ||
| nlayer: 3 | ||
| hidden: 64 | ||
| dropout: 0.5 | ||
| batch_size: 128 | ||
| standardize: False | ||
| seq_length: 5 | ||
| epsilon1: 0.05 | ||
| epsilon2: 0.1 | ||
|
|
||
| # output: | ||
| outbase: './outputs' | ||
| save_files: False |
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,28 @@ | ||
| # general: | ||
| model: 'SelfTrain' | ||
|
|
||
| # dataset | ||
| dataset: "IMDB-BINARY" | ||
| is_multiple_dataset: False | ||
| datapath: './data' | ||
| convert_x: False | ||
| overlap: False | ||
|
|
||
| # setup | ||
| device: 'cpu' | ||
| seed: 10 | ||
| seed_split_data: 42 | ||
|
|
||
| # model_parameters | ||
| num_trainers: 2 | ||
| local_epoch: 1 | ||
| lr: 0.001 | ||
| weight_decay: 0.0005 | ||
| nlayer: 3 | ||
| hidden: 64 | ||
| dropout: 0.5 | ||
| batch_size: 128 | ||
|
|
||
| # output | ||
| outbase: './outputs' | ||
| save_files: False |
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,24 @@ | ||
| # general: | ||
| method: FedLink | ||
| fedgraph_task: LP | ||
| # dataset: | ||
| country_codes: ["US", "BR"] # country_codes = ['US', 'BR', 'ID', 'TR', 'JP'] | ||
| dataset_path: data/LPDataset | ||
| global_file_path: data/LPDataset/data_five_countries.txt | ||
| traveled_file_path: data/LPDataset/traveled_users.txt | ||
|
|
||
| # setup: | ||
| device: gpu | ||
| use_buffer: false | ||
| buffer_size: 300000 | ||
| online_learning: false | ||
| seed: 10 | ||
|
|
||
| # model_parameters: | ||
| global_rounds: 8 | ||
| local_steps: 3 | ||
| repeat_time: 1 | ||
| hidden_channels: 64 | ||
|
|
||
| # output: | ||
| record_results: false |
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.
make sure you explain why we need benchmark folder in the document, if it's previous experiments, make sure it's runnable