PyTorch open-sources IBM Spyre Dataflow Scheduler v1
According to the PyTorch Blog, version 1 of the open-source Dataflow Scheduler converts KTIR programs into dataflow pipelines and lowers them through DataflowIR into SpyreCode for IBM’s Spyre accelerator. It supports multi-core elementwise operations with broadcast and reduction dimensions and has been validated end to end on representative transformer operations. Matrix multiplication support and cost-model-driven performance optimization are still underway.
The release provides an open-source MLIR dataflow backend connecting PyTorch-facing workflows to IBM Spyre. The report presents end-to-end LLM execution as a goal rather than a demonstrated capability and says matrix multiplication support is still being completed.
TL;DR
Torch-spyre’s Inductor decides how each kernel’s work is divided across Spyre’s cores and manages tensor residency between on-chip scratchpad and off-chip memory, and the backend compiler turns those decisions into something the hardware can actually run. The contract between them is represented using KTIR (Kernel Tile IR), an MLIR representation built on a data-parallel view of the accelerator, in which every compute tile can see every memory and a single logical tensor can live spread across several cores’ scratchpads. A new open-source Dataflow Scheduler consumes KTIR and turns each tile’s work into a dataflow pipeline: it splits the kernel into programs, starts from a simple load → compute → store pipeline, routes every transfer through the memory hierarchy given in an architecture description, and expands that pipeline into a nested, double-buffered, multi-instance schedule. The output of the scheduler is represented using DataflowIR, an MLIR intermediate representation that Spyre’s device-specific stages use to produce SpyreCode, a symbolic SpyreBinary plus a job plan that the Spyre runtime prepares once and launches many times, filling in tensor addresses and shapes at launch.
#PyTorch#IBM Spyre#torch-spyre#Dataflow Scheduler#KTIR#DataflowIR#SpyreCode#Triton