{"slug": "looped-qwen3-8-flash-next-running-on-strix-halo-gfx1151-with-strata-47-tok-s", "title": "Looped Qwen3.8-Flash-Next running on Strix Halo (gfx1151) with Strata, ~47 tok/s", "summary": "A developer running the handle alesha-pro built a Looped adapter for Qwen3.8-Flash-Next on AMD's Strix Halo (gfx1151) integrated GPU using the Strata inference engine, reaching 47.5 tok/s decode on a 700-token code prompt and 36.2 tok/s on a 414-token prose prompt at 128K context with int8 KV cache. The 268 MB adapter runs layers 16–31 twice (T=2) on top of the frozen base model, and the loop kernel (loop_adapter.cu) compiled for gfx1151 without patches because it sits in the kernel library shared by the CUDA and HIP builds. The setup used a Ryzen AI Max+ 395 with 128 GB of memory on Fedora 44, consuming roughly 100 GiB once loaded, with DFlash2 speculative decoding limiting it to one request at a time.", "body_md": "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.\n\nThe [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.\n\n**Box:** Ryzen AI Max+ 395, 128 GB, Fedora 44, kernel 7.3.4, Docker 29.10.\n\n**Pieces**\n\n`feat/looped-qwen4exp`, commit `aebf1cf` (engine 0.1.70), a fork of `rocm-gfx1151` image ships\n**Build (in a throwaway `ubuntu:24.04` container)**\n\n```\napt-get install -y build-essential cmake ninja-build git python3 python3-venv curl patchelf file binutils\n# untar TheRock into $SDK, then: ln -s lib/llvm $SDK/llvm\ngit clone -b feat/looped-qwen4exp https://github.com/alesha-pro/Strata.git && cd Strata\nVARIANT=halo HP=$SDK PKGVER=0.1.70 COMMIT=$(git rev-parse HEAD) JOBS=28 \\\n  bash tools/packaging/build_hip_linux.sh          # ~2 min on 32 threads\n```\n\nThen build the image from that engine package. Run this on the host:\n\n```\ntools/docker/build.sh --flavor hip \\\n  --engine out/components/engine/0.1.70-linux-x86_64-hip-halo \\\n  --tag strata-looped:0.1.70-rocm-gfx1151\n```\n\n**Run (compose excerpt)**\n\n```\ndevices: [/dev/kfd, /dev/dri]\nipc: host\nulimits: { memlock: { soft: -1, hard: -1 } }\nvolumes:\n  - ./strata-data:/data\n  - /path/to/ud-iq4_xs:/models:ro\n  - /path/to/looped-adapter:/adapter:ro\nenvironment:\n  FAMILY: unsloth\n  MODEL: UD-IQ4_XS\n  MODEL_PATH: /models/Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00003.gguf\n  CONTEXT: 128k\n  TUNE: quick\n  STRATA_SET: \"loop-adapter=/adapter/ckpt_final.safetensors loop-passes=2\"\n```\n\nThe 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:\n\n`--max-context 131072 --kv int8 --kv-resident 32768 --draft dflash2 --spec 8 --loop-adapter … --loop-passes 2`.\n\nDFlash2 limits it to one request at a time.\n\n**Numbers (T=2, temp 0, thinking off, 1 run each, OpenAI API, streamed)**\n\n| Prompt | Tokens | TTFT | Decode | \n|---|---|---|---|\n| Code (LRU cache module + tests) | 700 | 0.71 s | 47.5 tok/s | \n| Prose (~300-word explainer) | 414 | 0.59 s | 36.2 tok/s | \n\nMemory: ~100 GiB in use once loaded (~65 GiB GPU allocations + ~28 GiB of mapped GGUF + a few GiB host-side), 128K context, int8 KV.", "url": "https://wpnews.pro/news/looped-qwen3-8-flash-next-running-on-strix-halo-gfx1151-with-strata-47-tok-s", "canonical_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_at": "2026-12-03 00:29:44+00:00", "updated_at": "2026-12-03 00:45:16.789893+00:00", "lang": "en", "topics": ["large-language-models", "ai-infrastructure", "ai-chips", "ai-tools"], "entities": ["Qwen3.8-Flash-Next", "Strix Halo", "gfx1151", "Strata", "alesha-pro", "Ryzen AI Max+ 395", "DFlash2", "Hugging Face"], "also_reported_by": [], "takeaway": "On a Ryzen AI Max+ 395 with 128 GB, the 268 MB Looped adapter (layers 16–31 run twice) plus DFlash2 speculative decoding hit 47.5 tok/s decode on a 700-token code prompt and 36.2 tok/s on 414 tokens of prose at 128K context with int8 KV cache.", "recommendation": {"advice": "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.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/looped-qwen3-8-flash-next-running-on-strix-halo-gfx1151-with-strata-47-tok-s", "markdown": "https://wpnews.pro/news/looped-qwen3-8-flash-next-running-on-strix-halo-gfx1151-with-strata-47-tok-s.md", "text": "https://wpnews.pro/news/looped-qwen3-8-flash-next-running-on-strix-halo-gfx1151-with-strata-47-tok-s.txt", "jsonld": "https://wpnews.pro/news/looped-qwen3-8-flash-next-running-on-strix-halo-gfx1151-with-strata-47-tok-s.jsonld"}}