Muse Spark Open on TPU v7: SGLang-TorchTPU speeds up inference

News PyTorch Blog · Source account, not independently verified by us.

A single TPU v7 host with four chips can serve Meta’s Muse Spark Open through SGLang-TorchTPU, according to a PyTorch backend report describing how a megakernel architecture accelerates inference for the mixture-of-experts model. This matters for running large models on TPU hardware because it coordinates data movement and computation closely.

Muse Spark Open has 816 billion parameters in total, with about 42 billion active per token, and 62 decoder layers. The megakernel combines a decode or verify step into one Pallas program instead of running the layers across multiple kernel calls and synchronization points. Weights, KV-cache data, and transfers between devices are moved ahead of or alongside computation.

For a single request, the team reports cutting time per output token in half where the benefit is greatest; the gap narrows as concurrency increases. A separate comparison using DFlash2 speculative decoding reports 1.94× speedup for one request and 1.85× for two concurrent requests, measured with an earlier model checkpoint. Other optimizations target KV-cache capacity and prefill.

The post also explains the hardware layout, kernel pipelining, and benchmark setup. The measurements apply to the described configuration and are not a general guarantee for other models or systems. Read the PyTorch post

🇬🇧 https://pytorch.org/blog/optimizing-muse-spark-open-on-tpu-v7-with-sglang-torchtpu

Leave a Comment

The weekly brief: selected developments, projects and videos