Repository navigation
amd-test-4: AMD speed autotune test build: split GEMV, drafting by measurement, RDNA4 hipBLASLt fix (Windows + Linux, RDNA3 + RDNA4)
Pre-releaseSuperseded by amd-test-5: the bandwidth meter and new decode kernels.
amd-test-4: the speed autotune build, round 2 (Windows and Linux). It replaces amd-test-3b. The first speed reports came in (thank you, Lazm (issue #11), Abdelrahman Waref (awaref.me) and Mustafa YILDIRIM (the first RDNA4 test, Radeon AI PRO R9700)), and this build fixes what they found:
- Windows: every speed switch after the first one failed with "Cannot validate argument on parameter 'ArgumentList'". A variable name in selftest.ps1 hid the card name, so the scorer got an empty
--device. Fixed; the plumbing tests now run more than 10 switches in a row through the real argument path. - RDNA4: hipBLASLt could not read its kernel files ("Cannot read ... TensileLibrary_lazy_gfx1201.dat"). The files were in the bundle, but one folder too deep. Now all hipBLASLt files are in
bin/hipblaslt/library/, a gate checks the file list for each card type before we publish, and the launcher prints ablasline at start: "kernel files for gfx1201: hipBLASLt yes, rocBLAS yes", or a WARNING. Library lines in the server log are now a separatepackagingline in the report, and they do not stop the speed join. - Decode: a new GEMV mode
split. On an RX 7900 XTX,rdnawas fast for one row (decode 36.6 tok/s) but slow for the verify rows of MTP drafting (56 tok/s), andrdna8was the opposite (29.9 / 75).splituses the faster kernel for each. - MTP drafting on or off by measurement. With the chosen settings, step 7 measures decode at 4k with and without MTP. If no drafting is more than 3 % faster,
autotune.txtgetsKINTSUGI_DRAFT=off. The result line says which. - Prompt read: a second round. When the int8 read is correct on your card, step 7 tests the fp16-output GEMM and the other read switches again ON TOP of it (also the chunked GDN kernel on the faster GEMM).
- HIP graphs: a new switch
graphs-offmeasures if HIP graphs help on your card (the Windows profile showed a large host time between kernels). - The RTX 4070 row of the table is rounded.
Not the stable release: the Latest release stays the one for NVIDIA cards.
What it tests
The self-test runs the checks of the earlier builds (card, KL, server, identity, needles, decode), then 7 speed:
- It screens each speed switch on your card for speed AND correctness (two small KL sets against our CUDA engine).
A fast switch with a wrong result is never chosen. - It joins the switches that are correct and 5 % or more faster, checks the join again (KL, MTP drafting on / off),
and measures it: prompt read at 8k and 32k, decode at 4k and 32k, with and without MTP drafting. - It prints one table (the RTX 4070, the defaults on your card, the chosen settings) and an op profile of your card,
and it writes the chosen settings toautotune.txt. The launcher uses that file from then on (delete it for the
defaults).
Note on split: the verify rows of drafting and a row decoded alone then use different kernels, so the answers with
MTP on and off can differ in a few tokens (both paths pass the KL check). The step-7 line shows "MTP on/off a/b the
same"; when a is less than b, the line is INFO, not FAIL.
Which file
| File | Cards |
|---|---|
Kintsugi-27B-amd-test-4-rdna3-win-x64.zip |
Windows: RX 7900 XTX / XT / GRE, RX 7800 XT, Radeon PRO W7900 / W7800 / W7700 (gfx1100, gfx1101) |
Kintsugi-27B-amd-test-4-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-4-rdna3-linux-x86_64.tar.gz |
Linux: the RDNA3 cards above |
Kintsugi-27B-amd-test-4-rdna4-linux-x86_64.tar.gz |
Linux: the RDNA4 cards above |
Kintsugi-27B-amd-test-4-engine-src-4c24ba9c3.tar.gz |
the engine source of this build (commit 4c24ba9c3; 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
-
Unpack the file for your card. Put
Kintsugi-27B-12G.gguffrom https://huggingface.co/CaryPalmer/Kintsugi-27B in
themodelsfolder (SHA-2560510bae82445dc53dbc7d0d842d8b7e146b8eafce0837e39b157d411e48c8a74). If you have
a folder of an earlier AMD test build, you can move the model file from there. Do not copyautotune.txtfrom an
earlier build: step 7 writes a new one. -
Run the self-test:
- Windows: double-click
selftest.cmd - Linux:
./selftest.sh
It takes about 30 minutes on an RX 7900 XTX (an estimate; the report shows the real time). It changes nothing on
your system (it writesautotune.txtandlogs\in its own folder). - Windows: double-click
-
Paste the WHOLE report (from
==== Kintsugi-27B AMD self-test reportto==== end of report ====, with the
7 table,7 screen,7 joinand7 profilelines; Windows puts it on the clipboard, both write
logs/selftest-report.txt) into an issue with theamd-testlabel:
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 switches are checked by our builds and unit tests, not on a card. The self-test is the
check; a switch that crashes or gives a wrong result on your card is left out and shown in the table. - The whole context is in VRAM on AMD (no tiered K/V cache): hence the 16 GB minimum.
- With the optional DFlash2 drafter in
models, the AMD launcher does not fall back to MTP by itself when the start
fails: then setKINTSUGI_DRAFT=mtp.
Built from engine commit 4c24ba9c3 (branch research/amd-speed) with ROCm 7.14.1 and clang 23 (Windows) / GCC 13
(Linux). Credits: CREDITS.md in each file. Licences and notices: LICENSE, NOTICE, licenses/.
SHA-256:
Kintsugi-27B-amd-test-4-rdna3-win-x64.zipd83c4db9775e3b591047133518ccd060de5730d9cea437d21893c095a0129fe9Kintsugi-27B-amd-test-4-rdna4-win-x64.zip009722bfe3bff559c5573215ac57334eac0f71f0e5212a161f6d953bf5baf33dKintsugi-27B-amd-test-4-rdna3-linux-x86_64.tar.gz7c11c7af8e015fa3b02d1adf015cc92d82eccac1eb026113c72c1a833c906d77Kintsugi-27B-amd-test-4-rdna4-linux-x86_64.tar.gze62984e032f1911de7ab8d341f716448bc976e6eac5f4310f38d5059fa691895Kintsugi-27B-amd-test-4-engine-src-4c24ba9c3.tar.gze6ff3202a787b928f46812ff88a010914e0a0b9663cb14b4be4ed01182bcf5de