---
title: "Mixture-of-Kittens: our open-source MoE megakernel for NVL72s · Cursor"
description: "Mixture-of-Kittens (MoK) is an open-source, fully deterministic MoE training megakernel for GB300 NVL72 racks that fuses dispatch, expert FFN and combine communication into a single kernel."
url: "https://swe.quest/articles/mixture-of-kittens-our-open-source-moe-megakernel-for-nvl72s-cursor-5e755f72be7eb1f1"
canonical: "https://cursor.com/blog/mixture-of-kittens"
source: "Cursor"
published: "2026-08-04"
difficulty: "hard"
kind: "Research"
reading_minutes: 23
tags: ["model-training","hardware","performance","distributed-systems","open-source"]
---

# Mixture-of-Kittens: our open-source MoE megakernel for NVL72s · Cursor

A post on [Cursor](https://swe.quest/sources/cursor.md), published 2026-08-04, 23 min read, Research. Original: [https://cursor.com/blog/mixture-of-kittens](https://cursor.com/blog/mixture-of-kittens)

## Summary

Mixture-of-Kittens (MoK) is an open-source, fully deterministic MoE training megakernel for GB300 NVL72 racks that fuses dispatch, expert FFN and combine communication into a single kernel. It reaches up to 2.37x higher MXFP8 forward throughput than the fastest public baseline (DeepEP, HybridEP, NCCL setups) and lifted end-to-end Composer training throughput by 1.41x. Key choices are pull-based dispatch with push-based combine and a single reusable device-side schedule. Measurements show this split gives up to 29% better NVLink utilization under expert imbalance and 5.8x lower signalling latency than push-based dispatch. It also uses a tunable minibatch granularity for overlapping compute with communication, and avoids slow Grace CPU synchronization.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- mixture-of-experts layers
- expert parallelism ([easy posts on Concurrency](https://swe.quest/tags/concurrency.md?difficulty=easy))
- GPU kernel programming ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))
- NVLink and collective communication

## Keywords

Mixture-of-Kittens, NVL72, GB300, NVLink, MXFP8, DeepEP, DeepSeek-V3, Composer

## Related posts

- [How to serve trillions of tokens for trillion-parameter coding agents](https://swe.quest/articles/how-to-serve-trillions-of-tokens-for-trillion-parameter-coding-agents-0508c7c515fa8a14.md): Modal · 2026-09-23 · Hard · 32 min read · Inference & serving, LLMs, Caching, Performance engineering, Hardware
  Modal describes how it serves Moonshot AI's trillion-parameter Kimi K2.6 model for coding-agent traffic at trillions of tokens.
- [ParallelKernelBench: Frontier LLMs can't write fast multi-GPU kernels (yet)](https://swe.quest/articles/parallelkernelbench-frontier-llms-can-t-write-fast-multi-gpu-kernels-yet-416eb937565c8218.md): Together AI · 2026-06-23 · Hard · 10 min read · AI for coding, Evaluation, Hardware, Performance engineering, Distributed systems
  ParallelKernelBench is a benchmark of 87 multi-GPU problems drawn from Megatron-LM, DeepSpeed, DeepEP, TensorRT-LLM, NeMo-RL and non-LLM workloads.
- [Keep the Tokens Flowing: Lessons from 16 Open-Source RL Libraries](https://swe.quest/articles/keep-the-tokens-flowing-lessons-from-16-open-source-rl-libraries-14bbb97951dedd55.md): Hugging Face · 2026-03-10 · Hard · 45 min read · Model training, Distributed systems, Inference & serving, LLMs
  Async RL post-training libraries have converged on one architecture: disaggregate inference and training onto separate GPU pools, connect them with a rollout buffer, and push weights asynchronously so generation never stops and training never waits.
- [Mixture of Experts (MoEs) in Transformers](https://swe.quest/articles/mixture-of-experts-moes-in-transformers-670e279baa41a80a.md): Hugging Face · 2026-02-26 · Hard · 10 min read · Inference & serving, LLMs, Model training, Performance engineering, Python
  Hugging Face transformers v5 reworks its internals to treat Mixture of Experts models as first-class: a WeightConverter pipeline packs per-expert checkpoint tensors into contiguous runtime tensors with async, lazy materialization, cutting Qwen1.5-110B load time from ~66s to ~21s (10s with tensor parallelism) on an A100.
- [Mixture of Experts Explained](https://swe.quest/articles/mixture-of-experts-explained-5efff8fe17f2e9ca.md): Hugging Face · 2023-12-11 · Hard · 21 min read · LLMs, Model training, Inference & serving, Machine learning
  Mixture of Experts (MoE) transformers replace dense feed-forward layers with sparse expert layers and a learned router that sends each token to only a few experts.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
