# Accelerate Generative AI workloads using KleidiAI

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/cross-platform/kleidiai-explainer/)
- [KleidiAI and matrix multiplication](https://learn.arm.com/learning-paths/cross-platform/kleidiai-explainer/page1/)
- [KleidiAI in a real software stack](https://learn.arm.com/learning-paths/cross-platform/kleidiai-explainer/page2/)
- [Quantizing and packing micro-kernels](https://learn.arm.com/learning-paths/cross-platform/kleidiai-explainer/page3/)
- [Next Steps](https://learn.arm.com/learning-paths/cross-platform/kleidiai-explainer/_next-steps/)

## About this Learning Path

|  |  |
| --- | --- |
| Skill level: | Introductory |
| Reading time: | 1 hr |
| Last updated: | 12 Nov 2026 |

|  |  |
| --- | --- |
| Author: | Zach Lasiuk |
| Arm IP: | [Cortex-A](https://support.arm.com/?tab=compute-ip&Product%20Type=Application%20Processors) [Neoverse](https://support.arm.com/?tab=compute-ip&Product%20Type=Infrastructure%20Processors) |
| Tags: | [AI/ML](https://learn.arm.com/tag/ai-ml/) [Arm AGI CPU](https://learn.arm.com/tag/arm-agi-cpu) [Linux](https://learn.arm.com/tag/linux) [CPP](https://learn.arm.com/tag/cpp) [Generative AI](https://learn.arm.com/tag/generative-ai) [Neon](https://learn.arm.com/tag/neon) [Runbook](https://learn.arm.com/tag/runbook) |

### 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?
After completing this Learning Path, you'll be able to perform the following tasks:
- 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'll need the following prerequisites:
- 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](https://learn.arm.com/learning-paths/servers-and-cloud-computing/csp/aws/).
- A basic understanding of linear algebra terminology, such as dot product and matrix multiplication.

### Summary
You’ll explore KleidiAI micro-kernels on Arm CPUs and see how matrix multiplication supports generative AI workloads. You’ll locate the `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.
