Skip to content

amd-test-5c: AMD deep-step VRAM fix, warm-up before the speed table, stricter identity check (Windows + Linux, RDNA3 + RDNA4)

Pre-release
Pre-release

Choose a tag to compare

@professorpalmer professorpalmer released this 24 Nov 16:16
· 7 commits to main since this release

Superseded by amd-rc1: https://github.com/professorpalmer/Kintsugi-27B/releases/tag/amd-rc1

amd-test-5c: the fix of the step-9 VRAM fault, a warm-up before the speed table, and a stricter identity check (Windows and Linux). It replaces amd-test-5b. Thank you, Lazm (issue #11): your amd-test-5b report with the kernel log found the VRAM fault, and your note on the repeat legs found the warm-up problem.

  • Fixed: step 9 (deep needles) took the desktop's VRAM. Two causes. (1) On Linux the launcher took the free VRAM figure of the ROCm runtime, which does not count what the desktop and other graphics programs hold on the card. (2) In a long prompt read on AMD, the engine's memory pool kept every old copy of a buffer that grows with the prompt (the attention mask copy), so by about 155,000 tokens it held about 5 GB more than it needed. Now the pool gives the old copies back, the Linux launcher takes the smaller of the ROCm figure and the kernel driver's count of all programs, the plan counts the mask copy, and when the card drives a display the launcher keeps 512 MiB more free for the desktop (display attached: reserving 512 MiB for the desktop; KINTSUGI_DISPLAY_MIB changes it, 0 = off). Step 9 now also prints the VRAM that all programs use on the card during the read.
  • New: a warm-up before the speed table. Your repeat legs showed the same 4k decode at 63 and then 95 tok/s, with the same draft acceptance: the card's clocks rise under load. Each speed table row now starts with a warm-up leg and measures 4k decode twice, first and last; a 7 order line shows both. The repeat legs are now warm-up, 4k, 32k, 4k, 32k, and on Linux the clock, the memory clock and the power are sampled only while tokens come out (min / mean / max), not during the prompt read or between legs.
  • Changed: step 7 never chooses settings with an MTP on / off difference. amd-test-5b chose settings with 11 of 12 prompts the same and wrote them to autotune.txt. Now such a set is not used. Step 7 prints 7 ident lines that show which prompt differs, from which token, how close the two best tokens were there, whether the same servers give the same result a second time, whether fresh servers give it, and which switch alone gives it. Then it checks the set without that switch. Step 4 also prints a 4 differ line for each prompt that differs.
  • Everything else is as in amd-test-5b.

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

Which file

File Cards
Kintsugi-27B-amd-test-5c-rdna3-win-x64.zip Windows: RX 7900 XTX / XT / GRE, RX 7800 XT, Radeon PRO W7900 / W7800 / W7700 (gfx1100, gfx1101)
Kintsugi-27B-amd-test-5c-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-5c-rdna3-linux-x86_64.tar.gz Linux: the RDNA3 cards above
Kintsugi-27B-amd-test-5c-rdna4-linux-x86_64.tar.gz Linux: the RDNA4 cards above
Kintsugi-27B-amd-test-5c-engine-src-2c818efd7.tar.gz the engine source of this build (commit 2c818efd7; 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 45-60 minutes on an RX 7900 XTX (an estimate; the report shows the real time). KINTSUGI_SELFTEST_DEEP=0 skips step 9. Close other programs
    that use the GPU first: step 8 puts 7.5 GB of the model in VRAM, and step 9 fills the window.

  3. Paste the WHOLE report (from ==== Kintsugi-27B AMD self-test report to ==== end of report ====, with the
    4 ..., 7 ... and 8 ... lines) 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

  • Checked on cards (11-24): RX 7900 XTX, Linux bundle, rented card (a Linux container on a Windows host, WSL2):
    7 PASS, 0 FAIL, step 9 8/8 at 245,000 tokens. RX 7900 XTX, Linux desktop (a tester): the desktop-VRAM fix holds
    (no out-of-memory, the desktop stays up), but step 9 then stops at about 203,000 tokens: the server waits with the
    GPU idle and does not react to SIGTERM. This is a known bug of this build; the next build fixes it. RX 9070 XT
    (rented): the run did not finish in 2 hours, no result. RX 9060 XT: not tested (the rented nodes were too slow to
    download the model). Also passed on amd-test-5b: Radeon AI PRO R9700, native Linux (a tester), 7 PASS.
  • Windows: fix included, not yet confirmed on a card.
  • The whole context is in VRAM on AMD (no tiered K/V cache): hence the 16 GB minimum. With a display on the card,
    the window on a 16 GB card is now about 131,000 tokens (it was about 172,000 before the desktop reserve).
  • The MTP numbers of step 7 in this build read too high. The lookup drafter remembers answers for the server's
    life, and the new warm-up leg asks the same question as the 4k leg after it, so the MTP-on cells of the table, the
    7 order and 7 repeat lines, and the choice between MTP on and off see answers the drafter knows. The MTP-off
    cells and the prompt reads are not affected. The RTX 4070 reference row: one fresh server per arm; its 4k MTP cell is
    the first time the question is asked (clean); its 32k MTP cell asks the same question again after another text on
    the same server (not clean by this rule); its MTP-off cells have no drafter (clean). The next build measures each MTP
    cell on a fresh server or with a question that no earlier leg asked.
  • Windows: the repeat legs show the speed and the draft acceptance, but no GPU clock (the bundle has no clock source
    on Windows).

Help test your card

If you have an RDNA3 or RDNA4 Radeon card with 16 GB or more, one run of the self-test (selftest.cmd on Windows,
./selftest.sh on Linux) moves your card from "untested" to "tested". Paste the whole report block in an issue with
the amd-test label: https://github.com/professorpalmer/Kintsugi-27B/issues/new?template=amd-test.md

Built from engine commit 2c818efd7 (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-5c-rdna3-win-x64.zip f9641e3422e03434e302ad967a92a00e4a44a162cfd593ed5b351a9d9f4d8d83
  • Kintsugi-27B-amd-test-5c-rdna4-win-x64.zip 7f6cec3c9316be4ddf57cbac55758bfac8420b896d95c9f628eeddf32a7cf962
  • Kintsugi-27B-amd-test-5c-rdna3-linux-x86_64.tar.gz f33a87c8878c0ce9b07e9db05af54c5cce2fa6e8f589d5e858bd68f723803670
  • Kintsugi-27B-amd-test-5c-rdna4-linux-x86_64.tar.gz ca7e74002f7ef05ac08a7a32e922e8fcd8dfa8657e84ab91f0ad63cbc9801f4b
  • Kintsugi-27B-amd-test-5c-engine-src-2c818efd7.tar.gz a31c17947cf1fecc43d166360fac11b4fef0ac544dae2f2d1d79ba3f7889bfce