November 2024
Intermediate to advanced
408 pages
12h 7m
English
In this appendix, we gather two (and a half) experimental parallelization techniques, namely, xmap() (plus the half, shmap()) and pjit(). xmap() is an older technique that was deleted in the JAX version 0.4.31 (July 29, 2024). However, it still might be interesting for those who need to understand legacy code or who want to understand the evolution of parallelization in JAX better.
The xmap() transformation helps parallelize functions easier than pmap(), with less code, replacing nested pmap() and vmap() calls, and without manual tensor reshaping. It also introduces the named-axis programming model that helps you write more error-proof code.
At some point in time, xmap() stopped being actively developed ...
Read now
Unlock full access