Skip to content
Discussion options

You must be logged in to vote

Hi - this is a good question, and things are admittedly a bit confusing now because they're in flux and still not well documented.

The TL;DR is you should use shard_map for explicit parallelism, and jit for automatic parallelism; xmap and pmap are deprecated, and pjit is now part of jit.

Some details:

  • pmap is the oldest and least flexible parallelizing transformation. It is severely limited: for example, you can only map over axes with the same shape as the number of devices, and it can't be easily nested. It's mostly replaced by shard_map, though it may live on as a convenient wrapper of shard_map.
  • xmap is a slightly-less-old attempt to generalize vmap and pmap, but it has mostly been s…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@johannahaffner
Comment options

@jakevdp
Comment options

@johannahaffner
Comment options

@arnoegw
Comment options

@jakevdp
Comment options

Answer selected by Artur-Galstyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants