A two-person team integrated SGLang with IBM’s Spyre accelerator in less than a week, with help from AI coding agents. The result is an open-source plugin of roughly 1,500 lines that makes SGLang’s serving capabilities available on Spyre.
The team built on existing Spyre support in PyTorch and SGLang’s extension interfaces. The agents used existing PyTorch implementations for Spyre as references, then adapted integration code to SGLang’s backend interfaces. Four small patches added support; the article says some of the compatibility changes could also benefit other accelerators.
In the reported measurements, SGLang on Spyre delivered about 3.6 times the throughput of the reference PyTorch inference implementation using torch-spyre. For the measured workloads on Granite 3.3 8B and Gemma 4 26B A4B, SGLang performed on par with vLLM. RadixCache prefix sharing also worked without Spyre-specific changes because its processing takes place in SGLang’s scheduler.
The plugin is open source alongside SGLang. Using it requires an installed and configured Spyre runtime, torch-spyre, the plugin, and compatibility patches. The original post also explains the integration steps and performance comparisons: PyTorch Blog original post.
🇬🇧 https://pytorch.org/blog/integrating-sglang-into-spyre-in-under-a-week-with-ai