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
Does anybody have an idea why we might see a ValueError: RESOURCE_EXHAUSTED: Out of memory allocating 0 bytes. when doing anything sharded on CPU?
The context is perhaps a bit obscure: using JAX with Julia linked in via juliacall, including a Julia "system image", on Mac OS on Apple Silicon (problem not seen on Linux/x86_64). A lot of JAX works fine with this config, but lax.cond and jax.jacobian can trigger some sharded stuff (e.g. execute_sharded) that leads to these strange exceptions.
I am looking for any hints I could use to debug further or work around the issue. Many thanks!
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.
-
Does anybody have an idea why we might see a
ValueError: RESOURCE_EXHAUSTED: Out of memory allocating 0 bytes.
when doing anything sharded on CPU?The context is perhaps a bit obscure: using JAX with Julia linked in via
juliacall
, including a Julia "system image", on Mac OS on Apple Silicon (problem not seen on Linux/x86_64). A lot of JAX works fine with this config, butlax.cond
andjax.jacobian
can trigger some sharded stuff (e.g.execute_sharded
) that leads to these strange exceptions.I am looking for any hints I could use to debug further or work around the issue. Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions