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

About switch_gate #198

Open
Heihaierr opened this issue Mar 6, 2024 · 1 comment
Open

About switch_gate #198

Heihaierr opened this issue Mar 6, 2024 · 1 comment

Comments

@Heihaierr
Copy link
Contributor

Hi, I'm trying to implement a simpler version of switch transformer following your work. But the detail of switch_gate is invisible, like limit_by_capacity. My implementation has a slight different result with fastmoe.

Can you release the detail code of switch_gate?

Thanks.

@laekov
Copy link
Owner

laekov commented Mar 11, 2024

The pruning function is implemented here.

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