-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pmap inside jit #5681
Comments
You can see how this is passed to XLA using x = jnp.ones((1, 2, 3))
w = jnp.ones((2, 3))
jax.make_jaxpr(f)(w, x)
In particular, you can see that both @jax.jit
def f(w, x):
@jax.partial(jax.pmap, in_axes=(None, 0))
def g(w, x):
return w * x
return g(w, x) which generates a nearly identical jaxpr. |
Also note that calling |
Here
w
is being captured byg
so it works in terms of shapes but its unclear if / howw
being distributed to each device.What is actually happening here?
Edit
Assume:
The text was updated successfully, but these errors were encountered: