Accelerating a Triton Fused Kernel for W4A16 Quantized Inference with SplitK work decomposition

Adnan Hoque, Less Wright, Chih-Chieh Yang, Mudhakar Srivatsa, Raghu Ganti
1/5/2024
cs.DCcs.AI

No confident code implementation found for this paper.

Abstract

We propose an implementation of an efficient fused matrix multiplication kernel for W4A16 quantized inference, where we perform dequantization and GEMM in a fused kernel using a SplitK work decomposition. Our implementation shows improvement for the type of skinny matrix-matrix multiplications found in foundation model inference workloads.

Show full abstract

In particular, this paper surveys the type of matrix multiplication between a skinny activation matrix and a square weight matrix. Our results show an average of 65% speed improvement on A100, and an average of 124% speed improvement on H100 (with a peak of 295%) for a range of matrix dimensions including those found in a llama-style model, where m < n = k.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hoque2024accelerating,
  title  = {Accelerating a Triton Fused Kernel for W4A16 Quantized Inference with SplitK work decomposition},
  author = {Adnan Hoque and Less Wright and Chih-Chieh Yang and Mudhakar Srivatsa and Raghu Ganti},
  year   = {2024},
  eprint = {2402.00025},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.00025v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.00025.svg)](https://codeofpaper.com/paper/2402.00025)

Discussion