Skip to content

amd-rc1: the first AMD release candidate: MTP on / off exact again, one mask block for long reads, baked settings (Windows + Linux, RDNA3 + RDNA4)

Pre-release
Pre-release

Choose a tag to compare

@professorpalmer professorpalmer released this 25 Nov 06:50
· 1 commit to main since this release

amd-rc1: the first AMD release candidate (Windows and Linux). It replaces the amd-test builds. Thank you to the testers: Lazm (RX 7900 XTX, Linux and Windows, issue #11) and Mustafa YILDIRIM (Radeon AI PRO R9700). Your reports found every fault that this build fixes.

  • Fixed: MTP on and off give the same tokens again, at the full window. In amd-test-5c, one prompt of 12 gave another token with MTP on than with MTP off. Three causes, all fixed: (1) the AMD launchers did not turn on the engine's batch-invariant mode (a token gets the same bits alone and inside a batch of draft rows), as the NVIDIA launcher does; (2) on AMD cards with matrix cores the engine took another kernel for the small F16 projections of the linear-attention layers when it checked 4 draft rows than when it decoded 1 row; (3) on AMD the attention kernel also changed between 1-2 rows and the 4-row draft check. A row trace of every tensor, MTP on against MTP off, found (2) and (3); with the fixes no row differs. The self-test also checks every row of 2 to 33 rows against the row alone for each decode kernel (step 8), and step 7 uses a decode kernel with drafting only when all its rows match.
  • Fixed: a long prompt read no longer grows its memory pool. In amd-test-5c a 245,000-token read stopped at about 203,000 tokens on a desktop RX 7900 XTX. The engine asked the pool for a larger block of the attention mask copy again and again (a new allocation and a device sync at every 5 % of growth). Now the copy takes one block for the full window at the first read. And the self-test stops a server that makes no progress for 5 minutes and reports hang, so it never waits for an hour. We could not make the old build hang on a rented RX 7900 XTX, so this is a guard, not a proven cure: please tell us if a long read still stops.
  • New: baked settings. Without autotune.txt the launcher uses the prompt-read settings that passed on each family: the fused int8 prompt read, with the chunked GDN kernel on RDNA3 and fused SwiGLU on RDNA4. The tune line of the launcher shows them; KINTSUGI_BAKED=0 gives the plain engine.
  • Changed: clean speed cells. The lookup drafter remembers answers, so each decode measurement now asks its own question. The RTX 4070 reference row has clean 32k cells (MTP 55.8 tok/s, off 30.9).
  • The window per card. RX 7900 XTX (24 GB): 262,144 tokens. RX 9070 XT and RX 7800 XT (16 GB): about 168,000 tokens with nothing else on the card; a display or other programs make it smaller. This is VRAM, not a setting: the model takes about 11.3 GB and each token of the window about 23 KB, so 262,144 tokens would need about 18 GB free. The NVIDIA bundle reaches 262,144 tokens on 12 GB cards because it keeps the far part of the window in system RAM; the same system-RAM tier for AMD is the next engine task.
  • Not yet with drafting: the tiles decode kernels. With the fixes above they also gave the same tokens with MTP on and off in our tests, but this candidate does not use them while drafting is on (step 7 leaves them out); a later build may.

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

Checked on cards (rented, Linux bundle under WSL2, engine 2d577bb55, 11-25)

Card Window MTP on / off Deep needles Decode (MTP / off)
RX 7900 XTX (24 GB, K/V q8_0) 262,144 12/12 8/8 at 245,000 32.1 / 23.3 tok/s
RX 9070 XT (16 GB, K/V q4_0), two nodes 106,496 and 147,456 (14.5 GB free) 12/12 and 12/12 8/8 at 90,496 and 131,456 30.7 / 21.1 tok/s
RX 7800 XT (16 GB, K/V q4_0) 167,936 12/12 8/8 at 151,936 23.3 / 16.7 tok/s

KL against our CUDA engine within 0.04 % on every card; the baked settings pass the KL check of step 2. A row trace of every tensor (MTP on against MTP off) shows no differing row on an RX 7900 XTX and an RX 9070 XT.

Known limits

  • Not tested on a card: the Windows bundles (we have no AMD card; the Windows scripts ran with a fake engine only), native Linux (the rented cards run under WSL2), step 7 (the speed screen), and RX 7900 XT / GRE, RX 9070, RX 9060 XT, Radeon AI PRO R9700, W7900 and APUs.
  • The long-read stop of amd-test-5c: the fix is a guard, not a proven cure (see above).
  • The window on 16 GB cards is what the free VRAM holds (see above); the system-RAM tier for AMD is the next engine task.
  • The tiles decode kernels do not join with drafting on in this candidate.

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 2d577bb55 (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-rc1-rdna3-win-x64.zip 850afc38b9fad827eac851f82977e6fb74cdb5c71cb68d68da66eb701fcf355e
  • Kintsugi-27B-amd-rc1-rdna4-win-x64.zip fe5f3d2644ea9d565d2f9ba7674ca900bc4c5e9804755fbb4e1a2d281ff1fe70
  • Kintsugi-27B-amd-rc1-rdna3-linux-x86_64.tar.gz c32711d98d54d495bf248bdf73dfa86df1ab41d7ca2f25e735fdcd6a95b96ed2
  • Kintsugi-27B-amd-rc1-rdna4-linux-x86_64.tar.gz a56520dc8fe14a020c70a3b8fda7a87cb119c078ab7c8eba1e15dbda5c64c49c
  • Kintsugi-27B-amd-rc1-engine-src-2d577bb55.tar.gz d61ae0f1cbdc8961e9fb485acde6af4f63372ddc08c018cf2f9885aeaf424f88