Skip to content

Commit

Permalink
removed some extra torch.saves that were being used for debugging
Browse files Browse the repository at this point in the history
Signed-off-by: kta-intel <[email protected]>
  • Loading branch information
kta-intel committed Jan 26, 2024
1 parent 3fbc05c commit 9ebee87
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,6 @@
" # trainer.train(resume_from_checkpoint=training_args.resume_from_checkpoint)\n",
" out = trainer.train() \n",
"\n",
" ###############\n",
" torch.save(self.model, 'collaborator_'+self.input+'.pth')\n",
" ###############\n",
" \n",
" self.loss = out.training_loss\n",
" trainer.save_model()\n",
" self.training_completed = True\n",
Expand Down Expand Up @@ -548,10 +544,6 @@
" print(f'Average local model validation values = {self.local_model_accuracy}')\n",
" \n",
" self.model = FedAvg([input.model for input in inputs])\n",
"\n",
" ################\n",
" torch.save(self.model, 'aggregated_model.pth')\n",
" ################\n",
" \n",
" self.model.save_pretrained('./aggregated/model')\n",
" tokenizer.save_pretrained('./aggregated/tokenizer')\n",
Expand Down

0 comments on commit 9ebee87

Please sign in to comment.