NVIDIA / NVIDIA/Megatron-LM

[QUESTION] Why is expert_bias only supported with sigmoid gating and not softmax?

Open
#1,693 0 comments 0 reactions 0 assignees View on GitHub
community-request module: moe question
Dominant language
Python
Stars
17.9k
Forks
4.5k
Avg merge
4d 6h
Merged PRs (30d)
271

Description

Hi Megatron-LM Team,

I have a quick question about the Mixture of Experts (MoE) implementation.

I've noticed that a learnable expert_bias term can be used with the sigmoid gating activation, but this option doesn't appear to be available when using softmax for the gating network.

Is this an intentional design choice? I'm curious if there's a specific theoretical or performance-related reason for this distinction.

Any insight you could provide would be greatly appreciated.

Thanks for your great work on this project!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.