irhum.github.io - Tensor Parallelism with jax.pjit
With proper sharding, LLMs can scale far beyond the memory capacity of a single GPU/TPU. We explore the math underpinning this from the ground up, and then implement a fully working implementation with JAX/Flax.
irhum.github.io