About Model Citizen

AI was born open. Let's keep it that way.

Model Citizen is a community building the Open Inference Stack: open drivers and tooling for running AI on complex, heterogeneous hardware, built to plug into the frameworks and compilers you already use.

Why we’re here #

Let’s take a quick glance at the history of Machine Learning & Artificial Intelligence. The ideas behind these technologies were published as papers anyone could read. The tools to build AI, including TensorFlow and PyTorch, were released as open source. Open-weight models arrived early and continuously.

Few important technologies have started out this open. For example, modems, image signal processors and GPUs spent years behind closed drivers and vendor SDKs before software support became smooth and ubiquitous.

In the case of the evolving AI/ML industry, this openness is under threat. In order to use an AI accelerator in an embedded device, today’s advertised path is generally to use a vendor-specific inference stack. This will offer integration with an open framework such as PyTorch, but often locked to a specific vendor-modified version. And the vendor-specific (or even NPU-specific) layers that sit below are often closed-source solutions. The end result is a large amount of fragmentation in the software ecosystem, with plenty of awkward black boxes which you cannot study or improve.

AI was born open, and the software stack that runs it at the edge should stay open too. We’re here to develop and document fully open source software solutions that allow embedded NPUs and other AI accelerators to “just work.”

The solution #

The Open Inference Stack brings AI accelerators into line with everything else. Open source kernel drivers live in Linux’s DRM accel subsystem, paired with userspace drivers in the Mesa 3D Graphics and Compute Library. Multiple standard frameworks such as TensorFlow Lite and PyTorch plug in on top.

Typical vendor stack vs. Open Inference StackBoth stacks run your application and model on AI accelerator hardware (e.g. NPU). Typical vendor stack, from top to bottom: Vendor SDK & model compiler; Proprietary runtime; Closed userspace driver; Custom kernel module; Vendor BSP kernel. Open Inference Stack, from top to bottom: TensorFlow Lite / LiteRT, or PyTorch → ExecuTorch, or Your next AI framework; Teflon delegate, or Torx backend, or A new Mesa frontend; Mesa NPU drivers; DRM accel drivers; Any distro kernel.Typical vendor stackOpen Inference StackYour application and modelVendor SDK & model compilerone per vendor, often one per chipProprietary runtimebinary libraries, pinned versionsClosed userspace driverno source, no auditCustom kernel modulerebuilt for every kernelVendor BSP kernelstuck on an old releaseYour application and modelTensorFlow Lite / LiteRTunmodified, official versionPyTorch → ExecuTorchunmodified, official versionYour next AI frameworkplugs into the same layersswappableTeflon delegatein mainline MesaTorx backendin mainline MesaA new Mesa frontendwritten once, works on every NPUswappableMesa NPU driversetnaviv · rocket · ethosu · thamesDRM accel driversin mainline LinuxAny distro kernelup-to-date & secureOpen Inference StackAI accelerator hardware (e.g. NPU)
Every layer of the open stack is open source software, and the top layers can be swapped.

Advantages of the Open Inference Stack #

It just works! #

Any distribution with a recent kernel and Mesa. The accelerator is just another device, like your GPU, and it keeps working when you upgrade.

One stack to learn #

If you build AI products, you no longer need to work out which SDK each vendor and each product needs. The same framework runs on every supported accelerator.

Contribute instead of carrying patches #

The code is open and upstream. Fix a bug or add an operation once, get it reviewed, and stop maintaining your own fork.

Shared tools, higher quality #

Consistent behaviour across hardware, shared debugging and audit tools, documentation, security practice and automated testing. Less duplicated effort, better quality for everyone.

Roadmap #

The Open Inference Stack supports many existing NPUs through official, upstream Linux & Mesa drivers, and integrates with multiple standard AI frameworks. But there is plenty left to do. Here’s where we’re heading:

  • More framework integration. We want to ensure comprehensive integration with all industry-standard frameworks and compilers. IREE, TVM and ONNX Runtime are missing from this picture, but hopefully only temporarily.
  • More kinds of hardware. NPUs are where this started, and more NPU device support is in the pipeline. We are also interested in providing open solutions for other types of AI accelerators, such as DSPs and FPGAs.
  • Beyond Linux. Other open operating systems like Zephyr and FreeRTOS deserve the same open path to their accelerators.

If one of these matters to you, we’d love your help.

Who we are #

The Open Inference Stack started as an effort by Tomeu Vizoso to unify vendor-specific NPU support into an accepted, upstream-worthy framework. This involved developing upstream device drivers in Linux and Mesa for NPU hardware, and enabling Mesa to be integrated with LiteRT and ExecuTorch.

The stack is now receiving contributions from a growing community of individuals and companies, including a team at BayLibre that also created Model Citizen, the landing page and documentation site for the Open Inference Stack.

Model Citizen is for the community, by the community. The stack became a community effort because people showed up to contribute; we hope the same happens here, and we invite you to get involved.

Edit this page · View as Markdown