Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

SGLang-TorchTPU accelerates Muse Spark Open on TPU v7

AI summary

PyTorch Blog describes serving Meta’s 816B-parameter Muse Spark Open on a four-chip TPU v7 host using SGLang on the TorchTPU backend. The implementation combines a megakernel spanning all 62 layers, speculative decoding, hierarchical KV caching, fused MoE kernels, and sequence parallelism; the authors report halved per-token decode time for one or two concurrent requests, with gains narrowing as concurrency rises. Its AgentX measurements and comparisons are from the authors’ own setup, while the GB200 baseline comes from previously published InferenceX results.

In-depth insight

The post provides a detailed, measurable example of how fused kernels and TPU-specific serving techniques can improve large open-weight MoE inference.

TL;DR

We serve Meta’s Muse Spark Open, an 816B-parameter mixture-of-experts model, on a single TPU v7 host of four chips, with SGLang running on the TorchTPU PyTorch backend. At the center is a megakernel: all 62 layers of a decode or verify step run as one Pallas program, and every weight load, KV read and cross-device transfer is pipelined behind compute. The rest of the work falls into three groups: faster decode steps (collective folding, a max-free attention loop that pipelines its KV chunks, an expert loop that keeps register spills off its common path, and DFlash2 speculative decoding), more KV cache per chip (sequence-on-lane KV layout in the megakernel, and L2 HiCache on TPU with session-aware eviction), and faster prefill (a fused MoE kernel and sequence parallelism).

  • Decode speed. The megakernel halves the time per output token for one or two concurrent requests, where it helps the most; the gain narrows as concurrency grows. Its verify step runs within 1.5–1.7× of the time it takes just to stream its weights from HBM.
  • AgentX. On the 1M-context version of SemiAnalysis’s agentic-coding benchmark, our curve runs from 433 output tokens/s per request at 6,101 tokens/s per chip to 25,906 tokens/s per chip at 95 tokens/s per request (Figure 1).

#Meta#Muse Spark Open#SGLang-TorchTPU#Google TPU v7#PyTorch#Pallas#InferenceX AgentX

Original · 24 min readRead the original
Group chat

No comments yet. Start the conversation.