[GH-ISSUE #4734] [Docs] How to run on AMD RX 5700 XT (gfx1010) under Windows Qwen3.8-Flash-Next IQ3_S with 256к context (k8v4), decode ~17-30ts, ~120 prefill and ~1gb free vram #2170

Open
opened 2026-11-04 01:57:13 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @Dima-azyra on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4734

Final -> Qwen3.8-Flash-Next IQ3_S on AMD RX 5700 XT, 256к context (k8v4), decode ~17-30ts, ~120 prefill and ~1gb free vram

This guide describes how to get the Qwen3.8-Flash-Next IQ3_S model running on an AMD RX 5700 XT using the original Strata engine.

Environment:

  • GPU: AMD Radeon RX 5700 XT (8 GB VRAM, gfx1010)
  • OS: Windows 10/11 (64-bit)
  • Engine: 0.1.45.3 (source: prebuilt, backend: hip)
  • ROCm: 10.2.0a20260930 (AMD TheRock)
  • hipBLASLt: 100500
  • Python: 3.10+ (from python.org, not Microsoft Store)

Prerequisites:

  • Visual Studio 2022 Build Tools ("Desktop development with C++").
  • 64 GB of RAM.
  • Model files: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S .

Step 1: Prepare the source code

  1. Clone/download Strata: git clone https://github.com/Niko1221/Strata.git / Download "Source code (zip)" https://github.com/Niko1221/Strata/releases/tag/v0.1.45.
  2. Open setup.py. Find _WIN_AMD_DID and add: 0x731F: "gfx1010".
  3. Save the file.

Step 2: Build the engine for gfx1010

  1. Open cmd in the Strata folder.
  2. Run: set STRATA_HIP_ARCHS=gfx1010
  3. Run: tools\hip\build_windows.bat
  4. Wait 30–60 min. It creates dist\strata-windows-x64-hip.zip. Do not delete this folder.

Step 3: Install the model

You can use the interactive setup menu. If your GGUF files are already in the default Strata-data\models folder, just run:

python setup.py --backend hip --setup

The setup will prepare the model and create run-iq3_s.bat and strata-iq3_s.json

my strata-iq3_s.json

 "exe": "G:\\ai\\Strata-main\\engine\\strata.exe",
 "args": [
  "--pack",
  "G:\\ai\\Strata-data\\packs\\iq3_s",
  "--native",
  "G:\\ai\\Strata-data\\models\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
  "--ple-gguf",
  "G:\\ai\\Strata-data\\models\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
  "--expert-profile",
  "G:\\ai\\Strata-main\\data\\expert-profile.bin",
  "--expert-cache",
  "1",
  "--prefill",
  "2048",
  "--spec",
  "4",
  "--spec-min-p",
  "0.8",
  "--mtp",
  "G:\\ai\\Strata-data\\mtp\\rt",
  "--max-context",
  "262144",
  "--kv",
  "k8v4",
  "--vision",
  "--adapt-async",
  "1",
  "--kv-resident",
  "16384",
  "--prefill-head-alias",
  "--short-read",
  "0"
 ],
 "env": {
  "STRATA_PREFILL_CPU_SHARE": "1"
 },
 "cwd": "G:\\ai\\Strata-main",
 "tokenizer": "G:\\ai\\Strata-data\\packs\\iq3_s\\tokenizer",
 "model_name": "qwen3.8-flash-next-iq3_s",
 "log": "G:\\ai\\Strata-main\\strata-iq3_s.log",
 "lib_dirs": [
  "G:\\ai\\Strata-main\\engine\\rocm\\bin"
 ],
 "port": 8080,
 "reasoning_effort": "medium",
 "backend": "hip",
 "vision": {
  "exe": "G:\\ai\\Strata-main\\engine\\strata-vision.exe",
  "mmproj": "G:\\ai\\Strata-data\\models\\mmproj-Qwen3.8-Flash-Next-BF16.gguf",
  "model": "G:\\ai\\Strata-data\\models\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
  "gpu": false,
  "max_tokens": 300,
  "threads": 16
 },
 "open_browser": false,
 "allowed_hosts": ["host.docker.internal"]
}

strata-iq3_s.log

