logoalt Hacker News

xdavidliuyesterday at 7:59 PM2 repliesview on HN

i don't understand what the second paragraph is saying.


Replies

nine_kyesterday at 8:50 PM

In very crude terms, AFAICT, if you have a bunch of matrix multiplications, but one of matrices (the one with model weights) doesn't change, you can seriously speed up the computation. One thing is that you don't need to re-fetch the elements of the constant matrix, you can keep it near the ALUs. Then you maybe can detect and ignore sparse / empty blocks by marking them once.

IDK how the custom hardware exploits this; would love to hear any ideas!

show 2 replies
otterdudeyesterday at 8:17 PM

Basically getting around the branch predictor problem with generalized compute architectures https://en.wikipedia.org/wiki/Branch_predictor