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

Add DLRM model and Taobao Dataset support with "Implementing FedScale Deployment with Custom Dataset and Model" Run Guide #244

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Now that you have FedScale installed, you can start exploring FedScale following
2. [Deploy your FL experiment](./docs/tutorial.md)
3. [Implement an FL algorithm](./examples/README.md)
4. [Deploy FL on smartphones](./fedscale/edge/android/README.md)
5. [Run with your own model and dataset](./docs/CustomModel_RunGuide.md)

## FedScale Datasets

Expand Down
61 changes: 61 additions & 0 deletions benchmark/configs/taobao_dlrm/taobao_dlrm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Configuration file of FAR training experiment

# ========== Cluster configuration ==========
# ip address of the parameter server (need 1 GPU process)
ps_ip: 127.0.0.1

# ip address of each worker:# of available gpus process on each gpu in this node
# Note that if we collocate ps and worker on same GPU, then we need to decrease this number of available processes on that GPU by 1
# E.g., master node has 4 available processes, then 1 for the ps, and worker should be set to: worker:3
worker_ips:
- 127.0.0.1:[2]

exp_path: $FEDSCALE_HOME/fedscale/cloud

# Entry function of executor and aggregator under $exp_path
executor_entry: execution/executor.py

aggregator_entry: aggregation/aggregator.py

auth:
ssh_user: ""
ssh_private_key: ~/.ssh/id_rsa

# cmd to run before we can indeed run FAR (in order)
setup_commands:
- source $HOME/anaconda3/bin/activate fedscale

# ========== Additional job configuration ==========
# Default parameters are specified in config_parser.py, wherein more description of the parameter can be found

job_conf:
- job_name: taobao # change job name
- log_path: $FEDSCALE_HOME/benchmark
- wandb_token: 4221994eb764b3c6244c61a8c6bxxxxxx # add wandb api
- task: recommendation # change task name
- num_participants: 50
- data_set: taobao # modify data_set
- data_dir: $FEDSCALE_HOME/benchmark/dataset/taobao # modify data_set path
# Delete data_map_file
- device_conf_file: $FEDSCALE_HOME/benchmark/dataset/data/device_info/client_device_capacity
- device_avail_file: $FEDSCALE_HOME/benchmark/dataset/data/device_info/client_behave_trace
- model: dlrm # Modify the used model
- eval_interval: 5
- rounds: 1000
- filter_less: 21
- num_loaders: 2
- local_steps: 5
- learning_rate: 0.01
- batch_size: 256
- test_bsz: 256
- use_cuda: False
- save_checkpoint: False
# Add new training parameters
- n_rows: 200000
- sparse_feature_number: 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000
- sparse_feature_dim: 16
- dense_feature_dim: 10
- bot_layer_sizes: 122 64 16
- top_layer_sizes: 512 256 1
- num_field: 7

Loading