# Can LLMs Write Fast Multi-GPU Kernels? — Simran Arora, Together AI
<!--
ref: @content/youtube/aie/can-llms-write-fast-multi-gpu-kernels-simran-arora-together
tags: [multi-GPU kernels, NVLink, Parallel Kittens, Parallel Kernel Bench, LLM kernel generation, communication overlap, GPU interconnect]
version: 3
updated_at: 2026-11-24T04:29:46.173Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=pOvWgX7IJsc)**

# Can LLMs Write Fast Multi-GPU Kernels? — Simran Arora, Together AI

*Synthesized from Simran Arora's talk on AI Engineer, 2026-08-27.*

Simran Arora, lead scientist at Together AI, leads the Advanced Systems Performance Research team. The transcript renders her first name differently, and this summary uses the spelling from the title.

## Core Thesis
Simran Arora argues that the bottleneck in AI systems has moved from single-GPU compute to GPU-to-GPU communication, and that hand-written communication kernels can beat standard libraries by a wide margin. She presents Parallel Kittens, a small set of multi-GPU primitives, and Parallel Kernel Bench, a benchmark showing that current models still struggle to reason about the trade-offs needed to write such kernels.

## Key Insights
- **Why communication now.** Single-GPU kernels such as FlashAttention and newer architectures have shifted the limit to moving data between GPUs. Between A100 (2020) and B200 (2024), BF16 tensor-core speed rose about 7.2 times, while intra-node communication rose about 3 times and inter-node about 2 times.
- **Library limits.** NCCL and RCCL are tuned for large contiguous transfers, so fine-grained or complex collective work runs slower. The speaker says many common approaches run below 50% of theoretical performance.
- **Three transfer mechanisms.** Host-initiated copy engines suit large messages and use no registers or compute units. Device-initiated TMA uses few registers and can overlap work. Register-level instructions can use NVLink-switch in-network reduction. Each has a different limit.
- **Overlap strategies.** Intra-SM overlap runs communication and compute in separate warps on the same processor, and needs both sides to agree on the data. Inter-block scheduling puts compute and communication on different processors and suits cases where resources conflict. The speaker says overlap planning works best for GEMM plus reduce-scatter and inter-block for GEMM plus all-reduce.
- **Parallel Kittens.** A set of primitives and templates for multi-GPU kernels. Adding the multi-GPU parts to a single-GPU kernel takes about a dozen lines of code. It is used in production at Together AI and by partners including Cursor.
- **Parallel Kernel Bench.** 87 problems drawn from real workloads, covering data, sequence, tensor, context, layer, pipeline and expert parallelism. Each task gives a PyTorch plus NCCL baseline and a topology, and the model must write a fast CUDA kernel.
- **Results.** The best model tested in zero-shot mode solved 28 of 87 problems, and 22 of those were faster than the baseline. Multiple samples raised correct solutions from about 20 to 36, but the fast-1 rate plateaued near 31%. A Gemini 3 Pro agent with a local bash environment raised solved problems from 24 to 35, with 26 faster than baseline. Models lose efficiency quickly as the speedup threshold rises.
- **Diagnosis.** Models could compile kernels but failed to weigh data distribution, scheduling within and between SMs, or the choice of transfer mechanism. The successful kernels used familiar patterns such as collective primitives, tensor-parallel GEMM and Ulysses-style context parallelism.

## Actionable Takeaways
1. For multi-GPU workloads, profile communication before tuning compute. Standard collective libraries may leave a large share of bandwidth unused.
2. Choose the transfer mechanism by message size and resource budget: copy engines for large messages, TMA or register-level instructions for small, frequent transfers.
3. Use benchmark-based evaluation with both correctness (pass@k) and speed (fast_1@k) to judge generated kernels.
4. Do not expect more samples alone to raise speedups. The speaker found the fast-1 rate plateaued.

## Notable Quotes
> "we typically add about a dozen lines of code to the kernel for a single GPU to implement these multiprocessing primitives." — Simran Arora

> "models currently don't understand how to reason about these trade-offs" — Simran Arora

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*