r/ROCm • • 5h ago

Strata EXL3 (AMD) major improvements! (+30-50% decode on QFN, +15% on HY4 dual gpu, +30/50% prefill, other stuff) (read inside, no AI slop!)

26 Upvotes

Preparing for Qwen 4, I have made BIG improvements to inference speed, quality of life and setup on both Qwen 3.8 Flash Next AND the newly supported HY4-Flash (220B), especially for 2-gpus!

  • for 2 gpus, uses direct P2P between cards, even if one is on Pcie x4 behind Chipset.
  • much optimized HIP kernels under the hood!
  • Ability to use 4096 QSA indexer instead of default 2048 on Qwen. Linear attention spans more tokens, this can really improve the quality on long contexts! costs about 5% performance.
  • faster bootup!
  • no need to build separate pack files for CPU help, repacking now is done at bootup in RAM, fast, transparent and multithreaded.
  • improved compatibility to other RDNA3/4 cards (untested!)
  • added Q8_0 KV cache with Hadamard rotations for HY4 -> more Vram = more experts in cache = faster speed.
  • added support for HY4-flash 3.5bpw. if you have 64Gb ram you can use 3.0bpw, if you have 96Gb you now can use the 3.5bpw, performance about the same. I know Qwen4 Flash will come out and made this obsolete :)
  • simplified setup, now more robust, is capable of self-tuning to use all Vram available, just follow the instructions.
  • added support for AVX2 cpu (older)

Coming next:

-pulling in some kernel optimizations from https://github.com/adelj88/rmtile
-Qwen 4 support. planning also to add 35B with tensor parallel on 2 gpus ;)

Benchmarked on RX 7900 XTX (24GB), Ryzen 9 7950X, 96GB DDR5, Linux.

Qwen Flash Next 4bpw (about Q5_K_M quality!)

Speeds1 GPU2 GPUs
prefill 16k1970 2090 tk/s2290 2430 tk/s
decode CODE, MTP472 tk/s102 tk/s
decode PROSE, MTP463 tk/s89 tk/s

Qwen Flash Next 3bpw (about IQ4_K_XS quality!)

Speeds1 GPU2 GPUs
prefill 16k1990 tk/s2230 2340 tk/s
decode CODE, MTP487 tk/s107 tk/s
decode PROSE, MTP478 tk/s96 tk/s

HY4-Flash 220B (3bpw)

Speeds1 GPU2 GPUs
prefill 16k~940 tk/s~1300 tk/s
decode CODE, DFly233 tk/s63 tk/s
decode PROSE, DFly229 tk/s40 tk/s

how to setup? point your agent to
https://github.com/nasone32/Strata-EXL3-fork/blob/amd-exl3-community/docs/AI_SETUP_EXL3_AMD.md

If you like my repo please give github stars! :)


r/ROCm • • 3h ago

Paiton | Qwen4-35B-A3B | 1 x R9700: 285.7 tok/s @ c1, 668.6 tok/s @ 8, ~9,000 tok/s prefill, up to 500K context (3-bit and 4-bit)

Post image
17 Upvotes

Qwen4 is finally here!
We didn't get early access, so we jumped on it the moment it landed.
Well, more like 12 hours too late, because it was bedtime here :)
Anyhow, here we go for our first Paiton Qwen4 release.

Setup:

  • As usual, a single R9700, default settings, no undervolt/overvolt, etc...
  • Still vLLM 0.29 on ROCm 10 with our Paiton plugin
  • Native HIP kernels and our own drafter.
  • BetterBench 0.6.0 standard profile, temperature 0.7 / top-p 0.95 / top-k 20, fresh server per run, thinking off.
3-bit4-bit
Decode, 1 request (weighted median)285.7 tok/s230.0 tok/s
Decode, 8 requests (total)668.6 tok/s618.8 tok/s
Prefill, 1,528 / 11,813 / 23,560-token prompt9,617 / 9,129 / 8,940 tok/s9,343 / 9,021 / 8,914 tok/s
Context per request (8-bit KV pages)499,712 tokens262,144 tokens
KL vs bf16 (bf16 vs itself: 0.014)0.0590.035

Decode at 1 request by prompt category, from the same bench pass as the 285.7 / 230.0 above (median of 20 runs per category). Tokens per update is how many tokens arrive together in one stream update with the drafter on.

Category3-bit tok/s4-bit tok/sTokens per update, 3-bit / 4-bit
json433.9305.53.89 / 3.25
math365.7282.74.51 / 3.43
file_edit321.4235.43.66 / 2.93
code315.8254.83.94 / 3.17
summarization282.9216.03.04 / 2.46
chat248.8229.72.77 / 2.58
reasoning217.2202.92.47 / 2.29
prose146.9147.11.85 / 1.83
Weighted (code 0.3, reasoning 0.2, prose 0.15, json 0.15, file_edit 0.1, summarization 0.1)285.7230.0

The drafter keeps the model's output distribution, but replies can differ token by token from a run without it.
So we ran task scores with it on and off (thinking on for these):

  • GSM8K: 94.2 vs 94.1 % (3-bit), 93.3 vs 94.0 % (4-bit)
  • HumanEval: 98.8 vs 97.0 %, 95.7 vs 95.7 %
  • MMLU-Pro (paired subset): 84.5 vs 84.5 %, 84.2 vs 83.8 %

No difference is significant; every 95 % interval contains zero.

Let's also list a few things we did for this one:

  • Trained our block drafter further on our MI355X box, on replies the model itself generated on our own prompt sets. It proposes 5 tokens per step on 3-bit (3 above 4 requests) and 3 on 4-bit. Its output head runs in 2 bits now (+7.8 % at 1 request).
  • Native HIP prefill for the GDN layers and the experts: +25 % at a 23,560-token prompt.
  • 8-bit (fp8) KV pages by default: 499,712 tokens per request on 3-bit, 262,144 on 4-bit. We checked them against 16-bit pages at 32K and 128K tokens.
  • int8 LM head, and a GDN state path the drafter's checks read without extra copies (+9 % at 8 requests).
  • The compile caches ship in the image, so a first start takes about 3.5 minutes instead of 5 to 6.
  • Two bugs caught by our KL gates before release: a state-slot mixup when several prompts share a prefill step, and a stale table inside the GPU graphs that shifted the n-gram embedding on short prompts. Both fixed.

Run it:

git clone https://github.com/Eliovp-BV/paiton-vllm-plugin.git
cd paiton-vllm-plugin
bash models/Qwen4-35B-A3B/run-qwen4-35b.sh                  # 3-bit
bash models/Qwen4-35B-A3B/run-qwen4-35b.sh --weights 4bit   # 4-bit

OpenAI API on port 8000, model qwen4.
Thinking is off by default; send "chat_template_kwargs": {"enable_thinking": true} or start with --thinking on.
Text only for now, prefix caching off.

And don't worry, we have a lot planned:

Numbers from your own R9700 (or other host setups) are very welcome.


r/ROCm • • 1h ago

Paiton Qwen4-35B-A3B (4-bit) on a Single Radeon AI PRO R9700, 245.8 tok/s Decode, 644.8 tok/s C8, ~9,000 tok/s Prefill (BetterBench)

4 Upvotes

Just pulled Paiton's brand-new qwen4-35b-a3b-rocm10-vllm029-20261205-r1 release and ran the full BetterBench 0.6.1 standard profile on a single AMD Radeon AI PRO R9700 capped at 250 W with a +91 MHz VRAM OC.

Rig & Config

  • Host: Xeon Gold 6314U, 128 GB DDR4-3200 ECC, Ubuntu 26.04.1 LTS (Linux 7.0.0), ROCm 10.2
  • GPU (single card): 1× AMD Radeon AI PRO R9700 (32 GB, PCIe 4.0 x16) — 250 W power cap, 1350 MHz VRAM (OD_MCLK, +91 MHz)
  • Command: run-qwen4-35b.sh --weights 4bit (default fp8 KV pages, 262,144 max context, 419,629-token KV pool, max_num_seqs=8, thinking off)

Single R9700, 4-bit, Sampled temp=0.7

MetricElioVP Reference (300 W stock)My R9700 (250 W + VRAM OC)Delta
Weighted Decode (med)230.0 tok/s245.8 tok/s+6.9%
TTFT p50 (single-stream)66 ms62 ms-6.1%
Update p99—12.4 ms—
Prefill 8K (med)—8,995 tok/s—
Prefill 32K (med)8,813 tok/s8,829 tok/s+0.2%
Prefill 64K (med)8,747 tok/s8,706 tok/s-0.5%
Concurrency C1 / C2—218.9 / 353.8 tok/s—
Concurrency C4475.4 tok/s499.7 tok/s+5.1%
Concurrency C8618.8 tok/s644.8 tok/s+4.2%

Single-Stream Decode by Category (Median tok/s, 1× R9700)

CategoryTTFT p50Update p50 / p99Tok / UpdateDecode (med)
chat63.2 ms11.8 / 12.4 ms2.61246.7 tok/s
code62.9 ms11.8 / 12.4 ms3.12264.8 tok/s
file_edit62.7 ms12.0 / 12.6 ms2.94262.3 tok/s
json62.0 ms11.8 / 12.4 ms3.23328.7 tok/s
math61.1 ms11.8 / 12.5 ms3.40294.5 tok/s
prose58.9 ms11.7 / 12.2 ms1.86157.5 tok/s
reasoning61.0 ms11.8 / 12.4 ms2.27210.1 tok/s
summarization61.3 ms11.9 / 12.6 ms2.58251.7 tok/s
Weighted Combined62 ms12.4 ms (p99)—245.8 tok/s

Cold Prefill Sweep (Median tok/s, 1× R9700 @ 250 W + OC)

Target DepthPrompt Tokens (med)TTFT p50Prefill (med)
~2K1,518165 ms9,182 tok/s
~8K5,934659 ms8,995 tok/s
~16K11,8041.33 s8,922 tok/s
~32K23,5682.67 s8,829 tok/s
~64K47,1345.42 s8,706 tok/s

Key Takeaways

  1. Single-card 4-bit speed: On one R9700 capped at 250 W, Qwen4-35B-A3B 4-bit hits 245.8 tok/s weighted single-stream decode (code at 264.8, math at 294.5, json at 328.7 tok/s) with a rock-steady 12.4 ms p99 update latency and 644.8 tok/s aggregate at 8 concurrent requests.
  2. 250 W + VRAM OC: Shaving 50 W off the power limit while bumping VRAM +91 MHz (1350 MHz) beat the 300 W stock reference by +6.9% single-stream decode (245.8 vs. 230.0), +5.1% at C4 (499.7 vs. 475.4), and +4.2% at C8 (644.8 vs. 618.8).
  3. Prefill stays nearly flat all the way to 64K: Cold prefill holds 8,706–9,182 tok/s from 2K to 64K (~5.4 seconds for a 47K-token prompt), with essentially zero penalty from the 250 W cap (8,706 vs. 8,747 at 64K).
  4. Current caveats to keep in mind: Prefix caching is off in this first release (planned for an upcoming update alongside RAM/NVMe session hibernation and 1M context), and it's text-only for now.
  5. Dual-R9700 potential: Since it only needs one R9700 and ~20 GB of host RAM per instance, running two instances in DP=2 on a dual-R9700 / 128 GB box should easily push past 1,200+ tok/s aggregate at C8.

Massive props to u/ElioVP for getting ~246–329 tok/s and ~9,000 tok/s prefill out of a 4-bit 35B MoE on a single 250 W RDNA4 card!

------

Update: Tested Dual R9700 (DP=2) + Extended Concurrency Sweep (C2–C20)

I also tested 2× R9700 in DP=2 (one Qwen4-35B-A3B 4-bit container per card behind a session-affinity SSE proxy + llama-swap with concurrencyLimit: 32) and ran BetterBench all the way out to C20 on both 1× R9700 and 2× R9700 DP=2 (both cards at 250 W + 1350 MHz VRAM OC):

Concurrency1× Aggregate1× Per-Req / TTFT p502× DP=2 Aggregate2× DP=2 Per-Req / TTFT p50DP=2 Speedup
C2353.8 tok/s231.7 tok/s / 114 ms416.8 tok/s264.7 tok/s / 65 ms+17.8% (1.8× faster TTFT)
C4499.7 tok/s164.7 tok/s / 124 ms621.6 tok/s222.1 tok/s / 120 ms+24.4% (+35% per-req)
C8644.8 tok/s113.2 tok/s / 140 ms843.7 tok/s163.3 tok/s / 130 ms+30.8% (+44% per-req)
C12651.6 tok/s113.8 tok/s / 1,559 ms1,020.2 tok/s133.6 tok/s / 140 ms+56.6% (11× faster TTFT)
C16638.8 tok/s110.2 tok/s / 3,071 ms1,093.4 tok/s113.7 tok/s / 146 ms+71.2% (21× faster TTFT)
C20658.0 tok/s113.9 tok/s / 5,014 ms1,046.2 tok/s114.8 tok/s / 690 ms+59.0% (7.3× faster TTFT)

Quick takeaways:

  • 1× R9700 saturates its max_num_seqs=8 slots at C8 (~645–658 tok/s); above C8, extra requests queue and TTFT climbs sharply (1.56 s at C12, 3.07 s at C16, 5.01 s at C20).
  • 2× R9700 (DP=2) adds zero single-stream overhead (242.4 tok/s weighted decode, 62 ms TTFT, 9,013 / 8,736 tok/s prefill at 8K/64K), keeps both C2 streams at full single-user speed (264.7 tok/s, 65 ms TTFT), breaks 1,000 tok/s at C12 (1,020.2 tok/s), and peaks at 1,093.4 tok/s at C16 with 146 ms TTFT (16 simultaneous streams all running at 113.7 tok/s each).
  • At C20, DP=2 starts queueing behind its 16 active slots (690 ms TTFT vs. 5,014 ms on 1 card), confirming C16 as the exact sweet spot for dual R9700s. (Tip: if routing DP=2 through llama-swap*, bump* concurrencyLimit: 32 in config.yaml since llama-swap defaults to 10.)

r/ROCm • • 3h ago

Avalon is now running QWEN4-35B-A3B: Gen 147 t/s Prefill: 5245 t/s (RX 7900 XT on "aging" computer)

Post image
4 Upvotes

r/ROCm • • 9h ago

Why is ROCm 7.x still the reference while ROCm 10.x seems really stable ?

10 Upvotes

Hello everyone,

I'm currently using ROCm 10.x with no specific issue with llama.cpp on Radeon 7900 XTX and radiance on 2 x R9600 Pro, but I still see nearly all recommended setups on ROCm 7.x

Is there a specific reason for this ?

Thanks !


r/ROCm • • 13h ago

SmallTide v0.3.1: Running Qwen4-35B-A3B-NVFP4 (256K ctx + Vision) on 16 GB RDNA 4 (RX 9070 XT / 9060 XT) with zero paging loss, why I'm building a custom engine + full quality/VRAM benchmarks

14 Upvotes

SmallTide now supports Qwen4-35B-A3B in addition to Inkling-2-Mini, with native HIP kernels embedded for **AMD RDNA 4 (**gfx1201 / gfx1200 — RX 9070 XT / 9070 / 9060 XT / R9700) on Windows and Linux.

First, when you don't need this

If you have 32 GB+ of VRAM (e.g. Radeon AI PRO R9700), existing engines already fit the whole model in VRAM and run fine, there isn't much difference between well-tuned engines since everyone hits the memory-bandwidth limit.

Worth trying if any of these apply to you

  • You want to run NVFP4-level quantization (RadixArk/Qwen4-35B-A3B-NVFP4, ~16.9 GiB of experts + dense/KV/drafter = ~23.2 GiB total) on a 16–24 GB GPU (like an RX 9070 XT or RX 9060 XT).
  • At that size it doesn't fit in 16 GB, so you assume your only options are streaming and living with the slowdown, or giving up quality for a much smaller quant that fits entirely.
  • Or another app (browser, desktop compositor, IDE, etc.) needs a little VRAM, pushing the model just over the edge into OOM or slow system-RAM spillover. In cases like these, SmallTide is far more flexible than existing engines. With Adaptive Expert Loading (3-tier VRAM -> Pinned Host RAM -> NVMe with async promotion, an inline GPU Rescue Ring, and Elastic 32K -> 256K KV), it keeps speed up while keeping quality loss to a minimum. Because streaming optimizations touch every layer of the engine — routing, paged KV, pinned DMA overlapped with shared MLP, speculative draft/verify — it's beyond what can be applied to existing engines as a PR.

Measured Speeds on AMD RDNA 4 (16 GB, HIP, bench/bench.py, DFlash 2)

  • RX 9070 XT 16 GB (qwen4, Windows 10, 16 GB system RAM, monitor on GPU, 256K ctx):

    • prose: 61.5 tok/s · code: 91.0 tok/s · edit: 216.3 tok/s · HTML games (angry-birds / mario): 147.6 / 156.3 tok/s
    • Prefill / TTFT: 215–631 ms short prompts, ~1.2K tok/s on 8K prompts
  • RX 9070 XT 16 GB (inkling2, headless):

    • prose: 87.0 tok/s · code: 91.0 tok/s · edit: 109.1 tok/s · thinking: 115.2 tok/s · HTML games: 114.4–126.2 tok/s
  • RX 9060 XT 16 GB (inkling2, community Windows 11 monitor): 48.4–70.9 tok/s (97.3–98.3% VRAM hit rate)

Quality vs. Real VRAM Scaling (Qwen4-35B-A3B, v0.3.1)

Measured via exact full-vocabulary (248,320) f64 KL divergence, Top-1 / Top-5 agreement, and Perplexity over 1,558 teacher-forced tokens across 4 domains (Rust code, math, prose, JSON). VRAM/RAM caps were emulated against the full 36.9 GiB reference: Reference = official Qwen/Qwen4-35B-A3B-FP8 (100% VRAM resident FP8 experts + native BF16 dense & lm_head, 36.92 GiB)

ConfigReal VRAMVRAM ExpertsTop-1Top-5KL MeanPPLSkipped Wt
Ref: FP8 + BF16 dense (100% VRAM)36.92 GiB10,240/10,240100.00%100.00%0.000003.2650.00%
FP8 + FP8 dense (100% VRAM)34.62 GiB10,240/10,24093.58%99.74%0.027853.2600.00%
NVFP4 + BF16 dense (100% VRAM)25.29 GiB10,240/10,24093.52%100.00%0.041203.2560.00%
NVFP4 + FP8 dense (100% VRAM)23.19 GiB10,240/10,24092.30%99.61%0.046383.2670.00%
16 GB Headless (15.5G, 6G RAM)15.47 GiB6,928/10,24092.30%99.61%0.046383.2670.00%
16 GB Safe (15.0G, 6G RAM)15.00 GiB6,632/10,24092.30%99.61%0.046383.2670.00%
16 GB Mid (14.5G, 6G RAM)14.54 GiB6,337/10,24091.91%99.68%0.051913.2620.44%
16 GB Monitor (14.3G, 7G RAM)14.27 GiB6,100/10,24092.30%99.61%0.046383.2670.00%
16 GB Monitor (14.2G, 6G RAM)14.23 GiB6,100/10,24091.01%99.68%0.071673.2911.36%
13.6 GiB (6G RAM)13.60 GiB5,760/10,24090.24%99.23%0.110253.3892.91%
13.1 GiB (6G RAM)13.11 GiB5,457/10,24087.93%98.78%0.161203.5414.70%

Full breakdown & --kl-eval reproduction commands: https://github.com/raspy135/SmallTide/blob/main/docs/qwen4-vram-quality-scaling.md

Highlights for ROCm / RDNA 4 users in v0.3.1

  • Zero paging loss on 16 GB: Fast Tier-1 Pinned RAM DMA rescues are always executed while only slow NVMe reads are threshold-gated. From 15.0–15.5 GiB headless (even on a 16 GB system RAM PC), output logits match the 23.19 GiB 100%-resident NVFP4 model identically (92.30% Top-1, 0.04638 KL, 3.267 PPL). With 24–32 GB+ host RAM (7–11 GB pinned pool), it holds zero paging loss down to 12 GB VRAM (10.2 GiB).
  • OS VRAM-Pressure Shrink & Regrow (Windows WDDM + Linux amdgpu**):** Monitors real OS VRAM headroom (DXGI/D3DKMTQueryStatistics on Windows, /sys/class/drm/.../mem_info_vram_used on Linux), voluntarily yields cold tail experts to Pinned RAM when another app takes VRAM, and regrows back up to your configured cap once it closes.
  • Zero SDK setup: Pre-built gfx1201 / gfx1200 .hsaco kernels are embedded directly inside smalltide-cli (loads only the driver's amdhip64_7.dll on Windows; native Linux + turnkey Docker/Podman containers also included).

Repo & v0.3.1 release (MIT): https://github.com/raspy135/SmallTide

Would love to hear feedback or Linux ROCm / RX 9070 XT / RX 9060 XT test results if anyone gives v0.3.1 a spin!


r/ROCm • • 14m ago

warpgrid v0.7.1: Qwen4-35B-A3B on 1x Instinct MI350X, 14.84x cold prefill

Post image
1 Upvotes

I build warpgrid at CG/lab. I measured Qwen4-35B-A3B on one AMD Instinct MI350X (288 GB, ROCm, gfx950), and these are the latest numbers I have for that GPU.

These are warpgrid's own measurements. The latest published AMD figures are in v0.7.1. v0.7.2 did not add new ROCm results.

Cold prefill of Qwen4-35B-A3B, lossless, 1 request, 15,360-token cold prompt, chunk=4096: 23,390.9 tok/s, up from 1,576.6 tok/s in v0.7.0 on the same GPU. That is a 14.84x speedup. v0.7.0 also published 1,404.3 tok/s at a 4K prompt.

Lossless decode at 1 request and temperature 0 is 152.7 tok/s, the same figure published in v0.7.0 (BF16). v0.7.0 also reported 149.7 tok/s with DFlash 2 at k=5, also at 1 request and temperature 0.

The checkpoint is RadixArk/Qwen4-35B-A3B-NVFP4. The lossless default keeps the checkpoint weights and uses BF16 for dense, head, and KV.

For Inkling-2-Mini on the same MI350X, cold prefill at 1 request, a 15,360-token cold prompt, and chunk=4096 is 25,810 tok/s in v0.7.1, up from 25,139 tok/s in v0.7.0.

I do not have published numbers for a small AMD box. There is no official result yet for Strix Halo, Ryzen AI Max, or consumer Radeon.

We recommend this launch:

make -j ROCM=1 ROCM_ARCH=gfx950
./recipes/qwen4/mi350x-rocm.sh

That serves the NVFP4 checkpoint with HIP-Graph DFlash 2 at --draft-k 7, lossless by default.

Code: https://warpgrid.cglab.com Latest release: https://warpgrid.cglab.com/releases/latest

If you have an Instinct or a consumer Radeon, I would like to see your numbers.


r/ROCm • • 1h ago

Got Qwen4-35B-A3B to build a Three.js driving scene unattended in ~5 hours on two AMD GPUs and Pi loops

1 Upvotes

r/ROCm • • 17h ago

Running Rocm 7.2.4! What performance increase could I see if I go to 10?

6 Upvotes

Hi, I'm on an old version of rocm I realise. How much of a performance boost would I get going to 7.2.4 up the the latest in llama.cpp and project Maya (only just tried it today) inference engines?

I've just get DeepSeek iq2 running well and qwen 3.8 flash next is my main model running on my multi r9700 system? I just read the boost was around 3.3x on enterprise 😮😮😮. But surely not as good for local?


r/ROCm • • 1d ago

Qwen4-35B-A3B on Dual AMD R9700 (64GB): up to 411 tok/s decode, 17.4k tok/s prefill (flat to 124k ctx), 1,739 tok/s @ 128 concurrent users — 0ULP lossless (open-source Radiance fork)

Thumbnail
gallery
22 Upvotes

Open-sourced our 0ULP lossless fork of Radiance 2.4.1 tuned for Qwen4-35B-A3B on dual AMD Radeon AI PRO R9700 (gfx1201, TP=2).

GitHub (fork, recipes, scripts, raw JSONs & benchmarks):

https://github.com/machddev/radiance-r9700-qwen4

Engine Highlights:

- Strict 0.000e+00 ULP lossless: verified bit-exact against the unoptimized oracle (0 mismatches) with BF16 KV cache, FP32 GDN recurrent state, exact TP=2 AllReduce, and lossless 12.25-bit bf16x12 encoding on PLE/QSA projections.

- Custom RDNA 4 (gfx1201) kernels: zero-LDS single-wave BF16 sparse attention (VREG1), zero-spill INT8 WMMA prefill, 8-wave Hyper-Connection kernels, and bit-exact MoE i8a8 Double-K (FK=256) + 64-row prefill tiles.

- 4-slice FlashOverlap over PCIe 5.0 P2P: overlaps coded TP=2 AllReduce with Hyper-Connection reads in both attention and FFN, sustaining 16k-17.4k tok/s prefill all the way to 124k context (7.3s TTFT, zero prefix cache).

- Two lossless speculative modes included:

- DFlash2 (8-token parallel block-diffusion drafter): leads single-stream and C=1-32 with 411 tok/s Math, 328 tok/s Python, 325 tok/s 5-domain mean, 245 tok/s at 124k context, and 1,370 tok/s at C=32, with automatic lossless context-pass gating past C=32.

- MTP-3 (production default): leads heavy batching at C=64-128 with 1,739 agg output tok/s (10,381 total tok/s) at 128 concurrent sessions, keeping median per-user speed above 21.8 tok/s.

Hardware Setup:

- GPUs: 2x AMD Radeon AI PRO R9700 32GB (64GB total VRAM, RDNA 4 / gfx1201, PCIe 5.0 x8/x8 P2P)

- CPU: AMD Ryzen 9 9950X (16-Core / 32-Thread)

- Motherboard: ASRock X870 Taichi Creator

- RAM: 96GB (2x48GB) Corsair Vengeance DDR5-4800

- OS / Stack: Ubuntu 24.04.5 LTS, Linux 7.0.0, ROCm 7.2.4, Radiance 2.4.1 (TP=2)

All benchmarks were run with unique prompts and cached_tokens = 0 (zero prefix-cache reuse).


r/ROCm • • 19h ago

16 GB RDNA 2 (gfx1030) HIP fork: bounded attention workspace and automatic SSD prefix restore for the static persona/system prompt/skills/123-tool block, leading to 4–8 s completions on RX 6800 XT

4 Upvotes

I’ve published a prebuilt Windows x64 HIP/gfx1030 package after recording successful automatic SSD prefix restoration across six models on an RX 6800 XT that enables a 8.5x-23x speedup for agentic setups.

The achieved results were:

  • 28,445–35,459 cached tokens restored
  • 39–503 new prompt tokens evaluated
  • 4.04–7.78 seconds per accepted restored request
  • 21.55–73.67 tokens per second generation, depending on the model

With SSD Cache:

ModelNew tokens prefilledPrefillGenerated tokensDecode
Huihui Qwythos500298.6115969.85
PINQWEN466301.2313972.79
Qwen2.5 Instruct46287.841430.04
Qwythos standard464301.438369.58
Qwythos Heretic503318.2030873.67
GLM Q4_K_S39214.851021.55

Initial build (one-time prefix creation):

ModelTokens prefilledPrefillGenerated tokensDecode
Huihui Qwythos29,161429.299469.83
PINQWEN29,162439.4510472.64
Qwen2.5 Instruct28,483401.751429.76
Qwythos standard29,187423.729869.96
Qwythos Heretic29,237455.6011773.40
GLM Q4_K_S35,490299.871221.39

The Windows HIP Runtime supplies the native runtime, matched TheRock dependencies, six presets, a text/image browser interface and a PowerShell launcher. No separate ROCm SDK or native build toolchain is required.

Automatic cache policy creation and storage selection are handled by the launcher. The custom server-side implementation saves eligible prefixes and restores matching state through ordinary OpenAI-compatible requests. There are no prescribed drive letters or installation folders.

My config has a 7800X3D, 16 GB DDR5 and 16 GB VRAM. Presets use eight CPU threads, full GPU layer offload and monitored system-RAM safeguards.

Each preset requested 750,000 context tokens; the measured prompts occupied approximately 28k–36k. The prefix being cached, or pre-compiled, is the persona system prompt, the skills index and all 123 tool definitions. It is a static block of roughly 28k–35k tokens that gets built once and restored from SSD. After a restore, only your actual prompt is processed (39–503 tokens here), and then the reply is generated. Across six accepted cases, 28,445–35,459 cached tokens were restored and 98.28–99.89% of the input was reused. Requests took 4.04–7.78 seconds, against 66.41–123.37 seconds for the one-time initial capture. One example: Huihui Qwythos Q4_K with q4_0/q3_1 caches restored 28,704 tokens, processed 500 new ones and generated 159 in 5.97 s.

Disclosure: I maintain this fork. Component licenses and manifests are included; Msty application files and model weights are excluded.

Windows HIP release · Results


r/ROCm • • 1d ago

RDNA2 on torchvulkan beat ROCm in ComfyUI on my 6900 XT (Wan 2.2 1.9×, Anima 1.6×). Weird build, but it works

16 Upvotes

So I am a sad RDNA2 user that has never quite been happy with ROCm in ComfyUI. Yes, there have been big steps forward in the past couple of years. I remember when trying to install any image gen for AMD on Linux was torture. Now it works. Cool, fine. I just hate that my beefy 16GB card suffers. Why can't it play with the other big 16GB cards just because it's older? I make things work, but ComfyUI is always something I try and go back on.

For some reason I came across a post from u/_zsharief in r/ROCm saying he made a Vulkan PyTorch backend. I got a bit drunkenly curious. Why not build ComfyUI with torchvulkan? Loaded up Claude and asked the question. This turned into a rabbit hole: can RDNA2 run better on Vulkan than ROCm in ComfyUI? Well shit, we went on a journey of desktop crashes and a fucking fox girl I never want to see again. It seems possible.

I'll let Claude take over the rest. I'm sure it's dense, but the results are there. I'm sure Claude will ask for help. It'll be a headache for me, but the GitHub is there if you want to try the weird build.


Claude here. u/_zsharief asked for results from older AMD cards and said torchvulkan isn't quite at ROCm speed yet. On RDNA2, with a few open PRs combined, it is. Here's an RX 6900 XT under Linux (Mesa 26.3.1 RADV), with the same ComfyUI, workflows and seeds on every backend, in seconds per step (lower is better):

ModelROCm 7.14torchvulkan 0.3.0combined PRs
Wan 2.2 I2V 14B, Q4 GGUF, 480², 33 frames18.425.8~9.5
Anima, 1024²2.23.01.4
Krea 2 Turbo, Q4 GGUF, 1024²6.3—5.0
SDXL, 1024²0.501.120.49
Flux 2 Klein 9B, fp8, 1024²2.8–3.7512.33.1

Images match ROCm's. Most of the speed is pdale-boop's PR #94, which runs fp16 matmul and attention on RDNA2's packed dot-product instructions. hartmark's #93 speeds up VAE decodes. I added four smaller fixes (#116–#119). One of them, #119, stops torchvulkan from starving your desktop of VRAM, which is where the crashes above came from.

Caveats:

  • Unofficial and not merged upstream.
  • Tested on one card.
  • ROCm ran untuned (no TunableOp or SageAttention).
  • SDXL's VAE decode is still slower unless you use the fp16-fix VAE.
  • The first run of each model is slow while kernels tune.

torchvulkan: https://github.com/zainsharief/torchvulkan

Guide (build, a small ComfyUI patch, one custom node): https://github.com/998998p-netizen/torchvulkan/blob/rdna2/combined/RDNA2.md

Full write-up and credits: https://github.com/zainsharief/torchvulkan/discussions/122

The help I'm asking for: if you have a 6600, 6700, 6800 or 6900, post your numbers, good or bad. That's what gets these PRs reviewed.

Edit: ROCm re-measured in its fastest attention mode for each model, after comments below. Wan's lead was overstated; the rest holds.

ModelROCm 7.14, fastest modetorchvulkan 0.3.0combined PRs
Wan 2.2 I2V 14B, Q4 GGUF, 480², 33 frames11.5 (split attn)25.89.9
Anima, 1024²2.23.01.4
Krea 2 Turbo, Q4 GGUF, 1024²6.3—5.1
SDXL, 1024²0.511.120.50–0.55
Flux 2 Klein 9B, fp8, 1024²3.4–3.7512.33.2

Claude here, with a correction. u/PoizoneHelp was right: every ROCm run used ComfyUI's default attention on gfx1030 (sub-quadratic). So I re-measured ROCm in every attention mode, and on ROCm 10.0 too.

  • Wan: --use-split-cross-attention takes ROCm from 20.6 to 11.5 s/step. torchvulkan is 9.9, so the lead is ~1.15×, not 1.9×. A whole 4-step video takes 54 s on Vulkan and 58 s on ROCm.
  • Anima, SDXL, Klein, Krea 2: ROCm's default was already its fastest mode, so those hold: Anima 1.55× faster, Krea 2 1.2×, SDXL and Klein even.
  • --use-pytorch-cross-attention is slower on every model and runs Wan out of memory, because flash and memory-efficient attention aren't compiled for gfx1030 (in ROCm 7.14 or 10.0).
  • ROCm 10.0 performs the same as 7.14. It still supports gfx1030.
  • TunableOp: its hipBLASLt half has no gfx1030 kernels; rocBLAS-only gave no gain on SDXL and crashed while tuning Klein.

Full tables: https://github.com/zainsharief/torchvulkan/discussions/122


r/ROCm • • 18h ago

Need help from someone can work with ROCm

3 Upvotes

I maintain SuperNova a potential or probable novel scientific research paper, an Apache-2.0 C++ research library. I’m looking for some contributors Linux/Radeon of AdaptiveCpp and rocBLAS path. Requirements:

  1. Basic understanding of Git, Python/C++ (either one is good). I myself am weak in Python; that will be great if someone can teach me too.
  2. Understanding of the build systems of your desired language.
  3. Understands ROCm and RocBLAS (at lest installation) ROCm Issue

r/ROCm • • 1d ago

Qwen4-35B-A3B day one on Radeon: llama.cpp on Strix Halo, W7900 and R9700

3 Upvotes

We ran Qwen4-35B-A3B on three Radeon setups on release day (Strix Halo, W7900, R9700) and tried every engine we could get to start.

Setup: 512 prompt tokens, 128 output tokens, streaming, 1/4/16/32 concurrent requests, median of 3 runs, max context 4096, /v1/completions. Numbers are total output tok/s; the last column is single-request prefill. Every request succeeded. llama.cpp is commit 59b7165 on ROCm 7.2.1, unsloth GGUF. No speculative decoding (MTP off), default KV precision.

DeviceEngine / quant141632Prefill (1 req)
Strix Halollama.cpp UD-Q4_K_M35.285.8101.8129.4953
Strix Halollama.cpp Q8_033.080.593.7118.2865
W7900 x1llama.cpp UD-Q4_K_M53.8135.4157.1210.61736
W7900 x2llama.cpp Q8_049.9139.7187.9236.01643
R9700 x2llama.cpp UD-Q4_K_M52.9128.7185.9144.81897

What didn't run on day one

  • Strata: no Qwen4 support in the latest release yet.
  • vLLM on Strix Halo: the official ROCm qwen4 image loads the FP8 weights, then dies with device kernel image is invalid (some kernels have no gfx1151 build). The image is only validated on MI350X/MI355X, so we didn't try W7900/R9700.
  • SGLang on Radeon: the AMD image is MI350X/MI355X only.

What stood out

  • Single request: W7900 53.8, two R9700s 52.9, Strix Halo 35.2.
  • W7900 vs Strix Halo, same quant: ~1.5x for one request, ~1.6x at 32.
  • Q8_0 costs little: on Strix Halo it's 6% slower than UD-Q4_K_M for one request, 9% at 32.

Caveats

  • R9700 x2 drops at 32 (145 vs 186 at 16); not explained yet.
  • MTP numbers not measured.
  • Speed only, no quality evals. One workload (512 in / 128 out), no long-context runs.

Write-up on our site: https://radeon-arena.com/blog/model-qwen4-35b-a3b/

Happy to run other configs if people want specific comparisons.


r/ROCm • • 1d ago

I built a way to run PyTorch on AMD GPUs without ROCm, using Vulkan

21 Upvotes

Hey r/ROCm, if you've ever tried to get PyTorch running on an AMD card, you probably know the struggle. ROCm can be tricky to set up, its official support covers a limited set of consumer cards, and Windows support has lagged behind Linux.

I've been building torchvulkan, a PyTorch backend that runs on your GPU through Vulkan instead. You don't need ROCm, and it works on both Windows and Linux.

Repo: https://github.com/zainsharief/torchvulkan

Installation is as simple as:

pip install torchvulkan

and then you can use it in Python with:

import torch
import torchvulkan

model = model.to("vulkan")

Performance isn't quite as fast as ROCm yet, but closing that gap is what I'm working on now. The README has full benchmarks, supported platforms and the API. I'll also be presenting the project at Vulkanised 2027.

I'd love to hear how it runs on other AMD cards, especially older or lower-end ones, and issues and bug reports are very welcome. Let me know if you have any questions!


r/ROCm • • 2d ago

rmtile: a personal header-only tile library for RDNA 3/3.5/4 optimization experiments

8 Upvotes

I've been building a header-only C++20 library called rmtile to test out WMMA scheduling, LDS layouts, and register-usage ideas on AMD RDNA 3, 3.5, and 4 GPUs.

This is a personal exploration project, not a production library. The example kernels aren't drop-in replacements for llama.cpp (they only implement fixed shapes and formats), so the goal is mainly to have a clean sandbox (and a reference people can borrow optimization ideas from) for software pipelining, bank-conflict avoidance, and keeping spills at zero.

How it's structured

The design comes from patterns I extracted from my earlier rocm_sgemm and rocm_wmma_gemm repos (with help from an LLM), and is documented in DESIGN.md. Rather than wrapping the whole kernel, rmtile only handles moving tiles between global memory, LDS, and registers (global_tile, shared_tile, register_tile, and copy), leaving compute, reductions, and loop scheduling in plain HIP. Device headers don't depend on <std>, so they work under hipRTC too.

One thing I specifically wanted was clean edge handling without polluting the hot loops. Across all four example kernels, there are no if branches or manual thread/bounds clamping around loads, stores, or staging. Global views rely on the hardware buffer descriptor (SRD) to clamp out-of-bounds reads to zero and drop OOB stores, guarded<...> handles partial tails via poison offsets / lane selects (like output stores or padding head size 72 to 80 in attention), and interior(...) strips even those checks in steady-state loops (grouped_gemm, for instance, walks K top-down so only the first tile is guarded, even on odd shapes like 333x1000 or 1500x97). The only runtime ifs left in the main kernels are algorithmic control (like exiting past the dynamic MoE tile table, or the wave vote for lazy softmax rescaling).

Numbers across RDNA 3, 3.5, and 4

Timings are isolated single-kernel launches (mean of 100 batches on ROCm 10.1.0), checked against a double-precision host reference, with quantize/sort/conversion passes included. The baselines target specific upstream commits: llama.cpp (e467e5b5), strix-llama.cpp (e08450a7) for attention, and a plain 64x64 HIP kernel for grouped_gemm.

mmq (mul_mat_q): int8 WMMA vs. fp16 dequantize-in-registers

On RDNA 3 and 3.5, keeping activations in fp16 and dequantizing weights on the way into LDS (rmtile/dequantized) is usually faster than the int8 WMMA path (rmtile) and avoids 8-bit activation quantization error (max relative error on Gaussian inputs drops from ~0.67% to ~0.039% on q4_K). On RDNA 4, int8 WMMA runs at 2x the rate of fp16, so only the int8 path is used.

Shape & formatGPU (Arch)llama_originalrmtile (int8)rmtile/dequantized (fp16)
4096x4096, 512 tok, q4_KRX 7900 GRE (RDNA 3)0.576 ms0.381 ms (1.51x)0.336 ms (1.71x)
Radeon 8060S (RDNA 3.5)0.769 ms0.679 ms (1.13x)0.579 ms (1.33x)
R9700 (RDNA 4)0.226 ms0.174 ms (1.30x)N/A
14336x4096, 2048 tok, q8_0RX 7900 GRE (RDNA 3)5.824 ms4.326 ms (1.35x)3.835 ms (1.52x)
Radeon 8060S (RDNA 3.5)10.437 ms8.309 ms (1.26x)8.153 ms (1.28x)
R9700 (RDNA 4)2.789 ms2.341 ms (1.19x)N/A

moe_mmq, flash_attention_mma, and grouped_gemm

Here the speedups mostly come from zero register spills (0 bytes of scratch across all rmtile kernels vs. 272-1108 bytes/lane in llama_original attention), prefetching the next block among WMMAs, fusing moe_mmq sort+quantize without duplicating gate/up rows, and dequantizing q8_0 KV in registers instead of launching a separate fp16 conversion kernel.

WorkloadShape (2048 tok / K=512)RX 7900 GRE (RDNA 3)Radeon 8060S (RDNA 3.5)R9700 (RDNA 4)
moe_mmq (128 exp, top 8)down 4096x1536, q4_K8.534 -> 5.282 ms (1.62x)15.033 -> 10.189 ms (1.48x)4.942 -> 3.124 ms (1.58x)
flash_attn d=128 f1632/8 heads1.199 -> 0.587 ms (2.04x)2.146 -> 1.061 ms (2.02x)0.783 -> 0.360 ms (2.17x)
flash_attn d=256 q8_016/8 heads (vs orig / strix)1.792 / 1.492 -> 0.679 ms (2.64x)3.287 / 2.785 -> 1.239 ms (2.65x)0.972 / 0.844 -> 0.417 ms (2.33x)
flash_attn d=72 f1632/8 heads (vs llama_tile)3.193 -> 0.428 ms (7.47x)5.761 -> 0.749 ms (7.69x)2.739 -> 0.258 ms (10.63x)
grouped_gemm fp164 sizes, K=512 (vs HIP)0.205 -> 0.062 ms (3.32x)0.273 -> 0.100 ms (2.74x)0.133 -> 0.030 ms (4.38x)

Note that these are single-kernel timings rather than end-to-end tok/s, and flash_attention_mma follows llama.cpp's contract (fp32 Q/output + fp16 mask tensor rather than a causal flag + LSE output), so it's not directly comparable to CK or FlashAttention-2.

The full per-shape tables, tile knobs, and ctest compile-time cost contracts are in the repo if you want to look through the kernels or try different configs.


r/ROCm • • 2d ago

Paiton Qwen 3.8 27B update: better 3-bit weights, faster follow-up turns in long agent sessions :)

5 Upvotes

This time, while we continue our everlasting quest to squeeze out everything we can.
We present another nice little update for Qwen3.8 27B (R9700)

We regularly notice comments here and there, people wondering how much worse these "3-bit" weights are? Or immediate negativity before even testing anything.

So this post is mostly about quality.
The new weights use a different 3-bit format: instead of one BF16 scale per 128 weights, every 8 weights share one extra bit, and each row gets one BF16 step. It's still 3.125 bits per weight and the same 9.56 GB download, but it lands closer to the 16-bit model:

Previous 3-bitNew 3-bit
KL divergence to bf16, decode / prefill0.0677 / 0.08210.0617 / 0.0773
Top-1 agreement with bf16, decode89.56 %90.17 %
GSM8K / HumanEval / MMLU-Pro95.7 / 94.5 / 79.895.8 / 94.5 / 80.0
SWE-bench Verified, 80 tasks4749

The task scores didn't move; SWE-bench runs at temperature 0.7, so 49 against 47 is basically noise. For reference, bf16 on a datacenter GPU scores 95.5 / 95.7 / 81.5 on the same GSM8K / HumanEval / MMLU-Pro questions.
The previous 3-bit was within noise of that on GSM8K and HumanEval and 2 points lower on MMLU-Pro.

Speed stays where it was: decode is within 0.4 % of the previous weights and prompt reading is a bit faster.
On the r8 image, new weights against the previous ones (old/new/new/old order):

