# Contribute

How to get involved with the Open Inference Stack & Model Citizen.


The Open Inference Stack is built the same way as the rest of the Linux graphics
stack: in public open source projects, upstream, with code review.

To become a contributor to the stack, you just need to follow the usual
contribution norms for those projects.

## Where the code lives

| Part | Where |
|---|---|
| Kernel drivers | [`drivers/accel/`](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/accel) in Linux (`etnaviv` is in `drivers/gpu/drm/etnaviv/`) |
| Teflon & Torx frontends | [`src/gallium/frontends/`](https://gitlab.freedesktop.org/mesa/mesa/-/tree/main/src/gallium/frontends/) in Mesa |
| Mesa NPU drivers | `src/gallium/drivers/` (`etnaviv`, `rocket`, `ethosu`, ...) |

Read the project's own developer guidelines:

- Linux:
  [Kernel Development Process](https://docs.kernel.org/process/development-process.html),
  [Submitting patches](https://docs.kernel.org/process/submitting-patches.html)
  and the [accel subsystem documentation](https://docs.kernel.org/accel/).
- Mesa: [Developer Topics](https://docs.mesa3d.org/repository.html) and
  [Submitting patches](https://docs.mesa3d.org/submittingpatches.html).

Development discussions for the stack can be found in `#ml-mainline` on
[OFTC IRC](https://www.oftc.net/).

## Supporting new hardware

Want to add support for a new NPU or AI accelerator? See
[Supporting new hardware](/getting-started/new-hardware/).

## Other ways to get involved

- **Test models.** Run your models with `TEFLON_DEBUG=verbose`, compare NPU and
  CPU results, and share what works and what does not.
- **Report bugs** to the
  [Mesa issue tracker](https://gitlab.freedesktop.org/mesa/mesa/-/issues) with
  the model, the board, the kernel and Mesa versions, and the verbose log.
- **[Package it.](/getting-started/integration/)** Make sure your distribution
  enables the NPU drivers in its kernel and ships Mesa with the open NPU drivers
  and frontends.
- **Add operations.** Supporting one more ML operation in an existing driver is
  a good first contribution, and it helps every model that uses it.
- **Spread the word.** Help us increase adoption and grow the community around
  the Open Inference Stack.

## Contribute to Model Citizen

This site is written in Markdown and built with [Hugo](https://gohugo.io). Every
page has an **Edit this page** link at the bottom. Corrections, new board guides
and better explanations are all welcome: open an issue or a pull request on
[GitHub](https://github.com/Model-Citizen-AI/Model-Citizen-AI).


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