Originally created by @Dima-azyra on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4734 # Final -> Qwen3.8-Flash-Next IQ3_S on AMD RX 5700 XT, 256к context (k8v4), decode ~17-30ts, ~120 prefill and ~1gb free vram This guide describes how to get the **Qwen3.8-Flash-Next IQ3_S** model running on an **AMD RX 5700 XT** using the original Strata engine. **Environment:** - **GPU:** AMD Radeon RX 5700 XT (8 GB VRAM, gfx1010) - **OS:** Windows 10/11 (64-bit) - **Engine:** `0.1.45.3` (source: `prebuilt`, backend: `hip`) - **ROCm:** `10.2.0a20260930` (AMD TheRock) - **hipBLASLt:** `100500` - **Python:** 3.10+ (from [python.org](https://www.python.org/), **not** Microsoft Store) **Prerequisites:** - Visual Studio 2022 Build Tools ("Desktop development with C++"). - **64 GB of RAM**. - Model files: `Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S `. ## Step 1: Prepare the source code 1. Clone/download Strata: `git clone https://github.com/Niko1221/Strata.git` / Download "Source code (zip)" https://github.com/Niko1221/Strata/releases/tag/v0.1.45. 2. Open `setup.py`. Find `_WIN_AMD_DID` and add: `0x731F: "gfx1010"`. 3. Save the file. ## Step 2: Build the engine for gfx1010 1. Open `cmd` in the Strata folder. 2. Run: `set STRATA_HIP_ARCHS=gfx1010` 3. Run: `tools\hip\build_windows.bat` 4. Wait 30–60 min. It creates `dist\strata-windows-x64-hip.zip`. **Do not delete this folder.** ## Step 3: Install the model You can use the interactive setup menu. If your GGUF files are already in the default `Strata-data\models` folder, just run: ```cmd python setup.py --backend hip --setup ``` The setup will prepare the model and create run-iq3_s.bat and strata-iq3_s.json my strata-iq3_s.json ```{ "exe": "G:\\ai\\Strata-main\\engine\\strata.exe", "args": [ "--pack", "G:\\ai\\Strata-data\\packs\\iq3_s", "--native", "G:\\ai\\Strata-data\\models\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf", "--ple-gguf", "G:\\ai\\Strata-data\\models\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf", "--expert-profile", "G:\\ai\\Strata-main\\data\\expert-profile.bin", "--expert-cache", "1", "--prefill", "2048", "--spec", "4", "--spec-min-p", "0.8", "--mtp", "G:\\ai\\Strata-data\\mtp\\rt", "--max-context", "262144", "--kv", "k8v4", "--vision", "--adapt-async", "1", "--kv-resident", "16384", "--prefill-head-alias", "--short-read", "0" ], "env": { "STRATA_PREFILL_CPU_SHARE": "1" }, "cwd": "G:\\ai\\Strata-main", "tokenizer": "G:\\ai\\Strata-data\\packs\\iq3_s\\tokenizer", "model_name": "qwen3.8-flash-next-iq3_s", "log": "G:\\ai\\Strata-main\\strata-iq3_s.log", "lib_dirs": [ "G:\\ai\\Strata-main\\engine\\rocm\\bin" ], "port": 8080, "reasoning_effort": "medium", "backend": "hip", "vision": { "exe": "G:\\ai\\Strata-main\\engine\\strata-vision.exe", "mmproj": "G:\\ai\\Strata-data\\models\\mmproj-Qwen3.8-Flash-Next-BF16.gguf", "model": "G:\\ai\\Strata-data\\models\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf", "gpu": false, "max_tokens": 300, "threads": 16 }, "open_browser": false, "allowed_hosts": ["host.docker.internal"] } ``` [strata-iq3_s.log](https://github.com/user-attachments/files/34360187/strata-iq3_s.log)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6530951158 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@Dima-azyra commented on GitHub (Oct 31, 2026):

Additional report: running the IQ3_S model on the same RX 5700 XT (8 GB VRAM)

Following up on the original guide, I also managed to get Qwen3.8-Flash-Next IQ3_S (the ~47 GB transformer weights + PLE shard) running on the same AMD RX 5700 XT (gfx1010, 8 GB VRAM) under Windows. This is a larger quantization than Coder IQ1_M, so the settings differ.

Hardware & Software:

  • GPU: AMD RX 5700 XT (8 GB, gfx1010)

  • RAM: 64 GB

  • OS: Windows 10 (64-bit)

  • Engine: 0.1.45.3 (built from source via tools\hip\build_windows.bat)

  • ROCm: TheRock 10.2.0a20260930

  • hipBLASLt: 100500

  • Model: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf and ...-00002-of-00002.gguf (IQ3_S)

Key settings and observations:

--kv q4_0 is essential. With --kv int8 or --kv fp16 the KV cache alone (at 128K context) leaves no VRAM for the expert cache. Switching to q4_0 compresses the cache enough to fit a few slots.

--expert-cache auto yields only 80+ slots (0.2 GiB) because the card is almost full.

--spec 4 --spec-min-p 0.85 was the most stable setting for me. I started with the default 0.5, but on long contexts (50K+ tokens) the MTP verify windows would sometimes stall or produce many rejected drafts, causing decode to drop. Raising --spec-min-p to 0.85 made the drafter more conservative: it proposes a draft only when highly confident, which reduces wasted verification work and keeps decode stable at ~17-32 tok/s even at 100K+ context.

