ulysses — all heads become a full sequence on fewer heads
One exchange gives each device the full sequence for an equal share of the heads. Attention on that share matches attention computed on one device for those same heads. A second exchange puts each device back on its sequence shard, now with every head. When the head count does not divide by the device count, the exchange is refused. The sequence length does not have to divide evenly.
The sequence starts split across devices, with every head on each device. One exchange hands each device the full sequence and an equal share of the heads. Attention on those heads matches attention computed on one device for the same heads. A second exchange returns the sequence shards, now carrying every head.
Four heads on two devices is two heads per device. Three heads on two devices is refused, because the heads do not divide evenly.