Compute-Bound vs Memory-Bound

[๐๐] In AI, ๐ฐ๐ผ๐บ๐ฝ๐๐๐ฒ-๐ฏ๐ผ๐๐ป๐ฑ means the chip is limited by how fast it can do math. ๐ ๐ฒ๐บ๐ผ๐ฟ๐-๐ฏ๐ผ๐๐ป๐ฑ means itโs limited by how fast it can move data.
๐๐ผ๐บ๐ฝ๐๐๐ฒ-๐ฏ๐ผ๐๐ป๐ฑ
This is the usual bottleneck in ๐๐ฟ๐ฎ๐ถ๐ป๐ถ๐ป๐ด. The GPU/TPU is busy crunching huge batches of matrix math, so performance depends on raw ๐๐๐ข๐ฃ๐ฆ.
๐ ๐ฒ๐บ๐ผ๐ฟ๐-๐ฏ๐ผ๐๐ป๐ฑ
This is the big issue in ๐๐๐ ๐ถ๐ป๐ณ๐ฒ๐ฟ๐ฒ๐ป๐ฐ๐ฒ. Models generate ๐ผ๐ป๐ฒ ๐๐ผ๐ธ๐ฒ๐ป ๐ฎ๐ ๐ฎ ๐๐ถ๐บ๐ฒ, and each token requires pulling the modelโs weights through memory. The problem isnโt the math โ itโs ๐ด๐ฒ๐๐๐ถ๐ป๐ด ๐๐ต๐ฒ ๐๐ฒ๐ถ๐ด๐ต๐๐ ๐๐ผ ๐๐ต๐ฒ ๐ฐ๐ผ๐บ๐ฝ๐๐๐ฒ ๐ฐ๐ผ๐ฟ๐ฒ๐ ๐ณ๐ฎ๐๐ ๐ฒ๐ป๐ผ๐๐ด๐ต.
Because on-chip memory is too small, the weights live in ๐ผ๐ณ๐ณ-๐ฐ๐ต๐ถ๐ฝ ๐๐๐ , and the cores often sit idle waiting for data. So inference speed is capped by ๐บ๐ฒ๐บ๐ผ๐ฟ๐ ๐ฏ๐ฎ๐ป๐ฑ๐๐ถ๐ฑ๐๐ต, not compute power.
Originally published on LinkedIn.
Turn your expertise into LinkedIn posts like this one.
Try Postars free โ