Context length up to 131,072 works for prompt processing. I successfully processed prompts of 100K+ tokens at ~100–130 tok/s, and generated thousands of tokens in a single request without crashes. (On long prompts (2K+ tokens). Short prompts may vary more due to overhead).

--vision (multimodal support) is also tested and working. It runs on the CPU (as set in the config with "gpu": false), which leaves VRAM free for the expert cache. Image encoding is functional and correctly feeds the model without disrupting text generation.

Speed:

  • Short chats: ~17–32 tok/s decode.

  • Long generations (after a 100K prompt): ~17–32 tok/s decode.

  • Prompt prefill: ~100–130 tok/s for 4K–111K tokens.

Sample command (from my strata-iq3_s.json):

{
 "exe": "G:\\ai\\Strata-main\\engine\\strata.exe",
 "args": [
  "--pack",
  "G:\\ai\\Strata-data\\packs\\iq3_s",
  "--native",
  "G:\\ai\\Strata-data\\models\\IQ3_S\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
  "--ple-gguf",
  "G:\\ai\\Strata-data\\models\\IQ3_S\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
  "--expert-profile",
  "G:\\ai\\Strata-main\\data\\expert-profile.bin",
  "--expert-cache",
  "auto",
  "--prefill",
  "auto",
  "--spec",
  "4",
  "--spec-min-p",
  "0.85",
  "--mtp",
  "G:\\ai\\Strata-data\\mtp\\rt",
  "--max-context",
  "131072",
  "--kv",
  "q4_0",
  "--vision",
  "--adapt-async",
  "1"
 ],
 "env": {
  "STRATA_PIN_BY_NEED": "1",
  "STRATA_PREFILL_MMQ": "1",
  "STRATA_PREFILL_CPU_SHARE": "auto"
 },
 "cwd": "G:\\ai\\Strata-main",
 "tokenizer": "G:\\ai\\Strata-data\\packs\\iq3_s\\tokenizer",
 "model_name": "qwen3.8-flash-next-iq3_s",
 "log": "G:\\ai\\Strata-main\\strata-iq3_s.log",
 "lib_dirs": [
  "G:\\ai\\Strata-main\\engine\\rocm\\bin"
 ],
 "port": 8080,
 "reasoning_effort": "medium",
 "backend": "hip",
 "vision": {
  "exe": "G:\\ai\\Strata-main\\engine\\strata-vision.exe",
  "mmproj": "G:\\ai\\Strata-data\\models\\mmproj-Qwen3.8-Flash-Next-BF16.gguf",
  "model": "G:\\ai\\Strata-data\\models\\IQ3_S\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
  "gpu": false,
  "max_tokens": 300,
  "threads": 16
 },
 "open_browser": false,
 "allowed_hosts": ["host.docker.internal"]
}

Bottom line: IQ3_S is heavier than IQ1_M, but with --kv q4_0 and --spec-min-p 0.85, it runs stably on 8 GB VRAM. Expect low expert cache hit rates and CPU-bound decode (~17-32 tok/s), but it is fully usable for long-context work — and vision support works too.

