Running models on RISC-V with IREE
IREE compiles machine learning models to native RISC-V CPU code, with support for the RISC-V Vector extension (RVV), hand-written microkernels, and data-tiling. This post walks through the full flow for a model: importing it from PyTorch, compiling it for a RISC-V target, running it, and benchmarking the result.
All commands below run under qemu-riscv64. The flow on real hardware is
identical — the QEMU invocation is simply replaced by running the tools natively
on the target.