Skip to content

amd-test-5: AMD bandwidth meter + tiles decode kernels test build (Windows + Linux, RDNA3 + RDNA4)

Pre-release
Pre-release

Choose a tag to compare

@professorpalmer professorpalmer released this 24 Nov 04:30
· 15 commits to main since this release
3555900

Superseded by amd-test-5b: the fix of the fused int8 read faults, deep needles, the decode repeat.

amd-test-5: the bandwidth meter and new decode kernels (Windows and Linux). It replaces amd-test-4. Thank you, Lazm (issue #11), Abdelrahman Waref (awaref.me) and Mustafa YILDIRIM: with your amd-test-4 numbers (RX 7900 XTX: read 32k 796 tok/s, decode 4k 46.9 tok/s with MTP, 35.8 without) we know where AMD stands. The RX 7900 XTX has about twice the memory bandwidth of the RTX 4070, but it decodes at about the same speed. This build measures why, on your card, and tests new kernels.

  • New: step 8, the bandwidth meter. The self-test first measures the GB/s that plain read and copy kernels reach on your card. Then, for each decode kernel variant of the engine, it reads all 7.5 GB of the model's weight codes (1 row = decode, 4 rows = MTP verify) and prints the GB/s as a percentage of that line, the error against the CPU and whether the verify rows give the same bits as decode. For comparison, the RTX 4070 row: our CUDA kernel reaches 289 GB/s = 53 % of that card's 543 GB/s read line, and an upstream kernel (the Q8_0 output head) 99 %. It also measures that upstream kernel on your card and the time per kernel launch, and it splits the prompt read into decode time and GEMM time. To run only this part (about 6 minutes): KINTSUGI_SELFTEST_ONLY=meter.
  • New decode kernels (switch GGML_ESCHA_HIP_GEMV=tiles). exllamav3's "tiles" core now does the verify rows of MTP drafting too (amd-test-4 used a slower core there), so verify rows and decode rows give the same bits again. Variants: fewer instructions for the code unpack (GGML_ESCHA_HIP_DEC=1 default, =2 fewest), more loads in flight (GGML_ESCHA_HIP_U), two tiles per wave (GGML_ESCHA_HIP_T=2), warps per tile (GGML_ESCHA_HIP_WARPS), and one or two kernels per projection instead of three (GGML_ESCHA_HIP_FUSE_GEMV=out / both). A table-lookup unpack (GGML_ESCHA_HIP_GEMV=lut) is in the meter as a comparison.
  • New prompt read variant (GGML_ESCHA_HIP_READ=fused): the int8 read in one kernel that decodes the codes straight into the matrix tiles, without the int8 weight buffer. It gives the same bits as the amd-test-4 int8 read.
  • Step 7 screens the new kernels as before (speed AND correctness, a wrong one is never chosen), also tests hipBLASLt on top of the int8 read, and prints the decode profile of the chosen settings. The launcher reads the new switches from autotune.txt.

Not the stable release: the Latest release stays the one for NVIDIA cards.

Which file

File Cards
Kintsugi-27B-amd-test-5-rdna3-win-x64.zip Windows: RX 7900 XTX / XT / GRE, RX 7800 XT, Radeon PRO W7900 / W7800 / W7700 (gfx1100, gfx1101)
Kintsugi-27B-amd-test-5-rdna4-win-x64.zip Windows: RX 9070 XT, RX 9070, RX 9060 XT 16 GB, Radeon AI PRO R9700 (gfx1201, gfx1200)
Kintsugi-27B-amd-test-5-rdna3-linux-x86_64.tar.gz Linux: the RDNA3 cards above
Kintsugi-27B-amd-test-5-rdna4-linux-x86_64.tar.gz Linux: the RDNA4 cards above
Kintsugi-27B-amd-test-5-engine-src-c26c2534c.tar.gz the engine source of this build (commit c26c2534c; NOTICE names it)

You need: a Radeon card with 16 GB of VRAM or more; Windows 10 / 11 with a recent AMD Software: Adrenalin Edition, or
native Linux with glibc 2.38+ (Ubuntu 24.04 or newer) and the amdgpu driver. About 25 GB of free disk space.

One command

  1. Unpack the file for your card. Put Kintsugi-27B-12G.gguf from https://huggingface.co/CaryPalmer/Kintsugi-27B in
    the models folder (SHA-256 0510bae82445dc53dbc7d0d842d8b7e146b8eafce0837e39b157d411e48c8a74). You can move the
    model file from the folder of an earlier AMD test build. Do not copy autotune.txt from an earlier build.

  2. Run the self-test:

    • Windows: double-click selftest.cmd
    • Linux: ./selftest.sh

    It takes about 35 minutes on an RX 7900 XTX (an estimate; the report shows the real time). Close other programs
    that use the GPU: step 8 puts 7.5 GB of the model in VRAM. It changes nothing on your system (it writes
    autotune.txt and logs/ in its own folder).

  3. Paste the WHOLE report (from ==== Kintsugi-27B AMD self-test report to ==== end of report ====, with the
    7 ... and 8 ... lines; Windows puts it on the clipboard, both write logs/selftest-report.txt) into an issue
    with the amd-test label: https://github.com/professorpalmer/Kintsugi-27B/issues/new?template=amd-test.md, or send
    it to the project owner. The block has no computer name, user name or folder path.

To use it after the test: start-server.ps1 -Wait (Windows) or ./start-server.sh --wait (Linux), then
http://127.0.0.1:8080/. It uses the settings of autotune.txt.

Known limits

  • We have no AMD card: the new kernels are checked by our builds, the compiler's code and unit tests, not on a card.
    The self-test is the check; a variant that crashes or gives a wrong result on your card is shown as such and never
    chosen.
  • The whole context is in VRAM on AMD (no tiered K/V cache): hence the 16 GB minimum.

Built from engine commit c26c2534c (branch research/amd-speed) with ROCm 7.14.1 and clang 23 (Windows) / GCC 13
(Linux). Credits: CREDITS.md in each file (the new decode kernels use exllamav3's tiles core and fused epilogue, MIT,
turboderp). Licences and notices: LICENSE, NOTICE, licenses/.

SHA-256:

  • Kintsugi-27B-amd-test-5-rdna3-win-x64.zip 52a54d4bdcc9117a1e12f776491962ebe2b06603b56cd1e356641e4bfd0cfc22
  • Kintsugi-27B-amd-test-5-rdna4-win-x64.zip 099a716986a54fb1a8947df8603988808f7c6b42878c22072ca881ca687154cb
  • Kintsugi-27B-amd-test-5-rdna3-linux-x86_64.tar.gz 8fca164993d14f434ab012fd4a21df92ad2212a92b5a3656472ffae17885456c
  • Kintsugi-27B-amd-test-5-rdna4-linux-x86_64.tar.gz f44afcc7cb3454a219e984cbcf83ffb49780b11054a34e3a6aa8b96c1437057f
  • Kintsugi-27B-amd-test-5-engine-src-c26c2534c.tar.gz a4fa41c05a04ef7953d922ee7f4e569ba0d93866afdbc76e7a44579dd9be32f6