q, k, v = out.split(C, dim=2)
print(q.shape, k.shape, v.shape)
torch.Size([2, 5, 12]) torch.Size([2, 5, 12]) torch.Size([2, 5, 12])
split(C, dim=2) cuts the last axis into pieces C wide:
The tests read the fused weight in that order, so split in that order.
In the editor, build qkv for C = 12 and split its output on x into q, k and v. The checks read the layer's weight to confirm that k is the middle third.