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
I have the problem that a function re-compiles for the first 2-3 times, when I call the function in a for loop for n >> 10 times. Using the jax debug logs, I can narrow it down to differences in 'argument mapping'
jax._src.interpreters.pxla - DEBUG - Compiling [function name] for with global shapes and types [ShapedArray(uint32[2]),
ShapedArray(float32[5]), ShapedArray(float32[5])]. Argument mapping: [UnspecifiedValue, UnspecifiedValue, UnspecifiedValue].
jax._src.interpreters.pxla - DEBUG - Compiling [function name] for with global shapes and types [ShapedArray(uint32[2]),
ShapedArray(float32[5]), ShapedArray(float32[5])]. Argument mapping: [UnspecifiedValue, GSPMDSharding({replicated}),
GSPMDSharding({replicated})].
Is there more documentation what the difference between UnspecifiedValue and GSPMDSharding({replicated}) is?
How can one alter or prevent this recompilation from happening?
These parameters that change mapping belong to a flax network state.
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 have the problem that a function re-compiles for the first 2-3 times, when I call the function in a
for
loop forn >> 10
times. Using thejax
debug logs, I can narrow it down to differences in 'argument mapping'Is there more documentation what the difference between
UnspecifiedValue
andGSPMDSharding({replicated})
is?How can one alter or prevent this recompilation from happening?
These parameters that change mapping belong to a
flax
network state.Beta Was this translation helpful? Give feedback.
All reactions