r/ROCm • u/returnity • 12h ago
r/ROCm • u/NeoGokuTM • 1d ago
Best local LLM for coding and autonomous agents on an RX 7900 XTX (24GB)?
Hey everyone,
I'm looking for recommendations from people running local LLMs on similar hardware.
My PC specs:
- CPU: AMD Ryzen 7 7800X3D
- GPU: AMD Radeon RX 7900 XTX (24GB VRAM)
- RAM: 64GB DDR5 6000 MT/s
- Storage: NVMe SSD
- OS: Windows
My current setup:
- LM Studio
- OpenCode
- Persistent long-term memory using Obsidian and MCP
- Remote access from my Android phone via WireGuard
My goal:
I want to build a fully local alternative to Claude Code or Codex that can autonomously work on large repositories, implement complex features, fix bugs, run tests, and handle GitHub operations.
I've already tested:
- Qwen3.6-35B-A3B Heretic MTP
- Qwen3-Coder-30B-A3B Abliterated
- Qwen3.8-27B Uncensored AD
- Devstral Small 2 24B Abliterated
- Muse Glimmer 30B Heretic
Qwen3.6 currently performs best in my tests, reaching around 140–196 tokens/s. However, I'm experiencing issues with premature task termination, hallucinations, repetitive file analysis, and unreliable autonomous execution. Some of these issues might be caused by my OpenCode configuration rather than the model itself.
My questions:
- Which model are you currently using on similar hardware?
- Which model would you recommend for complex, autonomous coding?
- Which quantization and inference settings work best for you?
- Are you using Vulkan or ROCm?
- What context size can you run reliably?
- Which coding agent or frontend gives you the best results?
- Have you found a model that reliably completes large development tasks without constant supervision?
I prioritize code quality, reliable tool calling, reasoning, and autonomous task completion over raw generation speed.
I'm particularly interested in real-world experiences rather than theoretical benchmark scores.
Thanks!
r/ROCm • u/evp-cloud • 1d ago
Inkling 2 Mini | Paiton | R9700: full 1M-token context, +200 tok/s(empty context)
While we patiently wait for Qwen 4 to drop, we decided to jump on another seemingly popular model.
Thinking Machines' Inkling 2 Mini
We got it running on our R9700 with the full 1,048,576-token context (and then some).
vLLM 0.32 can't load this model, so this is vLLM 0.32.1 with our Paiton plugin and native HIP kernels.
How we measure
Many speeds you see floating around are greedy (temperature 0), on short code prompts, with an empty context.
The drafter guesses most tokens right in that case, so those numbers come out high.
We show our own best case too (short prompts, an empty context, 512-token replies), so you can compare.
Our normal numbers are the harder case: the model's default temperature of 1.0, prose, a fresh server with nothing cached, and the context really filled (the 1M run reads a 1,038,312-token prompt).
Three versions
| Default | Fast (--fast) | Super fast (--w3) | |
|---|---|---|---|
| Context per request | 1,048,576 | 524,800 | 1,048,576 |
| Weights | the publisher's, unchanged | the publisher's, unchanged | 3-bit experts, 8-bit attention projections |
| Output | the model's own | the model's own | close to the default |
Best case, one request, empty context, 512-token replies (LocalMaxxing's code-v1 and reasoning-v1 speed tests), tok/s:
| Default | Fast | Super fast | |
|---|---|---|---|
| Best run | 177.6 | 166.6 | 201.3 |
| Mean, code-v1 / reasoning-v1 | 165.4 / 164.4 | 152.0 / 166.6 | 194.4 / 198.2 |
Normal use, temperature 1.0, prose, nothing cached, tok/s:
| Default | Fast | Super fast | |
|---|---|---|---|
| 1 request, empty to 128K context | 87 to 98 | 97 to 106 | 153 to 180 |
| 1 request, 262K context | 91.5 | 88.3 | 145.5 |
| 1 request, 524K context | 78.2 | - | 112.5 |
| 4 requests at once (total), empty to 128K | 213 to 250 | 230 to 246 | 356 to 400 |
| Prompt reading, 8K to 128K | 3,089 to 3,940 | 4,022 to 5,562 | 4,081 to 5,715 |
The speed tests are the mean of four runs for the default, one run for fast and two for super fast; the accepted drafts move a single run by up to 15 %.
The other rows come from LocalMaxxing's matrix and its long-context runs.
We didn't run fast at 524K, and it has no 4-request number at 128K because four 128K requests don't fit its cache.
On LocalMaxxing: the fast matrix and the super fast matrix.
Fast reads prompts in 2,048-token chunks and checks 4 drafts per step instead of 5.
It keeps the default's weights and draft check, so greedy replies to prompts of up to 512 tokens are the same tokens.
On short code, tool and chat replies it is about 4 % slower than the default.
What 3-bit costs
Super fast runs 3-bit experts we made from the publisher's checkpoint (EliovpAI/Inkling-2-Mini-W3-INT3-Paiton-RDNA4, the launcher downloads them), 8-bit attention projections and a relaxed draft check.
Some accuracy loss is normal for 3-bit.
This is version 1 of these weights, and we'll improve them step by step, as we did with our 3-bit Qwen3.8 27B.
| Prompts | 3-bit picks the bf16 model's next token | Two bf16 runs agree | Added KL per token |
|---|---|---|---|
| Up to 128K tokens | 95.28 % | 97.18 % | 0.019 |
| 256K (5 documents) | 94.24 % | 95.94 % | 0.014 |
| 512K (5 documents) | 95.01 % | 97.09 % | 0.017 |
It still finds all 76 codes planted in the 2K to 512K documents, and it scores 34 of 35 on our task set, the same as the default.
Long context
Default version, one request on a fresh server, nothing cached.
Ten facts hidden from 1 % to 99 % depth, one question about all of them, temperature 1.0:
| Cache | Prompt tokens | Prompt speed | First token | Generation | Facts found |
|---|---|---|---|---|---|
| 4-bit (default) | 1,038,312 | 1,185 tok/s | 14 min 36 s | 117.4 tok/s | 9/10 |
| 4-bit (default) | 260,062 | 2,542 tok/s | 102 s | 141.8 tok/s | 9/10 in the reasoning, cut off at 4,000 tokens |
| fp8 | 464,862 | 1,825 tok/s | 255 s | 100.5 tok/s | 10/10 |
| fp8 | 260,065 | 2,410 tok/s | 108 s | 105.0 tok/s | 10/10 |
| bf16 | 239,584 | 2,475 tok/s | 97 s | 99.6 tok/s | 10/10 |
Super fast found 10 of 10 in a 1,038,311-token prompt: it read the prompt at 1,317 tok/s, then generated at 125.5 tok/s.
| Cache | Tokens per request | KL per token against bf16 | Task set |
|---|---|---|---|
| 4-bit (default) | 1,048,576 | about 0.005, the same out to 512K | 34/35 |
| fp8 (--kv-cache fp8) | 558,496 | nothing we can measure | 34/35 |
| bf16 (--kv-cache bf16) | 279,248 | - | 34/35 |
Drafter
vllm bench serve, 1K-token prompts, 512 tokens out, total tok/s, four fresh servers (off, on, on, off):
| Requests | Greedy, off | Greedy, on | T 1.0, off | T 1.0, on |
|---|---|---|---|---|
| 1 | 68.8 | 151.3 | 68.9 | 129.4 |
| 2 | 112.1 | 200.9 | 112.1 | 200.5 |
| 4 | 170.7 | 284.9 | 169.5 | 295.2 |
The drafter is on by default (--no-drafter turns it off).
First token on a 1K prompt: about 0.3 s.
Run it
git clone --depth 1 https://github.com/Eliovp-BV/paiton-vllm-plugin.git
cd paiton-vllm-plugin
./models/Inkling-2-Mini/serve-docker.sh # default
./models/Inkling-2-Mini/serve-docker.sh --fast # fast
./models/Inkling-2-Mini/serve-docker.sh --w3 # super fastOpenAI-compatible API.
Limits
- On very long prompts greedy can loop, and reasoning can run past 4,000 tokens. Use the default sampling and a larger max_tokens.
- At most 4 requests at once per card.
- With the drafter on, vLLM refuses min_p and logit_bias.
- A 1M prompt takes about 15 minutes before the first token.
- Super fast changes the output. Use the default or fast when you need the model's own.
Full tables with p50/p90/p99 latencies: Here
This is our first version and we'll keep working on optimizing these results.
A 16 GB GPU supported version is in the works.
r/ROCm • u/PadhaLikhaMajdur • 1d ago
Just started with local LLMs: Inkling-2-Mini on RX 7800 XT + PolyStrata (Windows). Are these numbers right, and what should I try next?
New to local models, and this is my first ROCm setup. Sharing numbers in case they help another 7800 XT owner, and asking what to try next.
- GPU / OS: RX 7800 XT 16GB, Windows, Ryzen 5 9600X, 32GB DDR5
- Engine: Strata Poly 0.1.66 (local HIP build, gfx1101, ROCm 10.2.0a 20260930)
- Model: Inkling-2-Mini Unsloth UD-Q4_K_XL
- Flags: attn-requant q5_k, loop-bf16, tail-skip 2, reasoning effort 0.6
- Speed: ~64 tok/s at 32k ctx, ~50 tok/s at 64k
Questions
- Are these numbers about what a 7800 XT should do, or am I leaving speed on the table?
- PolyStrata vs llama.cpp (ROCm or Vulkan) on RDNA3: what are other AMD users running?
- Which harness or agent setups play nicely with a local ROCm endpoint on Windows?
r/ROCm • u/Leather-Resist896 • 1d ago
Redstream: an open-source DeepStream-style video analytics SDK for ROCm. Looking for testers on RDNA3/4.
Hi r/ROCm,
NVIDIA DeepStream is the go-to toolkit for multi-camera video analytics, and it only runs on NVIDIA. I've been building an open-source counterpart for AMD: Redstream (LGPL, GStreamer plugins on ROCm, HIP, rocDecode and MIGraphX).
https://github.com/redstream-dev/redstream
What works today (pre-alpha):
- File and RTSP sources with reconnection, H.264/H.265 decode with rocDecode
- GPU batching of any number of streams, YOLO detection and secondary classifiers on MIGraphX, from DeepStream
nvinferconfig files (DeepStream custom bbox parsers recompile against a compat header) - Tracking (IOU, NvSORT configs), ROI / line-crossing / direction analytics, tiling, on-screen display
- H.264/H.265 encoding to MP4/MKV
- 14 elements, each mapping to a DeepStream one (
nvstreammux->rdsstreammux,nvinfer->rdsinfer, …), so a DeepStream app ports with renames. Every element has a reference page, including how it differs from DeepStream.
Frames stay in GPU memory from decode through inference, tracking, analytics, tiling and OSD. The README says exactly where they leave it (encode and display, for now).
The catch: so far it has only run on one GPU, my 2-CU RDNA2 iGPU of a Ryzen 9 7900X, through HSA_OVERRIDE_GFX_VERSION. Even there, four 720p streams run through detect -> track -> tile -> OSD at about 45 fps in total (YOLO11n). I'd love to know what a real card does, and whether it works at all.
If you have an RDNA2/3/4 card or a Strix Point/Halo APU, there's a tester checklist here: https://github.com/redstream-dev/redstream/issues/1
It's a Docker build, the test suite, and one benchmark line to paste back. Bad results and crashes are just as useful as good ones.
Known limits: Linux only (Windows/WSL untried), no prebuilt image yet (the build takes about 4 minutes on a fast machine, plus the downloads), and APIs will change. Questions, critique and "you should look at X" are all welcome.
r/ROCm • u/Common_Sorbet3873 • 1d ago
[Benchmark] Exact GPU Top-K Search on AMD ROCm and MetaX C500 — 6 Datasets, Geometric Mean Speedups, and Numerical Audits
uulong950.github.ioI'd like to share some benchmark results for QingMing Flat2, a GPU exact vector search implementation, comparing it against hipVS, Faiss ROCm, and mcFaiss.
The goal is to provide performance and numerical accuracy data for the community to review and discuss.
Interactive benchmark report:
https://uulong950.github.io/qingming-flat2-benchmarks/
Hardware and baselines
- AMD Radeon RX 7900 XTX (ROCm 7.2.4): QingMing Flat2 vs hipVS and Faiss ROCm
- MetaX C500 (MACA 3.3.0.15): QingMing Flat2 vs mcFaiss, using a 25% compute sGPU partition
Datasets
Six datasets were evaluated on both devices:
| Dataset | Database size | Dimensions | Metric |
|---|---|---|---|
| SIFT1M | 1M | 128 | L2 |
| GIST960 | 1M | 960 | L2 |
| Llama-128-IP | 257K | 128 | Inner product |
| LAION-CLIP-512 | 1M | 512 | Inner product |
| GloVe-100-Angular | 1.18M | 100 | Cosine |
| DEEP10M | 10M | 96 | L2 |
Performance summary
Geometric mean speedups based on GPU P50 latency, across the tested Batch × Top-K configurations for each dataset:
| Dataset | C500 vs mcFaiss | AMD vs hipVS | AMD vs Faiss ROCm |
|---|---|---|---|
| SIFT1M | 3.26× | 4.23× | 3.92× |
| GIST960 | 1.29× | 4.80× | 4.40× |
| Llama-128-IP | 2.55× | 3.19× | 2.31× |
| LAION-CLIP-512 | 1.70× | 3.05× | 2.37× |
| GloVe-100-Angular | 3.17× | 3.57× | 2.98× |
| DEEP10M | 4.16× | 3.42× | 3.67× |
| Overall geometric mean | 2.49× | 3.66× | 3.18× |
The overall figures are dataset-balanced geometric means: each dataset contributes equally after aggregating its measured workload configurations.
All comparisons are within the same device. These numbers should not be interpreted as rankings between AMD and MetaX hardware.
Numerical validation and methodology
The published evidence includes:
- GPU and synchronized host API latency measurements
- Batch throughput estimates and raw timing samples
- Top-K correctness checks against sampled full-database CPU FP64/FP32 references
- Returned-distance numerical accuracy audits
- Environment metadata and benchmark limitations
GPU timings exclude offline index construction and final result transfers. Reported QPS is a batch-throughput estimate, not sustained service throughput.
Limitations: The core QingMing Flat2 kernels are not yet publicly available, and the published evidence does not establish exhaustive correctness for every query. These are project-reported measurements, not independently reproduced results.
Feedback welcome
I'd be interested in feedback on:
- The fairness of the baseline comparisons
- Numerical correctness and floating-point accuracy
- Performance across different dimensions, batch sizes, and Top-K values
- Other exact GPU KNN implementations worth comparing
The intention is to share auditable measurement evidence and encourage technical discussion rather than claim universal superiority.
Full interactive results, raw CSVs, and environment details:
https://uulong950.github.io/qingming-flat2-benchmarks/
GitHub repository:
https://github.com/uulong950/qingming-flat2-benchmarks
r/ROCm • u/Public-Luck1904 • 2d ago
We ported Gaussian SLAM to AMD. Then we put HIP up against CUDA on a 4090.
After getting CaRtGS to build on AMD, the moment I was waiting for was seeing it reconstruct a room on Strix Halo. The next question was whether maintaining HIP source would also cost us performance on NVIDIA. So we timed two builds on the same RTX 4090.
The timings were closer than I expected. Across six saved rasterizer backward workloads, the paired medians ranged from 0.42% faster to 0.24% slower with HIP. Both builds used CUDA 12.8 on the 4090. HIP’s NVIDIA backend uses nvcc and the CUDA runtime. AMD HIP porting guide
- 4090 backward replay. Four interleaved pairs per workload, with 30 synchronized samples per mode in each pair after warm-up. One early Replica pair landed at −15.47% and stayed in the calculation.
- 4090 mapping pilot. The same 300-frame Replica prefix took 12.28–12.31 s with the HIP build and 12.33–12.35 s with the CUDA build. Two runs per mode and 2,900 mapper updates in every run.
- Native AMD runs. CaRtGS processed 2,000 Replica room0 frames in 99.23 s and 592 TUM fr1/desk frames in 35.38 s on the Radeon 8060S. A late Replica gradient case still exceeds our parity tolerance.
There’s a reason this could help more than one project. CaRtGS, RTG-SLAM, SplaTAM, and MonoGS all use variants of the original Graphdeco/Inria rasterizer. That’s the GPU code that turns splats into pixels and computes gradients for optimization. Each project has its own extensions, but they inherit many of the same building blocks. Original rasterizer · SplaTAM dependency · MonoGS dependency
I’d like to use CaRtGS and my RTG-SLAM port to build a small shared HIP layer. Start with a portable scan or sort call and one saved-input parity test used by both repos. Expand to stream handling and logical subgroups once we know the first piece pulls its weight. My RTG-SLAM ROCm port
Starting a new GPU research project or weekend hack? Give it two build targets on day one. Write your custom kernels in HIP, build the same source with ROCm on AMD and CUDA on NVIDIA, and run one small correctness test on each. Finding dependency and subgroup assumptions while you’re writing the kernels can save the next person a separate port just to try your idea. AMD HIP compiler guide
I’m sharing this in a few places because the benchmark and the port raise different questions. Here I’d especially value the experience of people maintaining ROCm builds.
If you’re starting a project, would a small starter repo with both builds help? If you’ve already ported a splatting system, which piece did you end up reimplementing? I’d love to compare notes with anyone willing to try a first shared test on Radeon or Instinct.
First image. Same-card 4090 backward timings. Second image. One held-out view from a separate 300-frame Strix Halo pilot. Scene by the Replica Dataset authors. CaRtGS upstream · Replica Dataset


r/ROCm • u/BhatSahab • 2d ago
Inkling 2 Mini on one RX 9070 XT: SaloQT’s rdna4-amd-infer does 150 tok/s tg and 3,000 tok/s pp vs llama.cpp’s 23 tg / 181 pp (same model, 256K context)
r/ROCm • u/Bunsenbun • 2d ago
Introducing Nib, a zero-framework C++17/HIP inference engine built from scratch for Inkling 2 Mini on AMD RDNA3 (gfx1100, navi 31) GPUs. Tested with an AMD Rx 7900xtx.
r/ROCm • u/TJSnider1984 • 2d ago
Any AMD folks know what the plan for ROCM 10.2 etc. is on 26.10?
Title says it all.. Ubuntu 26.10 is not able to install ROCM 10.2, though 10.1 runs on it after the upgrade..
r/ROCm • u/raspy00135 • 3d ago
Inkling-2-Mini (native NVFP4/MXFP8 weights) at 100+ tok/s on a single 16 GB RX 9070 XT on Windows 11. Custom Rust + raw RDNA 4 HIP kernels + DFlash 2
Video shows ~100 tok/s live on a single 16 GB Radeon RX 9070 XT on Windows 11 (Adrenalin 26.10.44, monitor on motherboard iGPU so the card holds just the model).
I built SmallTide from scratch in Rust + raw RDNA 4 HIP kernels, no ROCm SDK, no Python, no PyTorch/llama.cpp needed to run.
Unlike GGUF re-quantizations, it runs Inkling-2-Mini's official native checkpoint weights directly (NVFP4 + MXFP8 experts), keeping ~99% of routed expert weight resident in dedicated GDDR6 VRAM (with fast PCIe rescues from RAM for misses), elastic 32K→128K k8v4 paged KV, and lossless DFlash 2 (incoai/Inkling-2-Mini-DFlash2) speculative decoding.
Benchmark numbers (RX 9070 XT 16 GB, Windows 11, temp 0.6), headless (no monitor cable attached)
| Workload | Throughput | Peak |
|---|---|---|
| Essay (prose, 1K out) | 87.0 tok/s | 90.9 tok/s |
| Code (code, 1K out) | 91.0 tok/s | 93.8 tok/s |
| File refactor (edit, 1.4K in / 1K out) | 109.1 tok/s | — |
Reasoning (code --thinking, 1K out) | 115.2 tok/s | 124.3 tok/s |
| One-shot HTML games (angry-birds / mario, 6K–8K out) | 114.4 / 126.2 tok/s | — |
Fidelity: ~98–99% VRAM hit rate, 0.3%–0.6% skipped routing weight, and ~96% top-1 agreement vs. full-expert loading.
Repo: https://github.com/raspy135/SmallTide
Pre-built Windows releases embed both gfx1201 (RX 9070 / 9070 XT) and gfx1200 (RX 9060 XT 16 GB). I only have a 9070 XT to test on — if anyone tries it on a 9070 or 9060 XT 16 GB, I'd love to hear your .\smalltide.cmd probe and benchmark results!
r/ROCm • u/OneLifeLeft0101 • 2d ago
3× Radeon AI PRO R9700 (96GB) on a consumer Z890 board, one card on OCuLink. My numbers + a Threadripper question
reddit.comr/ROCm • u/NinjaRealistic8767 • 2d ago
Undervolted RX 9070 XT passed every game but silently broke hipBLASLt FP16 matmuls – so I built a free tuner that tests exactly that (one-click, no PyTorch needed)
r/ROCm • u/Glittering-Cold-2981 • 2d ago
R9700 AI PRO Minimax H3 video lenght x resolution maximum Linux
Do you have any proven methods for running Minimax H3 with Comfy Kitchen Attention—specifically, where the video duration (in seconds) multiplied by the resolution (in MP)—for example, 1s x 1MP—results in a value greater than 27 on an R9700 AI PRO 32GB? I’ve managed to run Sage Attention with a value of around 32.5, but I’d like to achieve this using Comfy Kitchen. Is there any way to increase the capabilities of this GPU without encountering OOM (Out of Memory) errors while running on Linux?
r/ROCm • u/Pretty-Guest-6692 • 2d ago
Build TheRock on arm64?
I've got a dgx spark for development, and would like to write code for both Nvidia (Ampere, Hopper) and AMD (Instinct) GPUs. It runs an Ubuntu 24.04 derivative.
I'm trying to build AMD's TheRock from git (10.2+), but keep failing when it comes to quadmath, as there's no libquadmath0 for arm64. Can I somehow work around this?
r/ROCm • u/mikebmx1 • 3d ago
More on running Java on AMD GPUs
The moat repo of amd in GitHub seems to spread a number of agents adding HIP support to notable projects. They Jeffrey daily an AMD fellow seemed to add HIP support to tornadovm so now you can run Java on AMD hw with rocm.
r/ROCm • u/BhatSahab • 4d ago
Inkling 2 Mini at 256k context on a single 16 GB RX 9070 XT: 55–85 tok/s with a patched llama.cpp (ROCm), ~3× upstream on chat and ~10× on long prompts
reddit.comr/ROCm • u/Ok_pettech • 4d ago
How to Install PyTorch with CUDA Support Step-by-Step Guide
interconnectd.comSetting up PyTorch with CUDA support often breaks over mismatched GPU drivers, toolkit versions, or environment paths. A single version conflict can leave PyTorch stuck on the CPU.
This step-by-step guide walks through checking your NVIDIA driver and CUDA compatibility, installing PyTorch with GPU acceleration cleanly, and verifying that torch.cuda.is_available() works as expected. It cuts out the guesswork so you can start training and testing models faster.
Check out the full walkthrough here: https://interconnectd.com/forum/thread/248/pytorch-on-amd-gpus-complete-rocm-setup-tuning-guide/
What OS and GPU setup are you working with, and are you hitting any specific CUDA errors right now?
r/ROCm • u/CarGold87 • 5d ago
Inkling-2-Mini at the full 1M context on one RX 7900 XTX (Windows, ROCm): 9/9 retrieval, 37 min prefill, ~10 tok/s decode, and how it compares to llama.cpp
TL;DR: I optimised a native engine (based on Strata's strata-ink2) that runs Inkling-2-Mini (looped 26B MoE, 1M context) on a single 24 GB RX 7900 XTX with 32 GB RAM, on Windows. It is the real 1,048,576-token context, int8 KV cache, Unsloth UD-Q8_K_XL weights, nothing truncated or skipped. A 1M prompt takes ~37 min to read, then it decodes at ~10 tok/s. llama.cpp on the same box does ~1 tok/s with the experts on the CPU and can't do 1M at all.
Setup
- RX 7900 XTX 24 GB, 32 GB RAM, Windows 11, ROCm/HIP (gfx1100) from AMD's TheRock wheels. No WSL.
- Weights: Unsloth UD-Q8_K_XL, converted losslessly (the NVFP4 experts stay bit-exact). KV cache: int8. No layer or loop skipping, no eviction, no summarising.
- About 15 GiB of experts sit in pinned host RAM and the hot ones are cached in VRAM. At 1M the KV cache alone is ~17 GB, so only ~9 % of the experts fit in VRAM.
Numbers (same machine, logs are in the repo)
| llama.cpp | this engine, first HIP port | this engine now | |
|---|---|---|---|
| Prefill, 32K prompt | 452 tok/s | 1,677 tok/s | ~3,090 tok/s |
| Prefill, 256K prompt | not measured | 272 s | 119 s |
| Prefill, 1M prompt | does not fit | 52 min | 37 min |
| Decode, 16K context | ~1 tok/s | 73 tok/s | 81 tok/s |
| Decode, 256K context | not measured | 18 tok/s | ~52 tok/s |
| Decode, 1M context | does not fit | ~7 tok/s | ~10.5 tok/s |
1M retrieval: 9/9 exact matches (8 planted facts at different depths plus a multi-hop question). Accuracy against a llama.cpp CPU reference: mean KL ~0.0023 over 4x512 tokens (llama.cpp's own HIP backend: 0.0030-0.0033).
What made it faster
- A fused relative-bias flash attention for the int8 KV (WMMA). Rewriting it so that P stays in registers gave another ~1.5x on the attention kernel.
- Split-key decode attention: reads the KV at ~530 GB/s instead of ~260.
- fp16-output projection GEMMs (about 10 -> 90 TFLOP/s in isolation).
- One skinny gate GEMM was running at 1.7 TFLOP/s; splitting it along K fixed that.
- A guard for Windows silently moving a big buffer out of a full card into system RAM (it cost +31 ms per token once).
- Save/load of the KV state to disk, because a 1M prefill should not happen twice.
What did not work: a register prefetch in the attention kernel (it spilled), speculative decoding with the model's own draft head (a verify costs ~3 decode steps and gives ~2.3 tokens, so it is slower), and smarter expert-cache policies (at a few percent cache even an oracle policy saves only ~40 % of the traffic).
Caveats, please read
- One machine, and mostly one run per number. At 256K the decode is sometimes ~2x slower in a fresh process (about 1 start in 6) and I have not found out why. The table shows the fast state.
- The llama.cpp column is a single configuration (
llama-batched-bench, experts on the CPU, flash attention on). Its own expert cache could do better. At 1M it builds the relative attention bias as a dense tensor (~51 GB per layer), so it simply does not fit. - The 1M test is synthetic exact-match retrieval, not a general long-context quality benchmark.
- The newest attention kernel is checked up to 256K; the 1M run used the previous one.
- HIP only. Not built for CUDA or SYCL.
- Upstream Strata itself was not measured on this machine.
Links
- Measurements, scripts and notes: https://github.com/Canahmetozguven/inkling-rocm
- Engine changes (merged with current upstream): https://github.com/Canahmetozguven/Strata/tree/port-upstream-feat-inkling2
- Upstream issue asking how to send it: https://github.com/Niko1221/Strata/issues/6685
r/ROCm • u/CivilDatabase7508 • 5d ago
gfx906 (Radeon VII / MI50): a llama.cpp matvec patch (+10% on Gemma 4 26B) and flash decoding for long contexts
I run a Radeon VII next to an RX 9060 XT at home and wanted Inkling 2 Mini to be fast on it. That turned into two HIP kernels for single-token decode on gfx906, cleaned up here: https://github.com/HerRei/gfx906-decode-kernels (MIT)
**What's in it**
- A matvec patch for current upstream llama.cpp (one file, 162 lines) for Q4_0, Q4_1 and IQ4_NL. On my Radeon VII each product takes 14 to 18% less time (median over 49 shapes). Whole models: Gemma 4 26B-A4B QAT Q4_0 goes from 91.9 to 101.5 tok/s, Qwen 3.8 27B Q4_0 from 30.1 to 31.1. Prompt processing and perplexity don't change. Q8_0 and K-quants are not covered.
- Flash decoding for a q8_0 cache with 3 query heads per KV head (Inkling 2's shape): at 64k keys one layer takes 453 instead of 787 us.
- The setup that runs Inkling 2 Mini at about 48 tok/s on the VII + 9060 XT, including a workaround for Fedora's rocBLAS "no kernel image is available" error with two different AMD GPUs.
**How it was made**
The code was written with Claude Code. What I care about is that it was checked: test-backend-ops against the CPU reference (683 matmul and 341 fused cases for the patch), perplexity with one-token batches (6.031 vs 6.034), and every number measured on the card. The failures are in the write-up too: the first version made Qwen 5% slower, and 64-thread workgroups hit a ~57 us floor at about 2048 workgroups, which 128-thread workgroups don't.
Similar ideas already exist in iacopPBK's llama.cpp-gfx906, exabit's mx-llama.cpp and Martin1701's MI50 fork; the README says what overlaps.
Only tested on a Radeon VII with Fedora 44 and ROCm 7.1. If you have an MI50 or MI60, `GGML_CUDA_GCN_MMV=0` vs `1` with llama-bench is a one-line comparison, and I'd like to see the numbers.
r/ROCm • u/BevinMaster • 5d ago
Inkling-2-Mini on RDNA2 (I ran inkling on X at Y T/s)
galleryr/ROCm • u/PhysicsDisastrous462 • 5d ago
Hierarchos-Native v0.2.6 is finally out! C1 WMMA performance update
so, i've got another release out! v0.2.6 is now published, and this one ended up being a pretty big performance improvement over v0.2.5.
for a bit of context, v0.2.5 introduced the P3 update to the Full FP16 WMMA path. that improved the final accumulator merge by summing all eight partials in FP32 before rounding once to FP16. i wanted to keep that work intact and see if i could get more performance out of the kernel without changing the actual math.
that's where C1 came in.
the main change is in how operand data gets loaded and staged into shared memory. previously, each thread was doing four global loads and shared-memory stores in sequence, with each store following its corresponding load. C1 changes that ordering: it issues the four 32-bit global loads first, then does the shared-memory stores.
it's a fairly small change when you look at the code, but it gives the GPU more opportunity to overlap the memory operations instead of waiting on each load/store pair. the arithmetic and accumulation order haven't changed.
and importantly, P3 hasn't been removed. C1 is used when the workload meets the required geometry checks, while P3 is still there as the fallback for everything that doesn't qualify. i didn't want a performance optimization to accidentally turn into a regression on shapes it wasn't designed for.
the performance results were honestly a lot better than i expected:
these are measured against the v0.2.5 P3 kernel, using GPU timestamps and 24 paired measurement blocks per workload.
2048×768×2048— 1.7074× faster512×2048×768— 1.3286× faster512×768×768— 2.0920× faster128×8192×768— 1.3782× faster
that's roughly a 70.7%, 32.9%, 109.2%, and 37.8% improvement respectively. all four workloads passed independently, and even the lower bounds of their corrected 95% confidence intervals stayed above 1.31×.
i also wanted to make absolutely sure that the performance wasn't coming at the expense of numerical consistency.
across eight seeds and five configurations, the new production path produced 120/120 bit-identical outputs compared with the preserved v0.2.5 results. the production tile16 numerical gate also passed 37/37 on every seed, with the maximum absolute error staying at 0.03125, exactly within the existing hard limit.
so, at least for the workloads i've qualified, this is a pretty nice situation: substantially faster, without changing the outputs.
there's a bit more going on with the dispatch selection too.
C1 isn't just enabled for anything that happens to be large enough. the host checks full tile coverage, even packed-pair strides, the actual operand buffer capacities, and the relevant 32-bit index bounds before selecting it. if a shape doesn't meet those requirements, it uses P3 instead.
i tested this with the packaged binaries as well. a rows=64 workload selected C1 and produced 8 cooperative C1 dispatches. a rows=80 workload, despite being above the existing profitability floor at around 20.97 million MACs, didn't meet the tile coverage requirements and correctly fell back to P3 for 4 dispatches. with WMMA disabled, there were zero cooperative dispatches.
the packaged logits checks also completed successfully. the C1 route had a maximum absolute difference of 0.00079345 and an RMS difference of 0.00012127; the P3 fallback had the same maximum absolute difference, with an RMS difference of 0.00012087.
the portable Windows package is included again.
it's a Windows x64 portable package with seven executables, built with a statically linked MSVC runtime. you shouldn't need to install Rust, Cargo, Python, PyTorch, Visual Studio, or the MSVC redistributable just to run it.
you will still need a compatible Vulkan-capable GPU driver and the Vulkan runtime loader, and model weights aren't included.
WMMA is still opt-in globally, so the default remains off. to use this path, you need to explicitly select --wmma-mode full-fp16. C1 is now the preferred implementation inside Full FP16 when the workload qualifies, with P3 handling the fallback cases. the Mixed precision path is separate and hasn't been replaced.
there are still some limitations worth mentioning. i've only qualified this on my AMD Radeon Graphics adapter, PCI ID 1002:15bf (RDNA3 / Phoenix), running Windows 11 with driver 32.0.32015.14001. i haven't tested a second GPU, non-AMD hardware, or independent clean-machine acceptance yet. the binaries are also still unsigned.
there's a small reporting issue too: precision-info still reports full_fp16_qualified=false on this newer driver because its driver allowlist hasn't caught up with the qualification profile. the actual v0.2.6 qualification results are documented separately. i also haven't exercised the native V4.1 trainer and hierarchos-infer end-to-end yet.
anyway, i'm really happy with how this release turned out. i went into this wanting to see if there was still meaningful performance left in the Full FP16 path without messing with the numerical behavior that took so long to get right. seeing all four workloads improve this much, while keeping the outputs bit-identical, was a pretty great result.
a lot of time went into testing this one, and i'm glad i can finally get it out there instead of continuing to sit on it!
Release: https://github.com/necat101/Hierarchos-Native/releases/tag/v0.2.6
Source: https://github.com/necat101/Hierarchos-Native
thank you to everyone who's been following the project, testing things, reporting issues, or just keeping an eye on development. it genuinely means a lot!!
also, sorry for the AI posts lately. i've been trying to save as much time as possible to work on the project itself, especially with live events getting tough. i really do appreciate everyone who's stuck around while i've been working on this. thank you so much everyone!! :3
r/ROCm • u/Middle_Yesterday_448 • 5d ago
Trellis 2
Does anyone manage to get trellis 2 working on rx9070xt on comfyui ? I try many things the only thing that work for me as a mesh only was huanyuan 3d on comfyui and cant get textures or colors