Skip to content

Decrypt global model weights after Homomorphic Encrypted Run in POC mode #2693

Closed Answered by ZiyueXu77
Niko-k98 asked this question in Q&A
Discussion options

You must be logged in to vote

yes, this will save the global model with best acc metric, if you need both (best and last), you can further do

if global_accuracy > best_global_acc:
            best_global_acc = global_accuracy 
            torch.save(input_model.params, 'global_model_best.pt')
torch.save(input_model.params, 'global_model.pt')

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@YuanTingHsieh
Comment options

@Niko-k98
Comment options

@ZiyueXu77
Comment options

@YuanTingHsieh
Comment options

@holgerroth
Comment options

Comment options

You must be logged in to vote
1 reply
@ZiyueXu77
Comment options

Answer selected by YuanTingHsieh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants