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

Parameters are not shared in experts #6

Open
tairan-w opened this issue Oct 2, 2022 · 0 comments
Open

Parameters are not shared in experts #6

tairan-w opened this issue Oct 2, 2022 · 0 comments

Comments

@tairan-w
Copy link

tairan-w commented Oct 2, 2022

Hi, from the paper I thought that the most important parameters are shared across different experts. However, in the code I did n't see how to ensure the parameters are the same in the training process. I see in utils.py, expert_list[i].fc1.weight.data = fc1_weight_data[idx, :].clone(), but the variable created by clone will not be the same as the old one.
I also do experiments to check my assumption. After several steps, the parameters in experts are no longer the same.
Can you give more highlights on that? Thanks.

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

1 participant