179 questions
No questions match those filters.
How does expert parallelism differ from tensor parallel...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansExpert parallelism (EP) isn’t tensor parallelism applied to experts — it’s closer to data parallelism along the expert axis, with one or a few experts placed per GPU. Communication happens via all-to-all dispatch and combine collectives instead of an all-reduce: the router picks an expert per token, that token gets shipped to whichever GPU holds the winning expert, gets processed by a full dense FFN there, and the result gets routed back. EP degree is usually set equal to the number of experts (or a divisor of it) so each rank holds exactly one.
This changes the communication profile qualitatively, not just in volume: all-to-all traffic depends on the routing pattern and gets bursty or imbalanced if routing collapses onto a few favored experts, compounding the load-balancing problem, whereas all-reduce cost in tensor parallelism is fixed and predictable every step regardless of input. All-to-all also degrades far more sharply than point-to-point transfers once it crosses a slow inter-node link, which is why EP degree is usually kept within a fast-interconnect domain — a single node or pod — wherever the expert count allows it.