Skip to content

Commit

Permalink
caidongqi/adafl:1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
caidongqi committed Jul 13, 2023
1 parent d9996f9 commit 8e27f2e
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ FedAdapter is built atop FedNLP beta (commit id: 27f3f97), the document file and
## Docker (Recommanded)
Install docker in your machine. Then run the following command to build the docker image.
```bash
docker pull caidongqi/adafl:1.0.1
docker run -it --gpus all --network host caidongqi/adafl:1.0.1 bash
docker pull caidongqi/adafl:1.1.0
docker run -it --gpus all --network host caidongqi/adafl:1.1.0 bash
```
We recommand using VSCode docker extension to develop in the docker container.
## Step-by-step installation
Expand Down
85 changes: 85 additions & 0 deletions run_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# BERT-base
# 20NEWS (provided in ae.pdf)
cd /app/experiments/distributed/transformer_exps/run_tc_exps
python trial_error.py \
--dataset 20news\
--round -1 \
--depth 0 \
--width 8 \
--time_threshold 60 \
--max_round 3000

# AGNEWS
cd /app/experiments/distributed/transformer_exps/run_tc_exps
python trial_error.py \
--dataset agnews\
--round -1 \
--depth 0 \
--width 8 \
--time_threshold 90 \
--max_round 3000

# SEMEVAL
cd /app/experiments/distributed/transformer_exps/run_tc_exps
python trial_error.py \
--dataset semeval_2010_task8\
--round -1 \
--depth 0 \
--width 8 \
--time_threshold 90 \
--max_round 3000

# ONTO
cd /app/experiments/distributed/transformer_exps/run_st_exps
python trial_error.py \
--dataset onto\
--round -1 \
--depth 1 \
--width 8 \
--time_threshold 100 \
--max_round 3000

# DistilBERT-base
mv /app/experiments/distributed/transformer_exps/run_tc_exps/run_text_classification_freeze.sh /app/experiments/distributed/transformer_exps/run_tc_exps/run_text_classification_freeze_bert.sh
mv /app/experiments/distributed/transformer_exps/run_tc_exps/run_text_classification_freeze_distilbert.sh /app/experiments/distributed/transformer_exps/run_tc_exps/run_text_classification_freeze.sh
mv /app/experiments/distributed/transformer_exps/run_st_exps/run_seq_tagging_trial.sh /app/experiments/distributed/transformer_exps/run_st_exps/run_seq_tagging_trial_bert.sh
mv /app/experiments/distributed/transformer_exps/run_st_exps/run_seq_tagging_trial_distilbert.sh /app/experiments/distributed/transformer_exps/run_st_exps/run_seq_tagging_trial.sh
# 20NEWS
cd /app/experiments/distributed/transformer_exps/run_tc_exps
python trial_error.py \
--dataset 20news\
--round -1 \
--depth 0 \
--width 8 \
--time_threshold 60 \
--max_round 3000

# AGNEWS
cd /app/experiments/distributed/transformer_exps/run_tc_exps
python trial_error.py \
--dataset agnews\
--round -1 \
--depth 0 \
--width 8 \
--time_threshold 90 \
--max_round 3000

# SEMEVAL
cd /app/experiments/distributed/transformer_exps/run_tc_exps
python trial_error.py \
--dataset semeval_2010_task8\
--round -1 \
--depth 0 \
--width 8 \
--time_threshold 90 \
--max_round 3000

# ONTO
cd /app/experiments/distributed/transformer_exps/run_st_exps
python trial_error.py \
--dataset onto\
--round -1 \
--depth 1 \
--width 8 \
--time_threshold 100 \
--max_round 3000

0 comments on commit 8e27f2e

Please sign in to comment.