# Looped Qwen3.8-Flash-Next running on Strix Halo (gfx1151) with Strata, ~47 tok/s

> Source: <https://forum.level1techs.com/t/looped-qwen3-8-flash-next-running-on-strix-halo-gfx1151-with-strata-47-tok-s/261490#post_1>
> Published: 2026-12-03 00:29:44+00:00

**Recommendation:** Compile the loop kernel through the shared HIP/CUDA kernel library to run Looped Qwen3.8-Flash-Next on gfx1151, and budget about 100 GiB of memory for 128K context with int8 KV cache.
More in the playbook "Inference and self-hosting": <https://wpnews.pro/playbooks/inference-serving>

This looks very cool, basically the similar looped approach we’ve seen recently in smaller models like Inkling 2 applied as an adapter to Qwen3.8-Flash-Next. I just built it for Strix Halo, here’s how and the results I got. Can’t wait for halogen to add the same functionality.

The [Looped adapter](https://huggingface.co/alesha-pro/Looped-Qwen3.8-Flash-Next) runs layers 16–31 twice (T=2) on top of the frozen base. It’s 268 MB, and the fork’s docs only list CUDA. But the loop kernel (`loop_adapter.cu`) sits in the kernel library that both the CUDA and HIP builds share, so it compiles for gfx1151 with no patches.

**Box:** Ryzen AI Max+ 395, 128 GB, Fedora 44, kernel 7.3.4, Docker 29.10.

**Pieces**

`feat/looped-qwen4exp`, commit `aebf1cf` (engine 0.1.70), a fork of `rocm-gfx1151` image ships
**Build (in a throwaway `ubuntu:24.04` container)**

```
apt-get install -y build-essential cmake ninja-build git python3 python3-venv curl patchelf file binutils
# untar TheRock into $SDK, then: ln -s lib/llvm $SDK/llvm
git clone -b feat/looped-qwen4exp https://github.com/alesha-pro/Strata.git && cd Strata
VARIANT=halo HP=$SDK PKGVER=0.1.70 COMMIT=$(git rev-parse HEAD) JOBS=28 \
  bash tools/packaging/build_hip_linux.sh          # ~2 min on 32 threads
```

Then build the image from that engine package. Run this on the host:

```
tools/docker/build.sh --flavor hip \
  --engine out/components/engine/0.1.70-linux-x86_64-hip-halo \
  --tag strata-looped:0.1.70-rocm-gfx1151
```

**Run (compose excerpt)**

```
devices: [/dev/kfd, /dev/dri]
ipc: host
ulimits: { memlock: { soft: -1, hard: -1 } }
volumes:
  - ./strata-data:/data
  - /path/to/ud-iq4_xs:/models:ro
  - /path/to/looped-adapter:/adapter:ro
environment:
  FAMILY: unsloth
  MODEL: UD-IQ4_XS
  MODEL_PATH: /models/Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00003.gguf
  CONTEXT: 128k
  TUNE: quick
  STRATA_SET: "loop-adapter=/adapter/ckpt_final.safetensors loop-passes=2"
```

The first start checks the GGUF, builds the pack, fetches the DFlash2 drafter (0.34 GB) and tunes. The quick tune changed nothing. The engine then runs with:

`--max-context 131072 --kv int8 --kv-resident 32768 --draft dflash2 --spec 8 --loop-adapter … --loop-passes 2`.

DFlash2 limits it to one request at a time.

**Numbers (T=2, temp 0, thinking off, 1 run each, OpenAI API, streamed)**

| Prompt | Tokens | TTFT | Decode | 
|---|---|---|---|
| Code (LRU cache module + tests) | 700 | 0.71 s | 47.5 tok/s | 
| Prose (~300-word explainer) | 414 | 0.59 s | 36.2 tok/s | 

Memory: ~100 GiB in use once loaded (~65 GiB GPU allocations + ~28 GiB of mapped GGUF + a few GiB host-side), 128K context, int8 KV.
