Could something like this be done in WebGPU?
Multiplatform Matrix Multiplication Kernels
21–30 of 32 posts
Re: Multiplatform Matrix Multiplication Kernels
#22I had bet that matmult would be in transformer-optimized hardware costing a fraction of GPUs first class in torch 2 years ago with no reason to use GPUs any more. Wrong.
> matmult would be in transformer-optimized hardware It is... it's in GPUs lol > first class in torch It is > costing a fraction of GPUs Why would anyone give you this for cheaper than GPUs lol?
Re: Multiplatform Matrix Multiplication Kernels
#23Earlier quoted context omitted.
> matmult would be in transformer-optimized hardware It is... it's in GPUs lol > first class in torch It is > costing a fraction of GPUs Why would anyone give you this for cheaper than GPUs lol?
I think they’re referring to hardware like TPUs and other ASICs. Which also exist, of course :)
Re: Multiplatform Matrix Multiplication Kernels
#24Re: Multiplatform Matrix Multiplication Kernels
#25One of the author here, don't hesitate if you have any question or comment!
Re: Multiplatform Matrix Multiplication Kernels
#26I had bet that matmult would be in transformer-optimized hardware costing a fraction of GPUs first class in torch 2 years ago with no reason to use GPUs any more. Wrong.
So really GPU v not GPU (e.g. TPU) doesn't matter a whole lot if you've got fundamentally the same memory architecture.
Re: Multiplatform Matrix Multiplication Kernels
#27I'm sorry this is a low brow comment but this is the dumbest thing you can do in this space: > Unit (thread in CUDA, invocation in Vulkan/Wgpu): the smallest execution entity performing computations. > Plane (warp in CUDA, subgroup in Vulkan/Wgpu): a group of (typically 32) units executing in lockstep and able to share data efficiently through registers. > Cube (thread block in CUDA, workgroup in Vulkan/Wgpu): a grou…
Re: Multiplatform Matrix Multiplication Kernels
#28Has there been much research into slightly flawed matrix multiplications? If you have a measure of correctness, and a measure of performance. Is there a maximum value of correctness per some unit of processing that exists below a full matrix multiply Obviously it can be done with precision, since that is what floating point is. But is there anything where you can save x% of computation and have fewer than x% incorrec…
Re: Multiplatform Matrix Multiplication Kernels
#29Has there been much research into slightly flawed matrix multiplications? If you have a measure of correctness, and a measure of performance. Is there a maximum value of correctness per some unit of processing that exists below a full matrix multiply Obviously it can be done with precision, since that is what floating point is. But is there anything where you can save x% of computation and have fewer than x% incorrec…