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

I have the following question: during the local training phase, the model parameters on the client side are not updated with the parameters from the server side, they are only stored in self.W and not loaded into self.model. #3

Open
nanqiaobei opened this issue May 28, 2024 · 1 comment

Comments

@nanqiaobei
Copy link

Hello, we have observed that in the code within the client's download_from_server function, the server parameters are only saved in self.W, and the self.model parameters are not updated. This means that during the local training phase, the model's parameters only use the locally trained parameters and do not incorporate the server parameters. Consequently, during the testing phase, the model only uses the parameters from the last local training iteration and does not utilize the exchanged parameters for evaluation.

I'm not sure if I might have missed something, so I'd like to ask for advice.

@LDer66
Copy link

LDer66 commented Sep 29, 2024

Hello, we have observed that in the code within the client's download_from_server function, the server parameters are only saved in self.W, and the self.model parameters are not updated. This means that during the local training phase, the model's parameters only use the locally trained parameters and do not incorporate the server parameters. Consequently, during the testing phase, the model only uses the parameters from the last local training iteration and does not utilize the exchanged parameters for evaluation.

I'm not sure if I might have missed something, so I'd like to ask for advice.
这个代码时期是在服务器端更新了编码器,分类器是没有聚合的,你可以看看模型定义那里,分类器相当于每个客户端是个性化的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants