r/StrixHalo • • Sep 24 '26

Gufo: the all-in-one strix halo inference engine

Thumbnail
github.com
271 Upvotes

Hello, we are happy to share a project that a friend of mine and I have been working on for a while. It's an extremely optimized inference engine for the Strix Halo platform. We both have a Framework Desktop with 128 GB of RAM and were tired of juggling multiple forks of llama.cpp and other projects trying to optimize model X or model Y. We wanted something vertically integrated for the hardware we own, extremely optimized, and an all-in-one solution including LLMs, audio, video, image, etc.

The tool is called Gufo, it's fully open source under the MIT license, and we welcome any contributions. I'll summarize our philosophy in these few points:

  • Contributions are welcome! We need the help of the Strix Halo community to keep improving Gufo!

  • We would like this to be the one-stop shop for Strix Halo Local AI enthusiasts: batteries included for text, audio, image, and video models.

  • Built and optimized specifically for Strix Halo 128 GiB hardware. Smaller memory configurations should still work and preserve the speed benefits for models that can fit in memory.

  • Support only the best available models for their size that can run on this hardware: less code to maintain, and more focused optimization and testing.

  • Preserve quality when optimizing. Each model's quality report records independent numerical checks, execution consistency, and unresolved gaps. We don't reuse kernels across different models to limit the blast radius of code changes.

  • Treat concurrent requests, cancellation, and conversation caching as first-class workloads.

  • Keep production dependencies minimal and development tools separate.

We also provide ready to use toolboxes for docker and podman.

And now the most interesting part: some benchmarks (limited to keep the post short). We currently support Qwen 3.8 27B, DeepSeek V4 Flash, Qwen 3.8 Flash-Next, Qwen3 ASR and TTS, Qwen Image 2.1, and MiniMax H3.

ModelBenchmark summary
Qwen 3.8 27BQ4: 656.33 tok/s pp; up to 70.56 tok/s tg, 123 tok/s concurrency 8
Qwen 3.8 Flash-Next1,628.52 tok/s pp; up to 59.41 tok/s tg, 157 tok/s concurrency 8
DeepSeek V4 Flash484.62 tok/s pp; up to 26.62 tok/s tg, 54 tok/s concurrency 8
Qwen3 ASR15.27x realtime
Qwen3 TTS2.54x realtime

And there is much more in the repository documentation:

  • Memory footprint

  • Load times

  • Speculative drafters

  • Experiments and tweaks that allowed us to achieve these gains

  • And more


r/StrixHalo • • Oct 02 '26 Bravo

halogen-flash-server 0.16.0: Strix Halo NPU now serves embeddings, reranking and classifiers beside Qwen3.8-Flash-Next. Nearly 10,000 tok/s

Thumbnail
gallery
182 Upvotes

I want to thank everyone for the kind words, trust, and encouragement in the development of this project. I am doing my best to make the halogen UX amazing for you. I also want to thank AMD's Jeremy Fowers. u/jfowers_amd has been nothing but supportive and sent me a development Strix Halo machine which has been taking a beating over the last couple weeks.

halogen-flash-server 0.16.0 is out.

It runs Qwen3.8-Flash-Next on the Strix Halo GPU, and this release puts the chip's other accelerator to work too.

The Ryzen AI NPU now serves small models beside the Flash model, on the same port, while the GPU keeps generating.

What's new

Small models on the NPU, with one variable. Set HALOGEN_NPU_MODELS and the server runs them on the NPU. Leave it out and nothing changes.

  • decider-0.8b makes decisions. Give it a text, a question and 2 to 10 options, and it returns a probability for every option from one pass.

    • Use it as a guard, a router or a classifier.

  • qwen3-embedding-0.6b answers `/v1/embeddings`, in the OpenAI request shape.

  • qwen3-reranker-0.6b answers `/v1/rerank`, in the Cohere and Jina request shape.

Your own fine-tunes. Put a fine-tune of any of the three on the models volume and name its path. The server converts it for the NPU at the first start and serves it under the directory's name.

A smaller checkpoint, opt-in. qwen38-flash-next-ht43.hgn pins about 8 GiB less memory than the default checkpoint. Prefill is several percent slower, and decode with the default drafter is a few percent slower. The default checkpoint does not change. Select it with HALOGEN_CHECKPOINT=/models/qwen38-flash-next-ht43.hgn.

96 GB: On a 96 GB machine, run ht43 with HALOGEN_MAX_TOK=16384 and HALOGEN_CTX=131072. That leaves room for one conversation of 131k tokens or four of 32k.

Fixes. A long prefill can be cancelled now (#122, thanks u/semidark). The draft counters count every drafted token (#124, thanks u/wszgrcy).

How fast is the NPU?

  • A decision with Qwen3.5-0.8B (the architecture `decider-0.8b` uses) takes 49 ms at 64 tokens, 84 ms at 256 and 183 ms at 1k. Eight decisions of 256 tokens in one pass take 41 ms each.

  • Batched embeddings run at about 9,400 tokens a second through the server, eight texts of 512 tokens at a time. One text of 512 takes about 97 ms.

  • The reranker scores 19 pairs a second, eight pairs of 512 tokens at a time.

The NPU and the GPU together

Something worth knowing even if you never run halogen. On Strix Halo, GPU work and NPU work at the same time can hang the whole machine while the GPU's fabric clock changes speed. Holding that clock at its top level stops it, at a cost of about a watt. The server holds it itself when it runs as root with /sys mounted. For rootless podman, a small systemd unit in the repo holds it at boot. If you run an NPU program next to a GPU program and have seen freezes, this may be why.

The Flash model runs somewhat slower while the NPU works, since the two share the memory and the power budget. With the NPU idle there is no cost.

Setup

The host needs the amdxdna driver, XRT with its NPU plugin, the NPU firmware, and the IOMMU on. If you added amd_iommu=off for GPU speed, it also turns the NPU off. iommu=ptkeeps it. The full setup, every request shape and the fine-tune rules are in https://github.com/peonist-ai/halogen-flash-server/blob/main/docs/NPU.md

podman pull ghcr.io/peonist-ai/halogen-flash-server:0.16.0

Repo: https://github.com/peonist-ai/halogen-flash-server

Weights: https://huggingface.co/peonist-ai/halogen-qwen3.8-flash-next

Discord: https://discord.gg/bcm6QknaV6

How to read this. FastFlowLM's numbers are from its own published benchmark pages. They were measured on a different chip (Ryzen AI 7 350) with older versions than its current one, in its default power mode. FastFlowLM lists no embedding model, so its Qwen3-0.6B row (the same backbone) stands in for it. Ours are medians from our own testing on Ryzen AI Max+ 395 machines, and where we measured two machines, the slower one is shown. This is not a same-machine test. If you run both on one machine, we would like to see your numbers.


r/StrixHalo • • Aug 27 '26

DeepSeek V4 Flash Q4 TP=2 across two Strix Halo boxes over USB4 or RoCE v2 RDMA — up to 275 tok/s prefill and 21 tok/s decode

Post image
156 Upvotes

Forked DS4 for tensor-parallel inference across two Ryzen 395 systems, 256 GB of unified memory. 
RDMA over USB4/TB5 or Mellanox RoCE v2. Q4_K setup without DSpark reaches up to 275 tok/s prefill and 21 tok/s decode. https://github.com/wkljohn/ds4-strix-halo-tp-odinlink


r/StrixHalo • • Jul 28 '26

DeepSeek V4 Flash, up to 32 tok/s on Strix Halo

Post image
152 Upvotes

Hey fellow Strix Lovers! we have something new we thought would be useful to share here in the community. i'll keep it short:

We were able to fit DeepSeek V4 Flash plus its speculative draft on a single Ryzen AI MAX+ 395 with 128 GB of unified memory, and got it to a usable decode rate.

Blog post with all details here: https://www.lucebox.com/blog/deepseek-v4-strix-halo (code is open-source, Apache-2.0)

We submitted the run to LocalMaxxing. On July 18, its next-fastest DeepSeek V4 Flash entry for the Radeon 8060S was HipFire at 18.99 tok/s. The previous best in the site’s Ryzen AI Max 395 unified-memory group was DwarfStar at 15.6 tok/s.

That puts our run 68.5% ahead of HipFire and at 2.05× the DwarfStar result. These are comparisons against the public LocalMaxxing entries shown above, not controlled A/B tests.

ROCmFPX: fitting 284B weights into 128 GB

ROCmFPX is not one quantization format. It is a family of block formats built around the AMD ROCm/HIP path. Each block holds 32 weights as packed low-bit codes plus one or two small scales. ROCmFP2 stores a block in 10 bytes, or 2.50 bits per weight; ROCmFP3 uses 3.50 bits per weight; and the fast ROCmFP4 layout uses 4.25.

For DeepSeek V4 Flash, we added the missing 2-bit format and its HIP kernels, then built a Strix-specific mixed-precision recipe. The enormous routed-expert gate and up matrices use ROCmFP2, expert down projections use ROCmFP3, and dense or more sensitive projections keep ROCmFP4 or higher precision. We used an importance matrix during quantization and kept the model’s MTP head. The final 102.3 GB target works out to roughly 2.88 bits per parameter; the filename says ROCmFP2 because that is the dominant format, not because every tensor is 2-bit.

PieceMeasured configuration
HardwareRyzen AI MAX+ 395, Radeon 8060S (gfx1151), 128 GB LPDDR5X
TargetDeepSeek-V4-Flash-ROCMFP2-STRIX.gguf, 102.3 GB
DraftDeepSeek-V4-Flash-DSpark-draft-Q4RMFP4-denseF16.gguf, 11.3 GB
RuntimeROCm 7.2.4, HIP gfx1151, platform performance, Radeon high (2.9 GHz observed), q=4 verification cap
Server context8,192 tokens in the published setup

Decode: up to 32 tok/s

ROCmFPX handles the weight traffic. We then added a DeepSeek-specific HIP decode path for the model’s hyper-connections, attention, routing, and expert work. With no speculative draft, that target runs at 25.31 tok/s autoregressive.

DSpark is the next layer. With a q=4 batch, its small draft proposes up to three new tokens and the 284B target verifies four positions, including the current seed, in one fused pass.

01 · propose; DSpark draft = A compact three-layer draft proposes the next few tokens from captured target features.

02 · verify; q=4 target pass = The 284B target checks several positions together through the fused HIP graph.

03 · commit; accepted prefix = Correct proposals are committed in one step; the target repairs the first miss.

With a q=4 cap and adaptive width disabled, the public run reached 32.0 tok/s, 26.4% above the 25.31 tok/s autoregressive result. The gain varies with how many draft tokens the target accepts.

Sparse prefill: roughly 250 tok/s

The public LocalMaxxing request reports 245 tok/s prefill with --ds4-prefill sparse. In a separate 7,960-token validation, indexed sparse prefill reached 251.79 tok/s; the 8K cases ranged from 246.8 to 255.9 tok/s. At roughly 24K tokens, throughput was 221.9 tok/s.

Sparse prefill uses DeepSeek V4’s learned indexer to limit compressed-history attention. It also batches work layer by layer, which changes floating-point reduction order. The output is not byte-identical to tokenwise exact prefill, so sparse mode remains opt-in. It scored 10/10 on our small GSM8K set and 3/3 on a HumanEval smoke set; we have not run a broad quality evaluation yet.

Reproducing the run

Starting from a 128 GB Strix Halo machine with ROCm 7.2.4 already installed:

sudo apt-get update
sudo apt-get install -y build-essential cmake git ninja-build curl \
  hipblas-dev hipcub-dev rocblas-dev rocprim-dev rocwmma-dev

git clone --branch main --recurse-submodules \
  https://github.com/Luce-Org/lucebox.git
cd lucebox

cmake -S server -B server/build-hip -G Ninja \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_HIP_COMPILER=/opt/rocm/lib/llvm/bin/clang++ \
  -DDFLASH27B_GPU_BACKEND=hip \
  -DDFLASH27B_HIP_ARCHITECTURES=gfx1151 \
  -DDFLASH27B_HIP_SM80_EQUIV=ON \
  -DCMAKE_HIP_FLAGS=-DDFLASH_WAVE_SIZE=32 \
  -DGGML_HIP_MMQ_MFMA=ON \
  -DGGML_HIP_NO_VMM=ON \
  -DGGML_HIP_GRAPHS=OFF

cmake --build server/build-hip --target dflash_server -j"$(nproc)"

Download the ROCmFPX target and DSpark draft, then start the measured profile:

mkdir -p models
curl -L -C - --retry 5 \
  -o models/DeepSeek-V4-Flash-ROCMFP2-STRIX.gguf \
  "https://huggingface.co/Lucebox/DeepSeek-V4-Flash-ROCMFPX/resolve/main/DeepSeek-V4-Flash-ROCMFP2-STRIX.gguf"
curl -L -C - --retry 5 \
  -o models/DeepSeek-V4-Flash-DSpark-draft-Q4RMFP4-denseF16.gguf \
  "https://huggingface.co/Lucebox/DeepSeek-V4-Flash-DSpark-Drafter-GGUF/resolve/main/DeepSeek-V4-Flash-DSpark-draft-Q4RMFP4-denseF16.gguf"

MODEL="$PWD/models/DeepSeek-V4-Flash-ROCMFP2-STRIX.gguf"
DRAFT="$PWD/models/DeepSeek-V4-Flash-DSpark-draft-Q4RMFP4-denseF16.gguf"

echo performance | sudo tee /sys/firmware/acpi/platform_profile
sudo /opt/rocm/bin/rocm-smi -d 0 --setperflevel high
printf '0\n' > /tmp/ds4_awidth
printf '4\n' > /tmp/ds4_spec_q

DFLASH_DS4_SPEC=1 \
DFLASH_DS4_FUSED_VERIFY=1 \
DFLASH_DS4_SPEC_Q=4 \
DFLASH_DS4_TIMING=1 \
DFLASH_DS4_DRAFT="$DRAFT" \
LUCE_MMVQ_MAX_NCOLS=4 \
./server/build-hip/dflash_server "$MODEL" \
  --target-device hip:0 \
  --host 127.0.0.1 --port 8000 \
  --max-ctx 8192 --default-max-tokens 2048 \
  --chunk 2048 --ds4-prefill sparse \
  --ds4-fused-decode \
  --ds4-expert-top-k 4 \
  --prefix-cache-slots 0 --prefill-cache-slots 0 \
  --disk-prefix-cache off

Warm the model once and use temperature: 0. The server prints decode speed on its [deepseek4] DSpark decode line. DFLASH_DS4_SPEC_Q=4 sets the DS4 verification cap; --verify-width is a Laguna option and is not used here. The implementation may shorten a batch at a compressor boundary, which is required for correct state handling.

Throughput varies with prompt shape and, for decode, how many DSpark proposals the target accepts. If you switch to exact prefill or restore the model’s six experts, those numbers no longer apply. No integration branch or private patch is required.

-------

Of course any feedback is more than welcome :)


