# Install

## Requirements

|  |  |
| --- | --- |
| Operating system | Linux or Windows, x86\_64. On Windows use native PowerShell; WSL is not supported. |
| NPU | AMD Ryzen AI with an XDNA2 (NPU2) NPU. See [Hardware and drivers](<https://rocm.github.io/FastFlow-SDK/reference/hardware/index.md>). |
| Driver | The `amdxdna` driver on Linux, the AMD NPU driver on Windows. Each release lists the versions it was qualified on. |
| Python | 3.12, 3.13, or 3.14. The standalone archive needs no Python. |

## Python wheels

Releases are on [PyPI](<https://pypi.org/project/fastflow-sdk/>) as one `fastflow-sdk` wheel per platform. Create a virtual environment and activate it before every command below:

```
# Windows
winget install --exact --id Python.Python.3.12
py -3.12 -m venv $HOME\fastflow
& $HOME\fastflow\Scripts\Activate.ps1
```

```
# Linux
sudo apt-get install -y python3.12 python3.12-venv
python3.12 -m venv ~/fastflow
source ~/fastflow/bin/activate
```

Install the latest release:

```
python -m pip install fastflow-sdk
```

To install one release, pin its version, `"fastflow-sdk==<version>"`, with a version from the [Release notes](<https://rocm.github.io/FastFlow-SDK/releases/index.md>).

The wheel contains these parts of the SDK:

| Part | Provides |
| --- | --- |
| FastFlowLM | `flm` and the model registry |
| Runtime | `fastflow`, the HRX runtime library, and the `fastflow_sdk_runtime` Python helpers |
| Compiler | iron-tools: `aie.iron`, `aiecc`, `aie-opt`, Peano |
| Operators | the IRON operator library, `iron.operators` |
| Qualification | `fastflow qualify`, for validating a release on a machine. See [Model qualification](<https://rocm.github.io/FastFlow-SDK/qualification/index.md>). |

### Development builds

Development builds are published on [GitHub Releases](<https://github.com/ROCm/FastFlow-SDK/releases>) between releases, not on PyPI. Install them from the FastFlow SDK package index:

```
python -m pip install --pre --only-binary=:all: --extra-index-url https://rocm.github.io/FastFlow-SDK/simple fastflow-sdk
```

Pin `"fastflow-sdk==<version>"` to install one development build. They install the SDK as separate packages, such as `fastflow-sdk-runtime` and `fastflow-sdk-fastflowlm`, instead of the single PyPI wheel. Use a new virtual environment to switch between a release and a development build.

A development build's packages are `fastflow-sdk-fastflowlm`, `fastflow-sdk-runtime`, `fastflow-sdk-compiler`, `fastflow-sdk-ops`, and the optional `fastflow-sdk-qualification`. You can also install one alone; the runtime and FastFlowLM alone need Python 3.11 or newer.

## Verify the install

```
fastflow version
fastflow probe --json
fastflow doctor
fastflow self-test
flm list
flm run qwen3:0.6b
```

`fastflow doctor` and `fastflow self-test` exit 0 when everything passes. `flm run` downloads the model on first use and needs access to Hugging Face; type `/bye` to leave the chat. If a check fails, look it up in [Troubleshooting](<https://rocm.github.io/FastFlow-SDK/reference/troubleshooting/index.md>). After installing or changing a driver, reboot before you debug further.

## Standalone archive

Each release also has a relocatable FastFlowLM and HRX archive, `fastflow-sdk-windows-x86_64.zip` or `fastflow-sdk-linux-x86_64.tar.zst`. It runs models without Python but cannot compile NPU programs.

```
# Windows
Expand-Archive .\fastflow-sdk-windows-x86_64.zip -DestinationPath .
cd .\fastflow-sdk-windows-x86_64
.\bin\fastflow.exe version
.\bin\fastflow.exe probe --json
.\bin\fastflow.exe doctor
.\bin\fastflow.exe self-test
.\bin\flm.exe list
.\bin\flm.exe run qwen3:0.6b
```

```
# Linux
tar --zstd -xf fastflow-sdk-linux-x86_64.tar.zst
cd fastflow-sdk-linux-x86_64
./bin/fastflow version
./bin/fastflow probe --json
./bin/fastflow doctor
./bin/fastflow self-test
./bin/flm list
./bin/flm run qwen3:0.6b
```

## Upgrade

Add `--upgrade` to the install command:

```
python -m pip install --upgrade fastflow-sdk
```

For a development build, add `--upgrade` to its install command instead. `fastflow-sdk` pins each of its packages to its own version, so they move to the new build together.

To build the SDK yourself instead, see [Build from source](<https://rocm.github.io/FastFlow-SDK/build-from-source/index.md>).
