News for hackers. Stuff that matters.
Re:Ask HN: How do you scale transformer context lengths over... by dauertewigkeit on Saturday November 25, 2023 @06:06AM (#38412762)
Not sure how they do it specifically for LLMs, but you can do what is called model or tensor parallelism where you can split a layer over multiple GPUs or even nodes. If you look under the hood it's the same distributed matrix multiplication stuff with MPI, as far as I know.

I think Deepspeed has bespoke transformer kernels which handle this stuff specifically.

There are no comments on this comment yet.