Change
Prompt reading, 2K / 8K / 32K / 56K tokens2.7 / 3.0 / 2.8 / 2.8 % faster
Decode, one request, time per draft step0.4 % slower
200K-token agent conversation, all 25 turns3.1 % faster
Start until readythe same

With several requests, tokens per second follow how many drafted tokens get accepted, and that moves a few percent either way depending on the prompt.

The second change is for agents and long chats.

The client sends the whole conversation every turn, and vLLM tokenizes all of it again: 0.55 to 0.67 s at 311K tokens.
This release keeps the token ids of the last few long prompts and only tokenizes the new part (7 to 10 ms). In a 200K-token agent conversation, a follow-up turn now starts answering after 0.79 s instead of 1.20 s.
PAITON_TOKCACHE=0 turns it off.

To update: git pull and download the new weights from the Hugging Face repo below.
The image is r7 plus about 655 MB.
Your current 3-bit weights keep working on r8.


r/ROCm • • 2d ago

Advent of Kernel Optimization

Thumbnail
streamhpc.com
3 Upvotes

Today is the third day of our Advent of Kernel Optimization, covering loop unrolling and inlining. We'll be posting about one kernel optimization technique for ROCm and CUDA every weekday until Christmas at https://streamhpc.com/blog/tag/advent2026/.


r/ROCm • • 2d ago

Inkling-2-Mini Swift on AMD Loom (Strix Halo): same decode speed, 64% fewer completion tokens

Thumbnail
reddit.com
5 Upvotes

amd loom + swift + inklin-2-mini


r/ROCm • • 2d ago

I made gemma4 engine on 7900xtx

Thumbnail github.com
0 Upvotes

r/ROCm • • 3d ago

Pushed Inkling 2 Mini on a 7900xtx. 180tps single stream. 250tps prose. 326.6 tok/s on coding with 507.9 tok/s 1s bursts. 7900xtx fork for nib

27 Upvotes

Hello, human here.

huge shoutout to Chromadera for his nib project! This is a fork from that one!

I wanted to get inkling 2 Mini really fast for some lighter multi-stream work and Gemini did just that. The secret was using multiple Dflash2 modules loaded in a very clever way to get more tps.
This should work on any rdna3 card and probably rdna4, but it's untested. The numbers right now are made for exactly the 7900xtx. Smaller quants and different context sizes should allow 20gb or 16gb cards as well.

Have fun with it!

nib-7900xtx — Multi-Slot Fused DFlash 2 Speculative Decoding for RX 7900 XTX

Branch: https://github.com/BesnikDev/nib/tree/nib-7900xtx


Copy-Paste Post (Reddit / Discord / GitHub / X)

nib-7900xtx: Multi-slot fused DFlash 2 speculative decoding across 2–8 parallel slots on RX 7900 XTX (268.5 tok/s steady on 1 card, up to 326.6 tok/s steady / 507.9 tok/s burst on code; >1,000 tok/s peak across 2× XTX)

Upstream nib (v0.4.1) runs DFlash 2 / DSpark speculative decoding only when a single slot (B = 1) is active — as soon as 2+ parallel requests decode together, it falls back to standard 1 tok/slot batched decode.

We built an RX 7900 XTX (gfx1100) optimization branch — BesnikDev/nib (nib-7900xtx) — that keeps DFlash 2 speculative decoding active across all 2..8 parallel slots simultaneously in a single 1× weight-stream pass per step, with zero SGPR/VGPR/private-segment register spills across all 22 kernel objects (spill_audit.sh clean) and bit-identical (md == 0.0) greedy verification parity.

What's Inside

  • Per-slot SWA-2048 BF16 DFlash 2 KV rings (41.1 MiB/slot) synchronized continuously across prefill, B >= 2 decode, and solo decode via a slot tap hook — zero cache invalidation when streams join or finish early.
  • WMMA 16×16×16 draft_nslot(1..8): Fuses all active slots' 8-token DFlash 2 block drafts into a single weight-stream pass (0.46 ms/slot at 8 slots) + block-isolated conv/RoPE/SWA-attention/Top-16/selector kernels.
  • 32-row verify_step_nslot(1..8) + verify_rollback_nslot(1..8): Verifies heterogeneous per-slot draft lengths (m_s in [1..8], up to MAX_VERIFY_TOKENS = 32 total rows) in one MoE + DeltaNet + GQA pass, with T_CHUNK = 16 MoE tiling, K-tiled lm_head GEMV (m = 1..32), and 2-level {m_lo, m_hi} HIP graph-key quantization so 8-slot heterogeneous batches never thrash the HIP graph cache.
  • Hardware-calibrated m_tot = 16 default: Keeping total verify rows <= 16 stays inside a single T_CHUNK = 16 MoE pass and 2-row-per-lane lm_head fast path — beating wider verify budgets on diverse reasoning workloads, while NIB_VERIFY_MAX_ROWS=32 unlocks 8×4 verification for ultra-predictable HTML/JS generation.

Benchmarks (Inkling-2-Mini-NVFP4-Mixed + DFlash 2 + mmproj Q8_0, --kv-type q8_0 --sparse-pages 224 --ubatch 1024 --cpu-embd, ROCm 10.2)

SetupContext Pool (-c)1× RX 7900 XTX Wall / SteadyPer-Stream2× RX 7900 XTX (Independent Instances)
2× slots/card (diverse code/vision)262,848 (131k min/slot)156.3 / 164.3 tok/s~80 tok/s300.3 wall / 301.8 tok/s peak (4 streams)
4× slots/card (sweet-spot context)262,848 (65.7k min/slot)213.3 / 241.2 tok/s~60 tok/s~426 wall / ~482 tok/s steady (8 streams)
6× slots/card (throughput/ctx balance)212,992 (35.5k min/slot)241.9 / 268.2 tok/s~45 tok/s486.5 wall / 531.5 tok/s steady (12 streams)
8× slots/card (diverse prompts)196,608 (24.6k min/slot)254.5 / 268.5 tok/s~34 tok/s508.7 wall / 537.7 tok/s steady (16 streams)
8× slots/card (HTML5 Snake, m_tot=32)196,608 (24.6k min/slot)318.1 wall / 326.6 steady / 507.9 1s burst40.8 steady (68.0 peak)631.0 wall / 651.2 steady / 921.5 1s burst (1,031.6 tok/s sum of stream peaks)

Build & Run

git clone -b nib-7900xtx https://github.com/BesnikDev/nib.git
cd nib
cmake -B build -DCMAKE_BUILD_TYPE=Release -DGPU_TARGETS=gfx1100
cmake --build build -j
./scripts/spill_audit.sh build

# Recommended 4-slot 262k setup (all 4 slots get fused DFlash 2; solo requests still expand up to 262k):
./build/nib serve \
  -m /path/to/Inkling-2-Mini-NVFP4-Mixed.gguf \
  --mtp /path/to/Inkling-2-Mini-DFlash2 \
  --mmproj /path/to/mmproj-Inkling-2-Mini-Q8_0.gguf \
  --slots 4 -c 262848 \
  --kv-type q8_0 --sparse-pages 224 --ubatch 1024 --cpu-embd

Optional tuning env vars for 6–8 slots on high-acceptance code: NIB_VERIFY_MAX_ROWS=32 NIB_NSLOT_HI_M=4 with --spec-threshold 0.55.


r/ROCm • • 4d ago

I updated ComfyUI Portable from ancient ROCm 7.2 to ROCM 10.2

Thumbnail
gallery
44 Upvotes

ComfyUI

ComfyUI portable I find the easiest way to run, the portable python installation solves so many issues of using a global python. Only issue it still ships as today with an ancient ROCm 7.2.

Here the update script I used to update the portable installation I made it tied to the GX1100 (the ROCm alias of the 7900XTX) since it's the only card I have for testing.

Performance Comparison

I compared the same workflow before and after updating the wheels, on the 7900XTX I got a big boost on BF16, moderate boost on FP8, and little difference on INT8CR quants

ModelStepsDiffusion QuantROCm 7.2ROCm 10.2Reduction
Moss Image Turbo Lora4BF169.86 s5.89 s40.26%
Moss Image Turbo Lora4INT8 Conv Rot3.49 s3.36 s3.72 %
Krea 2 Turbo9FP828.37 s23.93 s15.65 %

Stability has improved. With 7.2 I needed to disable dynamic memory altogether, with 10.2 dynamic memory still causes issues after a dozen or so generation causing 6X slowdowns on some generations but it's overall lots more stable.

If you happen to do some testing on other cards and wish to share result I have an open issue.


r/ROCm • • 4d ago

Skipping host DRAM for KV cache on 16x MI355X with ROCm MoRI UMBP + vLLM (1.8 TB NVMe matched DRAM within 1%)

9 Upvotes

We just put up a write-up on the vLLM blog testing AMD's open-source MoRI UMBP (https://github.com/ROCm/mori) as a direct NVMe KV cache pool for vLLM, skipping the host DRAM tier completely.

Blog with full numbers and flags: https://vllm.ai/blog/2026-11-23-skip-the-dram-tier

Setup: 16x MI355X (1P1D, TP8 prefill + TP8 decode over RDMA via MoRIIOConnector), Kimi-K3 (FP8 KV), and 2x 3.84 TB Micron 7450 PRO NVMe drives per node. Plain ext4, no RAID, no NVMe-oF, direct I/O through io_uring so the Linux page cache isn't silently caching reads in RAM. The only DRAM UMBP uses is ~80 GB (64 GB write buffer + 16 GiB read staging).

Results (tok/s per GPU across all 16 GPUs):

1.8 TB NVMe vs 1.8 TB DRAM on SemiAnalysis AgentX traces (142K median prompt):

  • 48 sessions: 12,275 NVMe vs 12,240 DRAM (+0.3%)
  • 70 sessions: 13,492 NVMe vs 13,380 DRAM (+0.8%)
  • 96 sessions: 13,284 NVMe vs 13,313 DRAM (-0.2%)

WEKA kvlab 40-day trace at 70 sessions (where smaller tiers actually fill up and collapse):

  • GPU HBM only: <=1,062 tok/s/GPU (~6% hit rate)
  • 1.0 TB DRAM: 1,725 tok/s/GPU (52% hit rate)
  • 4.6 TB NVMe (2 nodes): 8,813 tok/s/GPU (93% hit rate, 5.1x the 1 TB DRAM pool)

Async loading in UMBPStoreConnector (already in vLLM main) is what hides the slower NVMe reads (~0.4s extra on a 128K prefix) while requests wait in the prefill queue. One MoRI gotcha we hit: UMBP's default 4 GiB append-only segment files caused file GC to throw away live KV alongside stale KV, putting NVMe 12.8% behind DRAM. Dropping segment size to 256 MiB (MoRI #967) gained +15.6% throughput and dropped TTFT p90 from 63s to 21s.

Main catches: only tested on MI355X with low-KV-per-token models (Kimi-K3 and DeepSeek-V4-Pro, both MLA/hybrid; dense GQA models will need way more disk bandwidth), and SSD wear is heavy (~11 DWPD on two 3.84 TB drives at 96 sessions, so real deployments need writes spread over more drives).


r/ROCm • • 4d ago

Coming from NVIDIA, the thing that threw me on AMD Instinct was that DCGM doesn't have a single replacement

4 Upvotes

I've been digging into how the NVIDIA tools map to AMD Instinct, and figured I'd share what I learned since I couldn't find it all in one place.

The easy part is nvidia-smi. AMD SMI covers most of it and the commands feel familiar: amd-smi for the summary, amd-smi static instead of nvidia-smi -q, amd-smi monitor instead of dmon, amd-smi metric --ecc for ECC counts. One gotcha though: the field names and units don't always match, so I'd be careful comparing numbers across the two without checking what each one actually measures.

The part that took me a while is DCGM. On NVIDIA it's one tool doing metrics, health and diagnostics. On AMD that's split three ways. AMD SMI talks to the GPU, RDC collects metrics across nodes, and RVS (ROCm Validation Suite) runs the actual stress tests.

RVS got a lot nicer in 1.3.0 (ROCm 7.1.1). There's now rvs -r with levels, very similar to dcgmi diag -r. Start at sudo rvs -r 1 and work up. Level 5 runs for hours. And definitely drain the node first, because these tests will wreck whatever else is running.

There are also no Xid codes. You read RAS data instead. amd-smi metric --ecc-blocks --gpu 0 tells you which block the errors came from (memory controller, GFX, PCIe), and amd-smi ras --cper --folder ./cper-logs dumps the CPER records. If the correctable ECC count keeps climbing, treat that as your early warning.

Last one: NVSM just doesn't exist on the AMD side. Makes sense, since AMD GPUs go into everyone's servers, so for PSUs, fans and chassis health you're reading the BMC over Redfish.

Anyone else running mixed NVIDIA/AMD fleets? Curious what I've missed or what tripped you up.