r/StrixHalo • • Sep 12 '26

Qwen3.8 Flash Next, the optimized config (1.2k t/s prefill!)

Thumbnail pwilkin.github.io
148 Upvotes

So, as those of you who frequent the Discord know, after hearing about halogen and their closed-source runtime achieving 1.2k t/s prefill (with stable long context prefill as well), I've vowed to replicate that result on an open-source llama.cpp runtime and I'm happy to report I finally got there.

My revamped Strix Halo website (https://pwilkin.github.io/strix-halo) has the full config and I asked my LLM companions who helped me on the journey to describe how we got there, so you can read about all the optimizations that were made step by step to make this possible. The branch is available on my llama.cpp fork, I tried to get the PR for the community repo (halo-box) done as well, but unfortunately some of the optimizations conflict, so I have to clean it up, will hopefully get it done tomorrow. There's (like for my Qwen3.8 27B config) an installer (that probably doesn't work if experience is to be trusted, so any error reports welcome), a custom-made quant optimized for Strix without losing too much quality and my custom HIP build that uses the PM4 replay to give faster generation speeds (and some small prefill benefits as well apparently, for mysterious reasons).

Final results are: 1.2k prefill at zero depth, 1.1k prefill at 40k depth, around 850 prefill at 150k depth, raw generation is 30 t/s at 0 depth, MTP may vary depending on text type.


r/StrixHalo • • Oct 19 '26

Strix Halo NPU doing real work for LLM prefill: 27B at 806 t/s, 35B-A3B at 3,276 t/s, Flash-Next at 2,125 t/s

147 Upvotes

Hey all, I've been messing with my Strix Halo box (Ryzen AI MAX+ 395) and got the NPU doing something useful during LLM inference.

I forked gufo (https://github.com/gufo-org/gufo) and made the GPU and NPU split the prefill: the GPU computes most of each projection while the NPU takes a slice of the same one.

Some numbers on my machine (prefill):

- Qwen3.8-27B: 806 t/s

- Qwen3.6-35B-A3B: 3,276 t/s

- Qwen3.8 Flash-Next: 2,125 t/s

Decode with speculative decoding (MTP, DFlash2, or an auto mode that picks per request) hits up to about 160 tok/s on code and JSON with the 35B-A3B.

I checked quality against llama.cpp on the CPU, and the NPU path doesn't move perplexity measurably on the 27B or 35B.

Heads up: you have to hold the GPU fabric clock at max or the GPU and NPU together can hang the machine. The README walks through the setup. Linux only, gfx1151 only.

GITHUB


r/StrixHalo • • Jul 12 '26

Qwen 35B-A3B: 700 tok/s on DGX Spark, how much on Strix Halo?

Post image
142 Upvotes

Over the past month, the community has made huge progress with DGX Spark, but unfortunately I haven’t found much information about Strix Halo.

On DGX Spark, the community has reached 700 tokens/s with Qwen 35B-A3B at 64 concurrent sessions, thanks to several optimizations in vLLM settings, enabling speculative decoding with DFlash using the optimal speculative token count (11 in this case), NVFP4 quantization, a vLLM build from source targeting sm_121a, and other tweaks.
(link: https://github.com/AEON-7/Qwen3.6-35B-A3B-heretic-NVFP4-DFlash )

Unfortunately, I haven’t been able to find much about Strix Halo so far.

It’s a shame to see that this architecture doesn’t have more active support from the community.
I believe it has a lot of potential, both because it is based on x86 rather than ARM and because it is significantly cheaper (€2500 - €2900 vs >€4200 currently here in Italy).

Has anyone done any tuning for Strix Halo/Ryzen AI Max+ 395?
I’d be curious to know what throughput you’re getting.


r/StrixHalo • • 20d ago

Gufo extensions: bring your own model

Thumbnail
gufo.blog
137 Upvotes

Hello 👋

Gufo maintainer here. Over the past month, we have been submerged with PRs and feature requests, and we haven’t been able to keep pace with all of them. This is amazing, it proves that a community-driven engine tuned for this hardware is something possible.

However, we’ve noticed that the community wants to experiment heavily with different models and quants. In the current setup, this creates two main challenges: for us, reviewing potentially massive PRs that touch far more than just a single model; and for you, maintaining a fork while waiting for us to review it, which we know is tough given how fast Gufo is evolving.

To address this, we have designed Gufo Extensions. Gufo is transitioning into a platform/library, allowing you to write an extension to support any model or quant. Simply point Gufo to the extension, and in no time, your favorite model is supported (which is exactly what we did for lfm3-gufo-extension). This allows us to focus on the engine itself, and on core models, which is central element any model can benefit from.

We are still in the early stages, and adding a new model to your own Gufo build currently requires compilation. Over time, we hope to gather enough community feedback, stabilize the library for a v1.0.0 release, and streamline distribution to enable true plug-and-play extensions. We already have a few ideas on how to achieve this, but as always, contributions, ideas, and suggestions are welcome, either here on Reddit or in GitHub Discussions.

Helpful links:

⚠️ Extensions run native code directly on your machine. Before installing any extension, make sure to inspect it and verify that it contains no malicious code.

We cannot wait to see what you are going to build, let us know what you think.

u/CescoNoHands

Edit: last but not least, Gufo is officially part of lemonade


r/StrixHalo • • Sep 28 '26

Gufo vs Halogen | Ryzen AI Max+ 395 128GB | Qwen3.8-Flash-Next

Post image
133 Upvotes

Gufo vs Halogen — Ryzen AI Max+ 395, 128GB RAM

Same Qwen3.8-Flash-Next UD-Q4_K_XL weights, 126K context capacity, and identical 153-token prompt. One easy Python coding task per engine, checked against 45 test cases.

Thinking enabled at low effort; temperature 1.0, top-p 0.95, top-k 20, same seed. Both answers finished naturally.

Versions checked September 28, 2026.

Gufo wins on both speed and resource usage atm.


r/StrixHalo • • 12d ago

Lemonade has a brand new GUI and integrations with Halogen and Donato's toolboxes for Gufo, strix-llama, Nathan's fork, rocmfpx, and DwarfStar4

Thumbnail
youtu.be
131 Upvotes

Hi r/StrixHalo this update has been a long time coming! I'm really happy to say we've released support for container backends, along with all the new backends in the title. It was a privilege to work with legends like Donato, u/peonist-ai, u/CescoNoHands, Nathan, u/ilintar Laurent, Gaetan, Carlo, and many others from the Lemonade and Strix Halo communities on this integration.

The Lemonade community also completely replaced the old GUI app and web ui with a new one, which you can see a little of in the post's video and more of here: https://youtu.be/mg2PqmRujMo?si=tJC9csXnyBIPYnrJ

The new GUI adds mobile web ui support, simplified Chinese localization, built-in LLM tools for using Lemonade, chat history, a much better model manager, a telemetry inspector for LLM prompts/responses, and much more.

I hope y'all enjoy these improvements! Let me know what you think and where we should head next.


r/StrixHalo • • Aug 28 '26

Qwen3.8-Flash-Next on Strix Halo: 50 tok/s decode, 338 tok/s prefill at 32k, 262k context. Spec decoding fixed, native MTP, and a day of kernel work in llama.cpp (code + sidecar included)

131 Upvotes

I put Fable on improving the performance of the new Qwen3.8-125B-A6B model. The results are very good. I wont pretend I understand any of this stuff, which is also why it isn't a PR in the official llama.cpp repo, but a fork. If anyone who can defend the changes want to do the PR, feel free to do so.
It is verified at 70k context with 23 tok/s for prose and around 30 for code.

Model: unsloth UD-Q3_K_XL

The rest of this message is Fables summary for you guys

First, credit where it's due: all of this is built on top of danielhanchen's (Unsloth) PR #27742, which is what added the qwen4exp architecture to llama.cpp in the first place — GDN linear attention, the sparse-attention indexer, the n-gram embeddings, all of it. That PR was merged into llama.cpp mainline yesterday (congrats!) — this branch is its final state plus a week of speculative-decoding fixes, a native MTP implementation, and kernel work on top. None of it exists without that foundation.

TL;DR — The 125B-A6B Flash-Next now runs at 50.4 tok/s decode on code (0.96 draft acceptance), ~24-31 tok/s deep reasoning at 50-73k context, and 338 tok/s prefill at 32k depth on one 128 GB Strix Halo box (Ryzen AI MAX+ 395, Vulkan/RADV). Session start was 23.5 tok/s shallow and 8.8 tok/s at 32k, so that's roughly 2.1x shallow, 2.7x deep, and 1.6x prefill. Everything is reproducible: branch + Dockerfile at https://github.com/apepojken/llama.cpp (default branch qwen4exp-spec-mtp, base = PR #27742), prebuilt MTP sidecar GGUF (4.1 GB Q8_0) at https://huggingface.co/jockevaupptaget/Qwen3.8-Flash-Next-MTP-GGUF

Part 1 — speculative decoding was broken, not useless. The "spec decoding doesn't help this arch" consensus came from seven stacked bugs, root-caused with a greedy identity oracle (at temp 0, speculative output must match plain decode byte-for-byte, so any state corruption shows up as a text diff). Highlights: qwen4exp was never whitelisted for the recurrent rollback ring, so every speculative step serialized the whole 125B recurrent state through host RAM (~750 ms fixed cost per step — that's the 6.5x slowdown people measured); the conv-state and SSM snapshot writes ignored or staled the ring banks so rollbacks fed the GDN layers corrupted state; the n-gram embedding history was rewound lossily; and draft sidecar files never actually loaded (a path bug loaded the main model twice). All fixed, all documented in the commits.

Part 2 — the model's own MTP head, implemented natively. The official checkpoint ships a 4B multi-token-prediction head that public GGUFs simply strip. Re-enabled the converter export (--mtp flag, remaps the mtp.* tensors) and implemented the head in llama.cpp: one full transformer layer with its own hyper-connection combiner reading the backbone's 4-stream hidden state. The combiner variant matters a lot — keeping the streams distinct measures 0.87-0.96 acceptance vs 0.47 for the naive mean, which is why this implementation drafts 6 deep at ~0.9 acceptance on code (n-max 6 is the sweet spot; the Vulkan mat-vec shaders take at most 8 batched columns, so verify batches of n-max+1 must stay ≤8 or every matmul falls off a 2.7x cliff — measured 83→225 ms per eval).

Part 3 — the depth falloff, killed in layers. Plain decode used to fall from 23.5 to 8.8 tok/s by 32k. Fixes, in order: the sparse-attention indexer's top-k ran on the CPU past 1024 columns (first routed through GPU argsort, later replaced by a proper radix-selection kernel — 4-pass 8-bit radix select, one workgroup per row, exact k with tie handling, passes test-backend-ops up to k=9999 over 524k columns); the QSA and PLE graph inputs never implemented can_reuse so every token rebuilt the whole compute graph; the indexer recomputed every block summary key over the whole context every token in all 12 QSA layers — now an incremental pooled-key cache (complete 4-token blocks are immutable, so summaries are write-once with a per-sequence watermark that makes speculative rollback free) worth +17% at 32k alone; and past 32k context, decode attention now gathers exactly the ~2300 selected KV rows instead of running dense attention with a mask (ported from EngramHalo.cpp — credit Aristo94, whose ROCm work independently found several of the same bottlenecks).

Part 4 — kernel fusion and prefill. Decode was launch-gap-bound (~3550 kernel dispatches per token), so the Vulkan mat-vec shaders got fused elementwise epilogs (scale/SiLU/sigmoid/multiply applied at the write-back — the hyper-connection chains collapse from 3-4 dispatches to 1) plus a fused REPEAT+MUL+ADD kernel for the residual scatter: 3550 → ~2800 dispatches per token, all output-identical. Prefill at depth got: `-ub 2048` (+10%), the radix top-k (the old workaround full-sorted 2048 rows × context-width per layer per chunk), a 17x-slower-than-necessary non-contiguous concat in the GDN conv path (463 → 26 ms per chunk), the skinny m=4 inject matmul rerouted off the tiled-MM path (77 → 287 GFLOPS), and a permute-free rewrite of the indexer scoring. Deep prefill went ~215 → 338 tok/s at 32k. Fun finding along the way: llama.cpp's Vulkan flash attention already skips fully-masked tiles via a mask pre-scan, so "sparse prefill attention" was already there — profile before you build.

Real-world evidence, not just benchmarks: a live 73,035-token conversation reloads (full re-prefill) in 291 s at 250 tok/s average, then decodes at 23.3 tok/s at 73k depth on dense thinking prose (draft acceptance 0.65 — the hardest content for any drafter) with spikes to 27+, and 50.4 tok/s at 0.963 acceptance on code. A 19,400-token single response and a 75,226-token session both completed with zero errors, zero truncation, and byte-clean state handling across hundreds of speculative rollbacks. Greedy outputs are verified identical (or within the measured kernel-order noise floor) against the unfused/uncached paths at every step, and every optimization has an env kill-switch for A/B.

Reproduce it: git clone https://github.com/apepojken/llama.cpp && cd llama.cpp && docker build -t qwen4exp-llama . && docker run --device /dev/dri -p 8095:8095 -v /path/to/models:/models qwen4exp-llama
The Dockerfile bakes in the recommended flags (--flash-attn on -ub 2048 -c 262144 --cache-type-k q8_0 --cache-type-v q8_0 --spec-type draft-mtp --spec-draft-n-max 6 --spec-draft-p-min 0.75). Model: unsloth UD-Q3_K_XL shards + the MTP sidecar above. Caveats: n=1 machine, single-slot serving only (--parallel 1), and ROCm measured slower than Vulkan/RADV at every depth on this box. The base PR merged upstream on Aug 27, so a rebase onto mainline (and upstreaming the generic pieces — the radix top-k, the fused kernels, the concat fix) is the natural next step.

Credits: danielhanchen/Unsloth for PR #27742 (the entire qwen4exp architecture this builds on) and the llama.cpp maintainers, the Qwen team (MTP reference implementation), Aristo94/EngramHalo.cpp (gathered-attention idea and the HIP radix top-k this Vulkan kernel is ported from), kyuz0's toolboxes, and the r/StrixHalo thread that kicked all of this off.


r/StrixHalo • • Oct 11 '26

Qwen3.8 Flash-Next prefill past 1800+ tok/s on Strix Halo by putting the NPU to work

121 Upvotes

Been messing with this for a while and finally got somewhere. On my EVO-X2 (395+,

128GB), prefill on Qwen3.8 Flash-Next UD-IQ4_XS went from ~1700 to 1821 tok/s at 16k. As far as I know I'm the only one at 1800+ on this chip 😎.

The trick: the NPU does a few GEMMs (part of the linear-attention projection, some

attention rows, the shared expert) while the GPU is busy with something else, so it's

basically free speed. Output is identical to the GPU-only build, I checked 30 long

greedy prompts.

The part that cost me a lot of freezes: if the GPU fabric clock changes speed while the

NPU is running, the whole box can hang hard (machine check errors, reboot needed).

Pinning the fabric clock at max fixed it completely, 12 clean runs in a row after dozens of crashes before. It also gave a nice speedup by itself.

It's a fork of gufo with the kernels, setup steps and a script for the clock pin in.

GITHUB


r/StrixHalo • • 21d ago

Bosgame 495 with 192GB now availeable.

Post image
120 Upvotes

Best price I have seen so far (still too much for me).


r/StrixHalo • • Oct 06 '26

Qwen3.8-Flash-Next on Strata

107 Upvotes

Hey Strix Halo community! 👋

I have released an official support for Strix Halo machines on Strata for Qwen3.8-Flash-Next.

Currently numbers are the best on long context decode and ppts using typical Unsloth’s Q4 and GSQ-RCO model weights.

Results on UD-IQ4_XS:

8K | 53.8 t/s output | 1293 t/s prompt processing

64K | 46.6 t/s output | 1370 t/s prompt processing

128K | 51.4 t/s output | 1320 t/s prompt processing

Can go up to 1M context length without big speed loss. Currently support is marked as experimental and was done on Linux only.

https://github.com/Niko1221/Strata/releases/tag/v0.1.40

Will be happy for any feedback and pull requests you could give! 👀


r/StrixHalo • • Sep 13 '26 Bravo

BYO GGUF to Halogen 0.7.0

104 Upvotes

Released in 0.7.0.

https://github.com/peonist-ai/halogen-flash-server#bring-your-own-gguf

Thank you for all the support. Y'all are amazing.

-p.s The intent was for Qwen 3.8 flash / Qwen 4.0 model architectures. Other models might run, could just blow up. I wouldn't expect much.


r/StrixHalo • • Aug 26 '26

Qwen3.8-Flash-Next (125B-A6B) running on Strix Halo 128gb: 23 t/s decode, 390 t/s prefill, built from the llama.cpp PR

103 Upvotes

Qwen dropped Qwen3.8-Flash-Next this morning and I got it running on my Ryzen AI Max+ 395 box (128 GB unified, Fedora 44) this afternoon. Numbers and build notes below, since llama.cpp support hasn't merged yet and the path has a few potholes.

The model: 125B total params, 6B active, plus a 51B n-gram embedding table (llama-bench reports 176.94B all-in). Hybrid attention: Gated DeltaNet plus their new sparse attention (QSA). I used unsloth's UD-IQ4_XS quant, 3-part GGUF, 87 GiB on disk.

The build: Upstream llama.cpp doesn't have the arch yet. Support is in PR #27742 (danielhanchen), so you build that branch:

git clone https://github.com/ggml-org/llama.cpp llama.cpp-qwen4exp
cd llama.cpp-qwen4exp
git fetch origin pull/27742/head:pr27742
git checkout pr27742

One extra step: there's a crash fix posted in the PR comments that hasn't been pushed to the branch as of this afternoon. Add model.arch == LLM_ARCH_QWEN4EXP || to the arch list in graph_max_nodes() in src/llama-context.cpp (around line 2303, next to the other QWEN entries). Without it you can hit GGML_ASSERT(obj_new) failed when the memory fit probe runs, mostly on setups where the model doesn't fully fit on GPU.

Then a normal Vulkan build:

cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DGGML_VULKAN=ON
cmake --build build --target llama-server llama-bench

I went Vulkan (RADV) rather than ROCm. On my box Vulkan already wins on the Qwen3.8 DeltaNet family, and the PR adds no GPU kernels anyway (the arch is composed from ops llama.cpp already has, which is why a day-one build works at all).

Serving:

llama-server -m Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00003.gguf \
  -ngl 999 -fa 1 --load-mode none -c 131072 --jinja --reasoning on \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 -np 1

About 91 GB resident at 131k context, loads in ~45 seconds. Leave the KV cache at f16: quantized KV asserts and dies on this arch right now (known issue in the PR thread).

Benchmarks (llama-bench, fa=1, 2 reps):

testt/s
pp512390.3
pp4096357.5
tg12823.0
pp512 @ d16384305.3
pp4096 @ d16384317.9
tg128 @ d1638419.4

23 t/s from a 125B-class model on an APU is a usable daily driver. I've already pointed my local agent stack at it.


r/StrixHalo • • Sep 05 '26 Mindblown Bravo

I made PP 40% faster for MoE and 20% faster for dense models

102 Upvotes

Hi my name is Gaetan, this is not a AI generated post.
I wanted to share something I was working for 2 to 3 months.

I created a ROCm llamacpp fork for improving PP but with Nathan and Laurent
(2 popular llama cpp fork creators in the Strix Halo community) we decided to create a Community fork to assemble all our works together.

Today I am showing myself to share that my whole work is merged in the community Fork.

Expect big PP improvements for MoE models on ROCm (no influences in Vulkan).

For best results
- use rocm 7.14 or more
- use -ub 512 for dense models
- use -ub 2048 for MoE models

The precise numbers will depends of your machine and config.
- The fork community fork can be found here : https://github.com/halo-box/strix-llama.cpp
- my benchmarks here : https://gaetan-puleo.github.io/strix-halo-pull-18-results

And Here my config with the command ryzenadj -i to try reproducing my numbers

CPU Family: Strix Halo
SMU BIOS Interface Version: 25
Version: v0.19.0
PM Table Version: 64020c

+----------------------+---------+-------------------+
| Name | Value | Parameter |
+----------------------+---------+-------------------+
| STAPM LIMIT | 120.000 | stapm-limit |
| STAPM VALUE | 9.147 | |
| PPT LIMIT FAST | 160.000 | fast-limit |
| PPT VALUE FAST | 11.735 | |
| PPT LIMIT SLOW | 140.000 | slow-limit |
| PPT VALUE SLOW | 12.169 | |
| StapmTimeConst | nan | stapm-time |
| SlowPPTTimeConst | nan | slow-time |
| PPT LIMIT APU | 70.000 | apu-slow-limit |
| PPT VALUE APU | 0.000 | |
| TDC LIMIT VDD | nan | vrm-current |
| TDC VALUE VDD | nan | |
| TDC LIMIT SOC | nan | vrmsoc-current |
| TDC VALUE SOC | nan | |
| EDC LIMIT VDD | nan | vrmmax-current |
| EDC VALUE VDD | nan | |
| EDC LIMIT SOC | nan | vrmsocmax-current |
| EDC VALUE SOC | nan | |
| THM LIMIT CORE | 98.000 | tctl-temp |
| THM VALUE CORE | 47.067 | |
| STT LIMIT APU | 98.000 | apu-skin-temp |
| STT VALUE APU | 47.067 | |
| STT LIMIT dGPU | 98.000 | dgpu-skin-temp |
| STT VALUE dGPU | 49.154 | |
| CCLK Boost SETPOINT | nan | power-saving / |
| CCLK BUSY VALUE | nan | max-performance |
+----------------------+---------+-------------------+

Please, enjoy :)


r/StrixHalo • • Oct 15 '26

hipfire 0.4.2.1: Qwen3.8-Flash (125 GB MoE) on Strix Halo, 16K prefill at 2,372 tok/s with the NPU next to the iGPU

101 Upvotes

hipfire is an LLM inference engine I write for AMD GPUs. It's Rust plus hand-written HIP/ISA kernels and loads libamdhip64 directly, with no ROCm SDK needed at runtime. Current release is 0.4.2.1. These are Flash-Next (qwen3.8:flash-next) numbers on Strix Halo.

Prefill. For long prompts, the XDNA2 NPU runs the trunk input projections of two prefill banks while the iGPU does everything else. Greedy output is byte-identical with the NPU on, emulated or off. It's on by default (npu_trunk=auto) and engages from roughly 9K prompt tokens up.

promptprefill
16K, GPU+NPU, TTFT 6,896 ms2,372 tok/s
128K, cold1,865 tok/s
256K, cold1,589 tok/s

Decode at depth (greedy, 128 tokens, natural English prefixes, tok/s):

context8K32K128K256K
MTP (default)51.341.842.135.6

Serial AR decode is still the weak spot.

Setup notes:

  • The NPU path pins about 1 GB, and most logins default to an 8 MiB memlock. Use ulimit -l 1287168 (bounded, not unlimited), or the systemd drop-in in the docs. Tailscale SSH skips pam_limits.

  • The startup log shows npu-trunk: ... with the reason if the NPU route doesn't arm. Please paste it if yours doesn't.

  • Numbers were measured on a 7.3-rc7 kernel with the IOMMU PerfOpt series (queued for 7.4). Expect somewhat lower prefill on stock kernels.

Coming in the next release (on the beta branch or in progress, not in 0.4.2.1):

  • QSA attention changes for long context, on by default on Halo: decode is 5.1% faster per token at 256K, with exact output.

  • An interactive hipfire pull.

  • A smaller Q3 tier (mq3-xts), in progress. No speed numbers for it yet.

curl -fsSL https://hipfire.dev/install.sh | bash -s -- --tag v0.4.2.1
hipfire pull qwen3.8:flash
ulimit -l 1287168
hipfire serve qwen3.8:flash

Docs and benchmarks: https://hipfire.dev
Release: https://github.com/warpfront/hipfire/releases


r/StrixHalo • • Aug 23 '26 Bravo

Qwen3.8 27B - new record on Strix Halo? 52 tokens per second

100 Upvotes

We have been working on a new fork of llama.cpp focused on Vulkan and Strix Halo performance and we made some good progress already, with 42 tokens per second generated. More info here: https://github.com/LaurentZuijdwijk/llama.cpp but in the repo we have fixed a number of llamacpp bugs that affected speculation and some popular quants.

Tonight we made even more progress and we managed to get to 52 tokens per second. We are still reviewing the results and the code, more to follow and hopefully people here can validate the results.

This was built upon the work of ciru-ai, charlie12345 and MrWildMoreHK. Thank you guys for the hard work on strix halo performance.

Update:

https://x.com/laurent_zw/status/2092001892159328287

Now at 65t/s decode and 440 prefill

Edit: Please use the community fork at: github.com/halo-box. This fork has all my work and more delicious performance updates.


r/StrixHalo • • 21d ago

Just joined the local party with 4x 128gb strix halos

Post image
95 Upvotes

Got them for a decent price a few days ago. They've since been setup and I'm running fine tunings to get the speeds up.

Currently running

1 box: Qwen flash next 60tps/1200 prefill

2 boxes: MiMo flash (20tps/420 prefill) and glm flash (16 tps/400 prefill)

3 boxes: DeepSeek 4.1 flash 1017 not tested yet

4 boxes: glm5.3 not yet tested.

Using it for a financial and life hub, plus some professional work. Running QFN if I need quick responses, flash models for better thinking during the day and ds/glm overnight for synthesis and bigger thinking. It's been great so far, lots of tweaking left to do, hoping I can get MiMo to 800 prefill, and glm flash to 20+ tps/600-700 prefill

Will give more feedback once I've had it for a while


r/StrixHalo • • Aug 25 '26

Qwen3.8 27B ---> 65 t/s decode! Try it out

93 Upvotes

Follow up from my post a few days ago. We are now happy with the performance and hope some of you will try it. It would be especially helpful if the gains are validated on other hardware.

How did we get there?

Token speculation:
MTP and DFlash work well to speed up inference work, especially for dense models. However, different content types need different settings. Llama.cpp only supports a single value.
This fork introduces adaptive speculation. You set the minimum and maximum and the engine will adjust the number of tokens that are suggested. This leads to improvements in token generation, especially in Qwen3.8. This is what enabled the 65 tokens per second.

After days of benchmarking other optimisations, we found improvements that affect prefill as well. Ornith now achieves 100t/s generation and 1800 on prefill.

I haven't published the Qwen3.8 fp4 dflash sidecar yet, hope to do that later and update this post.

It would be great to see confirmation of some of these numbers.

Github: https://github.com/LaurentZuijdwijk/llama.cpp

Release: https://github.com/LaurentZuijdwijk/llama.cpp/releases


r/StrixHalo • • Aug 03 '26

Qwen3.8-27B is coming next week!

93 Upvotes

For most of us, Qwen3.6-27B is still a daily driver, punching way above its weight and runs with a tolerable speed on our workstations.

Alibaba just announced the latest version of it, Qwen3.8-27B !
https://x.com/Alibaba_Qwen/status/2084100707423289643

I have checked the blog post, there isn't any info about it yet but this news made my day.


r/StrixHalo • • 26d ago

Qwen 4 ETA Next week

Post image
92 Upvotes

yay :P
source


r/StrixHalo • • 4d ago

Strix Halo is aging like fine wine. Same strix halo, way faster Halogen.

90 Upvotes

Back in September I was just trying to get Flash-Next running comfortably on my 128 GB Beelink. A few updates later, Halogen 0.20.7 with HT4 hit 94.3 tok/s on one short coding request and 130 tok/s combined across four. In a separate run on 0.20.1, a fresh 32K prompt prefills at 1,933 tok/s.

The number I actually notice day to day is the cached coding follow-up. First token went from 620 ms to 131 ms on the same test. That makes a long session with an agent feel a lot less stop-and-go.

Some of these numbers beat published single-DGX Spark runs for Flash-Next. There are faster Spark setups too, and we’re using different prompts and quants. Curious what other 395 or Spark owners are seeing.

I put the charts and test settings here: https://lycsweb.com/blog-strix-halo-aging-like-fine-wine.html


r/StrixHalo • • Aug 16 '26

Qwen 3.8 27B running at up to 36tps on the Halo

89 Upvotes

Opus 4.6 level intelligence at home for les than $3k

Got Qwen 3.8 27B running at up to 36 tps on the AMD Strix Halo

⚡ ROCmFP4 block quant (13.5 GB)

⚡ MTP Speculative Decoding (2.9× speedup)

⚡ Full 262K context in ~33 GB RAM

https://github.com/julianmb/q38rocm