Today’s transformer models contain billions of parameters, which makes it impossible to do training and inference on a single accelerator (e.g., GPU, TPU). This motivates to distribute the compute and memory across accelerators. The picture illustrates one parallelism technique called Tensor Parallelism (TP). A transformer consists of multiple identical layers, and each layer has self-attention, multi-layer perceptron (MLP), normalization, and residual add. Self-attention and MLP blocks contain most of the weights, making them ideal candidates for parallelization. The idea is to partition the big matrix of parameters in MLP and Self-Attention across accelerators. Each accelerator performs multiplications, and then the results are combined. There are a lot of interesting systems questions. What if the accelerators are heterogeneous, meaning they have different compute and memory resources? Since combining results involves network, how to ensure the computation is not stalled by the weakest compute node?
Open in Telegram
ibragimov
Computer Science @ CMU
Latest posts
This summer, I will also be joining Scale AI as an SWE intern. My first real internship 👀
Open in TelegramI have joined CMU’s Computer Architecture and Operating Systems (CAOS) research group to work on developing fault-tolerant OS primitives for machine learning inference. I would love to build my career on operating systems research, and it is a very long road ahead…
Open in TelegramSome people say that they learn by letting the LLM do the coding and then they review it. This is absurd. You learn by doing the things yourself first. Claude Code is good for quickly testing things/ideas, but if you let it do your personal project, assignment, or research, you start losing on the learning opportunity.
Open in Telegram300+ hours, 400+ commits, and 6283 lines of code. This is the amount of effort it took us to build a Unix-like, preemptive kernel that supports multithreading and has 20+ system calls within 5 weeks. One thing that CMU taught me is that there is no limit on what you can learn. You can do the craziest things out there with the right support, clear goals, strong dedication, and genuine passion. It is curiosity that fueled me to push when life sucked because the kernel kept breaking. Keep exploring and do not settle until you find something that keeps you awake at night.
Open in Telegram