-
I wrote a simple demo to test pjit, the demo code tries to split the graph across 8 devices.
It works fine.
I got error:
Seems like pjit can't handle the uneven partition. But from the paper, unevenly partition is supported by GSPMD. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! At the moment I don't think this is a fundamental restriction, but it would certainly require some care in handling the boundary conditions that we haven't gotten to just yet! |
Beta Was this translation helpful? Give feedback.
Hi! At the moment
pjit
only supports even partitioning on the function boundary.with_sharding_constraint
doesn't have the same limitation, but it can only be applied in the body of a pjitted function.I don't think this is a fundamental restriction, but it would certainly require some care in handling the boundary conditions that we haven't gotten to just yet!