How to correct load weights in my model. #497
-
Hi! I'm trying to use a Pytorch Tabular Model inside a Federated Learning environment, so I need to obtain the weights from different nodes, aggregate them and load the new weights inside each node. The extracting part is OK, but i am having trouble in the loading part. After I have defined my model and train it in each model with:
I am able to extract to weights correctly. After operate with these weights, I obtain a new weights that we'll call Up to this point, there is no problem, but when the next round start and each node has to train again, using the same sentence:
Each node obtained results are the same that the corresponding node obtained the last round. It seems that the function Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you need to use the low-level API for this (its in the docs). When you call fit, we re-initialize the model (i,e, random weights). In the Low Level API, you have access to the model and you can load weights to the model and just "train" the model. |
Beta Was this translation helpful? Give feedback.
I think you need to use the low-level API for this (its in the docs). When you call fit, we re-initialize the model (i,e, random weights).
In the Low Level API, you have access to the model and you can load weights to the model and just "train" the model.