
Large Language Models (LLMs) are typically associated with vast racks of GPUs, but running them does not have to be. Once a model has been trained, inference can run on ordinary CPUs, from laptops to many-core servers. As new architectures (such as RISC-V) reach the server space, making tools like LLaMA.cpp run well on them is increasingly important.
This series, published since November 2026, follows the process of bringing up LLaMA.cpp on a 64-core RISC-V machine, from the first build attempts through to an understanding of its performance and limitations. This is a master post, bringing together all of the individual posts in the series.
Read more
A common perception is that all AI needs a great deal of compute power. Yet many AI inference models run successfully on the very smallest of processors.
Since September 2026, we have been publishing a series of posts, showing how the IREE MLIR tool flow can be used to bring up AI models on small bare metal microcontrollers. This post conveniently brings together all those posts.
Read more
Large language models (LLMs) are typically associated with vast racks of GPUs. However, increasingly, engineers are running AI inference on ordinary CPUs: laptops, servers without accelerators, and especially edge devices. One of the most widely used tools for this is LLaMA.cpp, an open source engine that runs LLMs on (almost) any hardware with a C compiler.
Read more
In Part 4 we got all four cores working together. In this post we write the baseline IREE has to beat: a hand-written matrix multiplication with its data in shared memory, copied into the scratchpads by the cores or by the DMA engine, and double buffered. Moving the data makes it more than four times faster; adding cores barely helps, and we find out why.
Read more
In Part 3 we ran IREE on one core and parked the other three. In this post we wake them up: we build two ways of sharing work across the cluster’s four cores on its single hardware barrier, measure what a dispatch costs, and find out why four cores are not four times faster.
Read more
IREE compiles a model once on your workstation and runs it on bare metal with a small C runtime. In Part 3 we follow a matrix multiplication from MLIR down to RISC-V, run it on one core of a four-core CV32E40Pv2 cluster, and measure what it costs against the same calculation written by hand in C.
Read more
In Part 2 we build a cycle-accurate Verilator model of a four-core CV32E40Pv2 cluster, run our first programs on it, and measure what memory costs: twenty cycles for a core to reach off-core memory, and when it pays to copy data into the fast local scratchpad first.
Read more
This summer I have been working on adding auto-vectorization for CORE-V’s SIMD (Single Instruction, Multiple Data) extension in GCC. CORE-V SIMD was developed by the PULP project at ETH Zürich and the University of Bologna. It is similar to, but predates, the proposed RISC-V P extension. The work here is based on the OpenHW Foundation’s […]
Read more
IREE compiles a machine learning model into native code for your target, instead of interpreting it through a fixed library of kernels. In Part 1 we explain why that suits a small bare metal microcontroller, compare it with ExecuTorch, and introduce the four-core CV32E40Pv2 cluster this series runs on.
Read more