Reproduce “CoX-MoE: Coalesced Expert Execution for High-Throughput MoE Inference with AMX-Enabled CPU-GPU Co-Execution” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Muyoung Son, Yi Chen, Seungjae Yoo, Soongyu Choi, Joo-Young Kim
CoX-MoE improves throughput for memory-constrained batch inference by running experts over the full batch and co-executing their work across a GPU and an AMX-equipped CPU, while micro-batching non-expert operations as needed. It schedules operation placement and expert residency. In tested batch experiments, it achieves up to 2.4× the throughput of MoE-Lightning on Mixtral, but this maximum is not guaranteed across workloads.
Key insights
- Fragmenting expert computations with micro-batching significantly reduces their operational intensity; coalesced execution is key to improving efficiency.
- Offloading attention operations to a capable CPU can free up critical GPU VRAM, allowing more expert weights to reside on-device and reducing reliance on slow PCIe transfers.
- Proactive, data-driven identification and static placement of highly activated experts can effectively mitigate PCIe bottlenecks and improve workload balance in heterogeneous CPU-GPU environments.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.