Skip to content
View original post on X: SGLangOfficial
Published

SGLang explains how to run Muse Spark Open on a single TPU v7 host

AISGLang says Muse Spark Open can run on a single TPU v7 host using SGLang-TorchTPU and describes the optimizations behind it. The post cites up to 3x faster decode at small batch size, 18% faster decode on 500K-token contexts, and up to 77% more agent throughput on the AgentX workload.
SGLangVerified on XOfficial
@sgl_project
View on X

You can run Muse Spark Open on a single TPU v7 host with SGLang-TorchTPU. But how does it hold up under a brutal workload like @SemiAnalysis_ AgentX?

@radixark and Google have been working on:

  • 3× faster decode at small batch size, with custom megakernel and DFlash2
  • 18% faster decode on 500K-token contexts, with independent KV streams and max-free attention
  • Faster prefill for huge agent prompts, with fused MoE kernel and sequence parallelism
  • Twice the context per chip, with compact fp8 KV cache
  • Up to 77% more agent throughput, with HiCache and session-aware eviction

Code and recipes are available👇
http://docs.sglang.io/cookbook/autoregressive/Meta/MuseSparkOpen

PyTorch@PyTorch
Great to see the open source community pushing inference performance forward on PyTorch: A megakernel for Muse Spark Open on TPU v7 got 433 tok/s per user and up to 25.9K tok/s per chip on AgentX (1M context). All 62 layers of the 816B MoE run as one Pallas program on a single TPU v7 host, with SGLang on the TorchTPU PyTorch backend. - 1.94x faster per token than our previous path - DFlash2 speculative decoding: 2.0x per token - fp8 KV, HiCache and session-aware eviction for long agent sessions Read the full technical deep dive here: https://bit.ly/4zgrhBL @radixark
View quoted post on X
Source details

SGLang · x.comPublished · added here

Original title: You can run Muse Spark Open on a single TPU v7 host with SGLang-TorchTPU. But how does it hold up under a brutal workload like @SemiAnaly...