Parallelism (ML Training)

See this for the different paradigms: https://colossalai.org/docs/concepts/paradigms_of_parallelism/

Read this guide here, and watch the CS336 videos

A Transformer operates on tensors of shape . The four parallelism dimensions split different axes:

Resources

Forms of parallelism:

These seem like a great set of walkthroughs: https://uvadlc-notebooks.readthedocs.io/en/latest/tutorial_notebooks/scaling/JAX/single_gpu_techniques.html

Resources

Really good blog from JAX

There are 2 ways to parallelize: https://docs.oneflow.org/en/v0.4.0/extended_topics/model_mixed_parallel.html