3 ms·
> This, of course, is “only” a batch size of 7.5 million tokens per expert due to not every expert seeing all tokens. > Mixture of Expert Tradeoffs: There are
by qwertox 3y ago
> This, of course, is “only” a batch size of 7.5 million tokens per expert due to not every expert seeing all tokens.
> Mixture of Expert Tradeoffs: There are multiple MoE tradeoffs taken: For example, MoE is incredibly difficult to deal with on inference because not every part of the model is utilized on every token generation.
Are these experts able to communicate among them in one query? How do they get selected? How do they know who to pass information to?
Would I be able to influence the selection of experts by how I create my questions? For example to ensure that a question about code gets passed directly to an expert in code? I feel silly asking this question, but I honestly have no idea how to interpret this.
- l33tman 3y agoYou shouldn't take the "mixture of experts" too literally, it's yet another architecture to use internally for a gradient descent optimized graph of ops. I obviously don't know how GPT-4 do it (or if it even does it) but think of partitioning your network into a couple of very isolated sub-graphs (the "experts"), and add another learnable network between the input tokens and the experts, that learns to route tokens to 1 or more expert sub-graphs. Then the gain is that you can potentially ignore running the unused sub-graphs completely for that token, and you can distribute them on other GPUs as except for the input and output they are independent of each other. It all depends on the problem, data, and if the gradient descent optimizer can find a way to actually partition the problem usefully using the router and "experts".