Accelerate Generative AI workloads using KleidiAI
Introduction
KleidiAI and matrix multiplication
KleidiAI in a real software stack
Quantizing and packing micro-kernels
Next Steps
Accelerate Generative AI workloads using KleidiAI
Who is this for?
This is an introductory topic for developers who want to learn how to use KleidiAI to accelerate the execution of Generative AI workloads on hardware.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Describe how basic math operations power Large Language Models.
- Describe how the KleidiAI micro-kernels speed up Generative AI inference performance.
- Run a basic C++ matrix multiplication example to showcase the speedup that KleidiAI micro-kernels can deliver.
Prerequisites
Before starting, you will need the following:
- An Arm-based Linux machine that implements the Int8 Matrix Multiplication (i8mm) architecture feature. The example in this Learning Path is run on an AWS Graviton 3 instance. Instructions on setting up an Arm-based server are found here .
- A basic understanding of linear algebra terminology, such as dot product and matrix multiplication.
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
matmul kernels and packing and quantization routines in the KleidiAI GitLab repository, review the architecture, and identify when a framework can invoke i8mm kernels. Then, you’ll run a C++ example that exercises the i8mm kernel and its supporting data path, so you can trace the optimized execution directly.Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
/kai/ukernels/matmul in the KleidiAI GitLab repository. The pack directory contains quantization and packing routines. Adjacent directories contain the matrix multiplication routines.