Cursor Rewrites MoE GPU Execution with MoK

💡See how Cursor cut MoE signaling latency 82% by merging dispatch, communication, and computation.
⚡ 30-Second TL;DR
What Changed
MoK combines token scheduling, inter-GPU communication, and expert computation in a unified GPU kernel.
Why It Matters
MoK suggests that large-scale MoE performance is increasingly constrained by software orchestration rather than raw GPU throughput or link bandwidth. If broadly adopted, custom application-level kernels could become a major way for AI infrastructure teams to recover utilization from distributed expert execution.
What To Do Next
Benchmark MoK against DeepEP on your distributed MoE model, measuring end-to-end step time, signaling latency, NVLink utilization, and expert-load imbalance before considering production adoption.
Key Points
- •MoK combines token scheduling, inter-GPU communication, and expert computation in a unified GPU kernel.
- •Its Pull-based forward Dispatch lets destination GPUs fetch tokens, reducing coordination and signaling overhead.
- •Cursor measured signaling latency falling from approximately 103μs to 18μs in a multi-node benchmark.
- •Pull communication moved more data than Push in one microbenchmark but improved NVLink utilization by up to 29% under imbalanced expert loads.
- •The design targets the communication, synchronization, layout, and load-balancing overheads that remain after faster Tensor Core computation.
🧠 Deep Insight
Background and context from public sources — not the original article. 13 sources cited.
🔑 Enhanced Key Takeaways
- •MoK is specifically optimized for NVIDIA Blackwell (SM100/SM103) architectures, leveraging the NVL72 rack-scale interconnect to maximize throughput.
- •The kernel achieves a 2.37x speedup in MXFP8 forward pass throughput compared to existing public baseline implementations.
- •MoK utilizes a persistent, long-lived kernel design that eliminates the overhead of launching hundreds of sequential kernels for standard MoE operations.
- •The development process was significantly accelerated by Cursor's internal multi-agent systems, which performed autonomous assembly-level CUDA optimization.
- •By implementing a ring token buffer, MoK effectively bypasses CPU-GPU synchronization bottlenecks, allowing for more efficient scaling across 512-GPU clusters.
🛠️ Technical Deep Dive
- Architecture: Deterministic megakernel that fuses communication and computation into a single persistent launch.
- Hardware Target: NVIDIA Blackwell (SM100/SM103) systems including GB200/GB300 NVL72.
- Software Requirements: CUDA 13.0+ and PyTorch 2.10+.
- Communication Strategy: Pull-based dispatch using a ring token buffer to eliminate CPU-side coordination.
- Data Format: Native support for MXFP8 and NVFP4 precision formats.
🔮 Future ImplicationsAI analysis grounded in cited sources
⏳ Timeline
📎 Sources (13)
Factual claims are grounded in the sources below. Forward-looking analysis is AI-generated interpretation.
Weekly AI Recap
Read this week's curated digest of top AI events →
👉Related Updates
AI-curated news aggregator. All content rights belong to original publishers.
Original source: 雷峰网 ↗
This is a summary, not the original. Read the source, or get the weekly briefing.
Weekly AI briefing
One email a week. Unsubscribe anytime.