<!-- gh-comment-id:6539902996 --> @Dima-azyra commented on GitHub (Oct 31, 2026): **Additional report: running the IQ3_S model on the same RX 5700 XT (8 GB VRAM)** Following up on the original guide, I also managed to get Qwen3.8-Flash-Next IQ3_S (the ~47 GB transformer weights + PLE shard) running on the same AMD RX 5700 XT (gfx1010, 8 GB VRAM) under Windows. This is a larger quantization than Coder IQ1_M, so the settings differ. **Hardware & Software:** - GPU: AMD RX 5700 XT (8 GB, gfx1010) - RAM: 64 GB - OS: Windows 10 (64-bit) - Engine: 0.1.45.3 (built from source via tools\hip\build_windows.bat) - ROCm: TheRock 10.2.0a20260930 - hipBLASLt: 100500 - Model: Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf and ...-00002-of-00002.gguf (IQ3_S) **Key settings and observations:** --kv q4_0 is essential. With --kv int8 or --kv fp16 the KV cache alone (at 128K context) leaves no VRAM for the expert cache. Switching to q4_0 compresses the cache enough to fit a few slots. --expert-cache auto yields only 80+ slots (0.2 GiB) because the card is almost full. --spec 4 --spec-min-p 0.85 was the most stable setting for me. I started with the default 0.5, but on long contexts (50K+ tokens) the MTP verify windows would sometimes stall or produce many rejected drafts, causing decode to drop. Raising --spec-min-p to 0.85 made the drafter more conservative: it proposes a draft only when highly confident, which reduces wasted verification work and keeps decode stable at ~17-32 tok/s even at 100K+ context. Context length up to 131,072 works for prompt processing. I successfully processed prompts of 100K+ tokens at ~100–130 tok/s, and generated thousands of tokens in a single request without crashes. (On long prompts (2K+ tokens). Short prompts may vary more due to overhead). --vision (multimodal support) is also tested and working. It runs on the CPU (as set in the config with "gpu": false), which leaves VRAM free for the expert cache. Image encoding is functional and correctly feeds the model without disrupting text generation. **Speed:** - Short chats: ~17–32 tok/s decode. - Long generations (after a 100K prompt): ~17–32 tok/s decode. - Prompt prefill: ~100–130 tok/s for 4K–111K tokens. **Sample command (from my strata-iq3_s.json):** ``` { "exe": "G:\\ai\\Strata-main\\engine\\strata.exe", "args": [ "--pack", "G:\\ai\\Strata-data\\packs\\iq3_s", "--native", "G:\\ai\\Strata-data\\models\\IQ3_S\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf", "--ple-gguf", "G:\\ai\\Strata-data\\models\\IQ3_S\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf", "--expert-profile", "G:\\ai\\Strata-main\\data\\expert-profile.bin", "--expert-cache", "auto", "--prefill", "auto", "--spec", "4", "--spec-min-p", "0.85", "--mtp", "G:\\ai\\Strata-data\\mtp\\rt", "--max-context", "131072", "--kv", "q4_0", "--vision", "--adapt-async", "1" ], "env": { "STRATA_PIN_BY_NEED": "1", "STRATA_PREFILL_MMQ": "1", "STRATA_PREFILL_CPU_SHARE": "auto" }, "cwd": "G:\\ai\\Strata-main", "tokenizer": "G:\\ai\\Strata-data\\packs\\iq3_s\\tokenizer", "model_name": "qwen3.8-flash-next-iq3_s", "log": "G:\\ai\\Strata-main\\strata-iq3_s.log", "lib_dirs": [ "G:\\ai\\Strata-main\\engine\\rocm\\bin" ], "port": 8080, "reasoning_effort": "medium", "backend": "hip", "vision": { "exe": "G:\\ai\\Strata-main\\engine\\strata-vision.exe", "mmproj": "G:\\ai\\Strata-data\\models\\mmproj-Qwen3.8-Flash-Next-BF16.gguf", "model": "G:\\ai\\Strata-data\\models\\IQ3_S\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf", "gpu": false, "max_tokens": 300, "threads": 16 }, "open_browser": false, "allowed_hosts": ["host.docker.internal"] } ``` Bottom line: IQ3_S is heavier than IQ1_M, but with --kv q4_0 and --spec-min-p 0.85, it runs stably on 8 GB VRAM. Expect low expert cache hit rates and CPU-bound decode (~17-32 tok/s), but it is fully usable for long-context work — and vision support works too.
Author
Owner

@Niko1221 commented on GitHub (Oct 31, 2026):

Thank you for writing this up. docs/OLDER_GPUS.md already lists the RX 5700 XT (gfx1010) with a by-hand build and Coder IQ1_M figures at 32K. Your IQ3_S settings are new; a pull request that adds them (with the engine version, ROCm version and the commands) would be welcome.

<!-- gh-comment-id:6547929782 --> @Niko1221 commented on GitHub (Oct 31, 2026): Thank you for writing this up. docs/OLDER_GPUS.md already lists the RX 5700 XT (gfx1010) with a by-hand build and Coder IQ1_M figures at 32K. Your IQ3_S settings are new; a pull request that adds them (with the engine version, ROCm version and the commands) would be welcome.
Author
Owner

@Dima-azyra commented on GitHub (Nov 1, 2026):

strata-iq3_s.log

<!-- gh-comment-id:6555022309 --> @Dima-azyra commented on GitHub (Nov 1, 2026): [strata-iq3_s.log](https://github.com/user-attachments/files/34233297/strata-iq3_s.log)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6555674839 --> @github-actions[bot] commented on GitHub (Nov 1, 2026): Thanks, this follows the format now.
bsakaguchi changed title from [GH-ISSUE #4734] [Docs] How to run Strata on AMD RX 5700 XT (gfx1010) under Windows to [GH-ISSUE #4734] [Docs] How to run on AMD RX 5700 XT (gfx1010) under Windows Qwen3.8-Flash-Next IQ3_S with 256к context (k8v4), decode ~17-30ts, ~120 prefill and ~1gb free vram 2026-11-07 14:37:10 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2170
No description provided.