Implement tensor-parallel linear layers (column-parallel then row-parallel) with correct f

Infrastructure, Distributed Training & Scaling4 / 4

Chapter 234 / 4

Infrastructure, Distributed Training & Scaling

Implement tensor-parallel linear layers (column-parallel then row-parallel) with correct f

Super-hard

Implement tensor-parallel linear layers (column-parallel then row-parallel) with correct forward/backward collectives in PyTorch.

Target interface
class _CopyToModelParallel

Implement the function/class skeleton in the editor. Any correct approach is accepted.

Hints0 / 2
Reference solution
Your own code stays in the editor.