Research notebook

Tensor Parallelism’s Communication Boundary notebook

Edit a Python cell and run it here. Your code runs in this browser tab; the notebook runtime and packages are served by this site.

Python starts when you choose Run.

Tensor Parallelism’s Communication Boundary

A paired matrix partition shows where tensor parallelism needs communication, and why the nonlinearity determines that boundary.

Original CPU forward-pass illustration using ReLU; not a distributed Megatron-LM implementation or GPU scaling test.

The code uses Python 3 and the standard library. Saved output is from the checked CPU run.

Python · cell 1
dense=[7, -5]; split=[7, -5]
expanded_tensor_bytes=1048576
output_reduction_tensor_bytes=262144

Sources

  • Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism: https://arxiv.org/html/1909.08053v4

Python runs locally in this page. Saved results and figures are visible before execution.

Download full experiment notebook