# FAQ

Common questions about the Open Inference Stack.


## Which hardware is supported?

| NPU | Example SoCs | Kernel driver | Mesa driver |
|---|---|---|---|
| VeriSilicon VIPNano-QI | Amlogic A311D | `etnaviv` (Linux 6.7) | `etnaviv` (Mesa 24.1) |
| VeriSilicon VIPNano-SI+ | NXP i.MX 8M Plus | `etnaviv` (Linux 6.8) | `etnaviv` (Mesa 25.0) |
| Rockchip RKNN | Rockchip RK3588 | `rocket` (Linux 6.18) | `rocket` (Mesa 25.3) |
| Arm Ethos-U65 / U85 | NXP i.MX 93 | `ethosu` (Linux 6.19) | `ethosu` (Mesa 26.0) |

**Is your hardware missing?** [Here's how to add support for it](http://model-citizen.ai/getting-started/new-hardware/index.md).


## Does the open stack work with TVM?

Not yet, but we envision this could be achieved using TVM's
[Bring Your Own Codegen](https://tvm.apache.org/docs/how_to/tutorials/bring_your_own_codegen.html)
framework. Implementation efforts would be very welcome. It could work just like
[Torx](/getting-started/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](/getting-started/teflon/)) or to PyTorch format (for
[Torx](/getting-started/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](https://onnxruntime.ai/docs/execution-providers/add-execution-provider.html)
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](https://www.yoctoproject.org/) and
[Debian](https://www.debian.org/) 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](/getting-started/teflon/) or [Torx](/getting-started/torx/).

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

It depends on which framework you use.

With [Teflon](/getting-started/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](/getting-started/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.

## Is this related to the vendor's own NPU SDK?

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.


---
Source: http://model-citizen.ai/faq/
