3 ms·
Can this optimization be applied to matmult for us, critters who are running llama on cpu? XD
by rini17 2y ago
Can this optimization be applied to matmult for us, critters who are running llama on cpu? XD
- twoodfin 2y agoI don't think this really helps: It's a trick to drive maximum possible memory bandwidth in service of a single executing thread which can process data as fast as it's being delivered. A parallel matrix multiply running across every core shouldn't have any trouble maximizing memory bandwidth utilization.
- owlbite 2y agoKV-cache based LLM inference is normally significantly memory bound on the matrix-vector multiply. This is (part of) why the quantization-based approaches are so popular.