You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pmap data parallel works as expected but when I try to reproduce with pjit, the training won't converge. Must be my incomplete, or wrong understanding about sharding semantics.
However, can't wrap my head around how replicated model params along dp axis aggregate the learning of SPMD? Can't use pmean or psum since pjit would ingest parallel ops automatically.
What's wrong with my understanding? Can someone point me a direction to move forward? Paper, code, blog, discussion thread, anything. Much appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on spmd_mnist_classifier_fromscratch.py in the /examples.
pmap
data parallel works as expected but when I try to reproduce withpjit
, the training won't converge. Must be my incomplete, or wrong understanding about sharding semantics.In
pmap
, the param update fn is:I thought the
pjit
version should be like this:However, can't wrap my head around how replicated model params along
dp
axis aggregate the learning of SPMD? Can't usepmean
orpsum
since pjit would ingest parallel ops automatically.What's wrong with my understanding? Can someone point me a direction to move forward? Paper, code, blog, discussion thread, anything. Much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions