FAQ

Common questions about the Open Inference Stack.

Which hardware is supported? #

NPUExample SoCsKernel driverMesa driver
VeriSilicon VIPNano-QIAmlogic A311Detnaviv Linux 6.7etnaviv Mesa 24.1
VeriSilicon VIPNano-SI+NXP i.MX 8M Plusetnaviv Linux 6.8etnaviv Mesa 25.0
Rockchip RKNNRockchip RK3588rocket Linux 6.18rocket Mesa 25.3
Arm Ethos-U65 / U85NXP i.MX 93ethosu Linux 6.19ethosu Mesa 26.0

Is your hardware missing? Here's how to add support for it

Does the open stack work with TVM? #

Not yet, but we envision this could be achieved using TVM’s Bring Your Own Codegen framework. Implementation efforts would be very welcome. It could work just like Torx’s ahead-of-time compilation for a selected NPU:

  • On the host side, the new TVM backend would call into Mesa for partitioning, compiling subgraphs into the target NPU format, and serialising them into bytes.
  • On the runtime side, the TVM runtime would deserialise the subgraph bytestream and feed it to Mesa’s Gallium ML runtime for execution on the NPU.

Does the open stack work with ONNX? #

The ONNX model format is not directly supported, however numerous tools exist that can convert ONNX models to tflite format (for Teflon) or to PyTorch format (for Torx). A future TVM integration would also offer direct support for ONNX models.

We hope to achieve integration with ONNX Runtime (ORT) in future. Implementation efforts would be very welcome. Like TVM, ORT’s Execution Provider framework appears like it would fit well with Gallium’s ML interface.

Does the open stack work with IREE? #

Not today. It should be possible to produce an IREE HAL that uses Mesa for partitioning, compilation and execution. Implementation efforts would be very welcome.

Which Linux distros support the stack? #

We’re focusing our efforts on achieving standard out-of-the-box support for the stack on Yocto and Debian due to their dominance in the embedded software space. However, the stack is in no way limited to these distros, and because the stack is integrated into standard components (Linux & Mesa) we expect that all major distros will include comprehensive support.

Which models are accelerated? #

The NPUs currently supported are small, power efficient accelerators designed for 8-bit convolutional neural networks (CNNs), such as image classification, object detection, segmentation and pose estimation. These models are well supported and accelerated by the stack.

Support for Large Language Models (LLMs) is in scope, but not yet present. Complications include:

  • LLMs typically rely on more complex mathematical operations which may not be well supported by these ultra-specialized NPUs.
  • LLMs generally require far more memory access than CNNs, to the point where memory bandwidth is a much bigger limitation than computation speed.

On typical embedded devices, it’s possible that NPUs will not offer significant benefits for running LLMs; you might get equivalent or better results running them on the CPU or GPU. However, we will continue to enhance the stack with support for as many operations and models as we can implement, which may ultimately offer improved performance for transformer models in some cases.

Do I need to change my application? #

No. The Open Inference Stack sits at the lower layers of the AI stack, and is designed to plug into existing industry-standard AI frameworks like LiteRT and PyTorch. You just need to instruct those frameworks to use Teflon or Torx.

Do I need to recompile my model for each NPU? #

It depends on which framework you use.

With Teflon, no. Mesa compiles the model for the NPU it finds when the model is loaded, so the same .tflite file runs on every supported NPU.

With Torx, yes. In line with ExecuTorch’s ahead-of-time design, Mesa compiles the model when you export it for a chosen NPU. The resultant model only runs on that exact NPU configuration, so you need to export once for each target.

In both cases, you still need to keep in mind the underlying architecture of your target platforms; not all operations can realistically be accelerated by the NPU, and currently supported NPUs typically require models to be quantized to 8 bits to run well.

No. The open stack is a separate, upstream implementation. It does not use the vendor’s SDK, runtime or kernel module, and you do not need them installed.

We hope that vendors consider the Open Inference Stack to be their official/primary offering in future, and acknowledge and appreciate ongoing involvement from vendors such as Arm and Rockchip.

Edit this page · View as Markdown