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

upload files #5

Open
zhangtt2024 opened this issue Apr 9, 2024 · 1 comment
Open

upload files #5

zhangtt2024 opened this issue Apr 9, 2024 · 1 comment

Comments

@zhangtt2024
Copy link

Your work is excellent and very helpful to me. Can you upload the MOE and Average files in the ensembling method?

@yfzhang114
Copy link
Owner

For the average method, you can simply aggregate the results from different experts and compute the average.

Regarding the MOE (Mixture of Experts), the implementation is akin to gating. The main difference lies in the calculation of the gating weights. For gating, it's calculated as follows: $( h = \mathbf{W}_{\text{Concat}}([\tilde{y}_1, \tilde{y}_2]) + \mathbf{b} ) with ( w_1, w_2 = \text{softmax}(h) ).$ Whereas for MOE, it's computed as $( h = \mathbf{W} \mathbf{x} + \mathbf{b} ) with ( w_1, w_2 = \text{softmax}(h) ).$

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