redline-tiny

Qwen-Image-2.1-Turbo photo editing and text-to-image on the Ryzen AI NPU of an ordinary Windows laptop. 1024×1024, 8 steps. No GPU, no cloud.

What it is

Drop in a photo and say what should change, or describe a new picture. The text encoder, the 32-block DiT and the VAE decoder all run on the NPU. The Radeon iGPU encodes the input photo while the NPU reads the prompt, and the CPU only does glue.

Models stay loaded between requests. The same prompt, seed and photo give the same bytes every time.

44 sper edit
32–37 sper new image
1024×10248 steps, Turbo model

Ryzen AI 9 HX 375 (HP OmniBook Ultra 14). "tiny" is the laptop NPU build. A bigger sibling is coming :)

Pipeline

Red is the NPU, teal the iGPU, grey the CPU. The photo encode on the iGPU overlaps the text encoder, so it costs nothing. Text-to-image skips the photo branch.

Pipeline diagram: photo and prompt go to the iGPU VAE encoder and the NPU text encoder, then the NPU DiT, then the NPU VAE decoder, then a 1024 by 1024 PNG. A first-run path converts official Qwen weights to bfp16 NPU layout.

Weights are bfp16: 8 values share one 8-bit exponent, 9 bytes per 8 values, laid out in the order the NPU cores read them. The conversion from the official weights runs once on your PC. What worked and what didn't is in AMD kernel hell.

Benchmarks

1024×1024, warm server unless noted.

ModelSetupPer image
redline-tiny, text-to-imageQwen-Image-2.1-Turbo (7B DiT + 8B encoder)HX 375 NPU, 8 steps32–37 s
redline-tiny, editQwen-Image-2.1-Turbo (7B DiT + 8B encoder)HX 375 NPU, 8 steps44 s
redline-tiny, edit, coldQwen-Image-2.1-TurboHX 375 NPU, 8 steps, incl. all model loading66.5–69.8 s
VigenFlow, text-to-imageQwen-Image-2.1-TurboSame laptop, 8 steps32.9–33.5 s
VigenFlow, editQwen-Image-2.1-TurboSame laptop, 8 steps51–53 s
VigenFlow, edit, coldQwen-Image-2.1-TurboSame laptop, incl. all model loading74.8–75.6 s
Same edit on the CPUQwen-Image-2.1-TurboHX 375, PyTorch bf16706 s
AMD/Stability NPU path (Amuse), PCWorld testSD3 Medium (2B)Ryzen AI 9 365 NPU, 20 steps~90 s
Same, HotHardware testSD3 Medium (2B)Ryzen AI Max+ 395 NPU, 1 MP + NPU upscale to 2048²~70 s

VigenFlow was measured back to back on the same laptop, from the same input and starting noise. The other rows are not apples to apples: different models, step counts and chips. The SD3 Medium times are reviewers' measurements; AMD publishes no per-image timings for its NPU image models. The NPU is about 16× faster than the CPU on the same edit.

Requirements

Install

  1. Download the ZIP from GitHub and unzip it somewhere short, like C:\redline-tiny.
  2. Run Install.cmd. It checks your PC and asks whether you already have the model and the NPU programs. Anything missing is only downloaded after it tells you what and how big. Packing the weights for the NPU takes a few minutes, once.
  3. Double-click redline-tiny on the desktop. The app opens in your browser.

Install.cmd -CheckOnly checks the chip, driver, RAM and disk without downloading anything.

Credits and licences

Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) 2026 Hangzhou Tongyi Laboratory Technology Co., Ltd. All Rights Reserved.