Metadata-Version: 2.4
Name: furiosa-kernels
Version: 2026.6.0b0
Summary: TCL kernels for NPU
Author-email: "FuriosaAI, Inc." <pkg@furiosa.ai>
License-Expression: LicenseRef-Proprietary
Project-URL: Homepage, https://github.com/furiosa-ai/npu-tools
Project-URL: Repository, https://github.com/furiosa-ai/npu-tools
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: furiosa-tcl==2026.6.0b0
Requires-Dist: transformers<6,>=5.15.0
Requires-Dist: typing-extensions

# furiosa-kernels

TCL kernels for FuriosaAI NPU models, as the `furiosa.kernels` Python package.

The kernels are written in TCL, the Python-embedded language from [`furiosa-tcl`](../furiosa-tcl).
`furiosa-kernels` depends on `furiosa-tcl`, so installing it also provides `furiosa.tcl`.
Nightly and release wheels of `furiosa-kernels` require exactly the `furiosa-tcl` version built with them;
other combinations are not supported.
See the [furiosa-tcl README](../furiosa-tcl/README.md) for how to write and build a `@tcl.kernel`.

## Install

Python 3.12 or newer is required.

```bash
cd /path/to/npu-tools/furiosa-kernels
uv sync
```

`uv sync` installs `furiosa-tcl` from `../furiosa-tcl` in editable mode.
With `pip`, install both from the tree; `furiosa-kernels` alone fetches `furiosa-tcl` from the package index:

```bash
pip install -e ../furiosa-tcl -e .
```

## Test

```bash
uv run pytest tests/ -n 24
```

## Layout

- `src/furiosa/kernels/`: per-model kernels (`llama/`, `qwen3/`, ...) and shared building blocks (`common/`).
- `metadata/`: kernel IO metadata shared with furiosa-runtime (see its README).
- `tests/`: kernel and TCL tests.
- `tools/duplicate_check/`: duplicate-kernel detection.
- `CONTRIBUTING.MODEL.md`: how to add a model.
