HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jafioti

no profile record

Submissions

Producing The Perfect Token

blog.luminal.com
1 points·by jafioti·hace 3 meses·0 comments

Compiling models to megakernels

blog.luminal.com
35 points·by jafioti·hace 6 meses·19 comments

comments

jafioti
·hace 4 meses·discuss
i did a quick scroll and was happy to see a long-ish article on XLA and TPUs. then i realized it was literally just "using vmap for parallel loops is better than fori", but in massively wordy claudisms.
jafioti
·hace 6 meses·discuss
That's a bit trite tbh. We all know of these techniques, but actually implementing them on GPUs in a low-overhead manner that maintains the model's fidelity is challenging. It's much more than just breaking out the old CS book and picking the next idea from there.
jafioti
·hace 6 meses·discuss
Thats reasonably accurate, we're fusing both pre-defined operations as well as codegenned operations. Block-level operations live inside the search space, as do kernel, warp and thread level operations. Since it's a unified search space, we can look through tons of combinations of kernel, block, warp, and thread level ops. When we go to compile them to runnable code, thread ops get compiled to warp ops, warp ops get compiled to block ops, block ops get compiled to kernel ops (megakernels live here!), so at the end of the day everything that gets ran is a kernel.

In other words, very complimentary to our search-based approach.