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

Development for fl-nlp-hetero-tasks #410

Merged
merged 39 commits into from
Jan 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c8ce191
update dataset and model for hetero-fednlp
cheneydon Oct 25, 2022
202a7e4
update dataset and model for hetero-fednlp
cheneydon Oct 25, 2022
10f2379
update trainer for hetero-fednlp
cheneydon Oct 26, 2022
e8739a8
update pfednlp trainer
cheneydon Oct 31, 2022
c27b66a
fix bugs in pfednlp trainer
cheneydon Nov 1, 2022
08a45a8
update pcfednlp trainer
cheneydon Nov 4, 2022
054d448
update unit-test
cheneydon Nov 7, 2022
9ddfc87
bug fix in unit-test
cheneydon Nov 7, 2022
f6978a0
bug fix in test_yaml.py
cheneydon Nov 8, 2022
7c15ae6
conflicts fix
cheneydon Dec 6, 2022
3eeab96
update unittest
cheneydon Dec 7, 2022
84a0c5a
update unittest
cheneydon Dec 7, 2022
45c89cf
update workflows
cheneydon Dec 7, 2022
bf20a6b
update workflows
cheneydon Dec 7, 2022
6462523
bug fix
cheneydon Dec 7, 2022
3bd2c98
code structure reorg
cheneydon Dec 9, 2022
6c3964b
resolve conflicts
cheneydon Dec 9, 2022
9768db9
bug fix
cheneydon Dec 9, 2022
ec3ef0d
bug fix
cheneydon Dec 9, 2022
807d155
bug fix
cheneydon Dec 9, 2022
d632826
bug fix
cheneydon Dec 9, 2022
e32406a
bug fix
cheneydon Dec 10, 2022
1f0ece5
bug fix
cheneydon Dec 11, 2022
66fc760
bug fix
cheneydon Dec 11, 2022
bc4c658
bug fix
cheneydon Dec 11, 2022
51e2f69
bug fix
cheneydon Dec 11, 2022
9fada2c
bug fix
cheneydon Dec 11, 2022
210366d
Merge branch 'master' of https://github.com/alibaba/FederatedScope in…
xieyxclack Dec 14, 2022
222469b
update README
xieyxclack Dec 14, 2022
9086485
data related modifications
xieyxclack Dec 15, 2022
6214706
add nlp metrics; add metrics for adopted datasets in atc model; add l…
xieyxclack Dec 19, 2022
4e72541
modify scheduler
xieyxclack Dec 30, 2022
a404fa0
minor fix
xieyxclack Jan 2, 2023
2d2b0a1
ref-formatted
xieyxclack Jan 2, 2023
9de9711
minor fix
xieyxclack Jan 2, 2023
b3931c7
bug fix
cheneydon Jan 6, 2023
9ee663b
bug fix
cheneydon Jan 6, 2023
0683afe
bug fix
cheneydon Jan 6, 2023
fec3c0e
minor fix
cheneydon Jan 7, 2023
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
Prev Previous commit
Next Next commit
fix bugs in pfednlp trainer
  • Loading branch information
cheneydon committed Nov 1, 2022
commit c27b66a0c9b0228fb488fdee75433e50c6bd656e
4 changes: 2 additions & 2 deletions federatedscope/core/trainers/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ def setup_optimizer_and_scheduler(self, mode):
setattr(
self, f'{mode}_scheduler',
get_scheduler(self.train_optimizer,
**self.cfg.train.scheduler,
total_steps=total_steps,
warmup_steps=warmup_steps,
**self.cfg.train.scheduler))
warmup_steps=warmup_steps))

def track_mode(self, mode):
self.mode_stack.append(mode)
Expand Down
2 changes: 1 addition & 1 deletion federatedscope/nlp/aggregator/hfl_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def save_model(self, path, cur_round=-1):

path = os.path.join(path, 'global')
os.makedirs(path, exist_ok=True)
neighbor_ids = list(self.neighbors.keys())
neighbor_ids = sorted(list(self.neighbors.keys()))
for i, model in enumerate(self.models):
ckpt = {'cur_round': cur_round, 'model': model.state_dict()}
torch.save(
Expand Down
1 change: 0 additions & 1 deletion federatedscope/nlp/dataset/preprocess/get_hfl_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class HFLDataProcessor(object):
def __init__(self, config, train_frac=0.9):
self.data_dir = config.data.root
self.datasets = config.data.datasets
self.total_client_num = config.federate.client_num
self.num_grouped_clients = config.data.num_grouped_clients
self.train_frac = train_frac
self.all_train_data = []
Expand Down
Loading