Repository navigation
Releases
Kintsugi-27B v1.1.7: DFlash2 starts when the card or the system RAM is short, and says why when it can not
Kintsugi-27B v1.1.7: DFlash2 starts when the card or the system RAM is short, and says why when it can not.
The model file does not change: Kintsugi-27B-12G.gguf from https://huggingface.co/CaryPalmer/Kintsugi-27B (sha256 0510bae82445dc53dbc7d0d842d8b7e146b8eafce0837e39b157d411e48c8a74). Download only the new zip or tarball.
From the RTX 5070 report of xgxx666 (@xgxx666) in #17. The report had exact commands, a context sweep, and later the system memory figures and an A/B with the launcher's settings. With these we could reproduce both faults and check each fix.
What is new
- DFlash2 no longer stops at the drafter load with
invalid vector subscript. The engine puts the drafter's layers on the cards in proportion to each card's free memory. The drafter loads after the main model. When the card then reported 0 bytes free (the desktop or another program holds part of it), the division by 0 gave an index past the end of the card list. The layers are now split in equal parts in that case. The allocation then works, or it reports a plain out-of-memory error. - Allocation errors name system memory, with the numbers.
- When the K/V cells in system RAM can not be allocated (they are pinned RAM, which can not go to the page file), the error says so. It gives the size, the system commit in use against the limit, and the free RAM.
- On Windows, a failed
cudaMallocalso prints the free VRAM and the system commit. There, GPU memory takes system commit (RAM + page file) too, so that error can come while the card still has room. - After a failed load, the server prints the system memory figures.
- A failed host allocation in
ggml_initis now a message, not an assert. - The drafter's context error now names the drafter, not "MTP context".
- Windows launcher: a system-memory check before the start.
- It counts the VRAM that other programs hold, from the Windows GPU memory counters. This includes the part that Windows moved out of VRAM for now, which nvidia-smi does not show. The plan counts it when the display is on the card; with no display on the card, the launcher prints a note.
- It compares the pinned RAM of the planned window (the K/V cells in system RAM, and 1,288 MiB for the two-stage head) with the free RAM, and its commit with the free commit.
- When the window does not fit, it starts with the largest window that does (a multiple of 32,768) and prints a
memoryline with the numbers. WithKINTSUGI_DRAFT=autoit takes MTP + lookup when MTP keeps a larger window. - When DFlash2 leaves fewer than 32,768 K/V cells in VRAM, a note says how many MTP + lookup would keep.
- New settings:
KINTSUGI_MEMCHECK=0keeps the full window.KINTSUGI_CACHE_RAMsets the server's prompt cache in RAM (default 4096 MiB).KINTSUGI_GPU_COUNTERS=0skips the counters. - If you set
KINTSUGI_CTXorKINTSUGI_CELLSyourself, the launcher keeps your value and only warns.
- Linux: the new engine (the same fixes); the launcher is the same as v1.1.6.
- Engine:
7d9bb6296= v1.1.6's with these fixes. The GPU library changes only in its allocation error paths (two source files). On Windowsggml-cpu.dllis the same bytes as in v1.1.6. - Mac: no change; use the
mac/kit of v1.1.2.
What we checked
The pass lines were written before the runs.
The faults of #17, reproduced on an RTX 4070 (Windows, the same code path as the RTX 5070):
| Case | v1.1.6 | v1.1.7 |
|---|---|---|
| 1.5 GB of VRAM held by another program (moved out of VRAM by Windows), the launcher, DFlash2, 262,144 | invalid vector subscript, exit 1 (also at 131,072) |
starts, answers (89,600 cells in VRAM; a note names the 1,715 MiB that the other program holds) |
| The same with the report's own argument list, 262,144 | invalid vector subscript, exit 1 |
starts, answers |
| A PC with 1.1 GB of RAM free (emulated: a test limit on pinned RAM, and the launcher's free-RAM figure), DFlash2 | the launcher plans 262,144; the load stops at the pinned-RAM allocation | the launcher prints a memory line and plans 196,608 tokens; starts, answers. With KINTSUGI_DRAFT=auto: MTP + lookup at 229,376 tokens |
- The same output as v1.1.6 where nothing should change (RTX 4070, Windows): 50 of 50 reference prompts token-identical (MTP and DFlash2 servers); the chat set 52 of 52; tool calls t1-t4;
tool_choice"required" 10 of 10 and "none" 20 of 20, on the plain server and through the layer, 0 raw tool text and 0 empty answers; recall at 117k and at 245k tokens: 24 of 24 needles and 20 of 20 copies each; the layer's saved-chat gate (a 245k-token chat restored on a fresh server, the same answer); final-zip smoke. Speed against v1.1.6, a fresh server for each cell: DFlash2 92.7 / 88.8 tok/s at 4k / 64k (v1.1.6 92.65 / 88.9), MTP 78.0 / 67.5 (77.6 / 66.55). - Coding harnesses: Claude Code, Codex, pi and opencode, each through the layer and on the plain server, 6 tasks each: 5 of 6 in 7 runs and 6 of 6 in one, 0 malformed tool calls (v1.1.6: 5 of 6 each).
- Linux (RTX 3060 12 GB, a rented machine): the engine rebuilt on the machine (2 GPU objects rebuilt),
test-chatpasses; every engine file hasRUNPATH $ORIGIN; all gates ran with the build folder moved away. 50 of 50 reference prompts token-identical to v1.1.6; the launcher's dry runs equal to v1.1.6;tool_choice"required" 10 of 10 and "none" 20 of 20 (plain server and through the layer, 0 raw tool text, 0 empty answers); themax_tokenscases; tool calls t1-t4; the web page;/v1/models; the three launcher failure cases; a saved 63k chat restored after a restart (first token 3.4 s); recall at 117k and at 245k tokens: 24 of 24 needles and 20 of 20 copies each; no process left after each stop. - Member compare against v1.1.6: the zip differs in 12 of 45 members (9 engine files, the launcher, README, NOTICE);
ggml-cpu.dll,ggml.dll,mtmd.dlland the CUDA runtime are the same bytes. The tarball differs in 8 of 60 members (6 engine files, README, NOTICE); the tarball made on the test machine and the released one have the same 60 members (name, sha256, mode). Scans: 0 private strings, 0 control bytes, 0 keys.
Files
Kintsugi-27B-v1.1.7-win-x64.zip: Windows, RTX 20 / 30 / 40 / 50 and H100.Kintsugi-27B-v1.1.7-linux-x86_64.tar.gz: Linux x86_64, the same cards.Kintsugi-27B-v1.1.7-engine-src-7d9bb6296.tar.gz: the engine source.web-ui-THIRD-PARTY.txt: the licences of the npm code in the built-in web chat page (unchanged).
Kintsugi-27B v1.1.6: max_tokens kept with thinking on, long chats restore after a restart, less disk use
Kintsugi-27B v1.1.6: max_tokens is kept with thinking on, long chats restore after a restart when the app drops the reasoning, and saved chats use less disk.
The model file does not change: Kintsugi-27B-12G.gguf from https://huggingface.co/CaryPalmer/Kintsugi-27B (sha256 0510bae82445dc53dbc7d0d842d8b7e146b8eafce0837e39b157d411e48c8a74). Download only the new zip or tarball.
These are the last three items of the RTX 3060 report by Doğukan Ürker (@DogukanUrker) in #15. For each one we measured first (the numbers are in #15) and then changed it. The disk use of saved chats is #12.
What is new
max_tokenswith thinking on. Amax_tokens(ormax_completion_tokens) of 4,096 or more is now kept. The thinking of that request ends early enough to leave room for the answer: its reasoning budget becomesmax_tokensminus 1,024. A smaller cap is still raised to 24,576, because the thinking alone can need more: in our test a cap of 400 ended 3 of 4 requests inside the thinking, with no answer. Caps of 24,576 or more, and all caps with thinking off, are as before. For short capped answers turn the thinking off (KINTSUGI_THINK=off, or"chat_template_kwargs": {"enable_thinking": false}in the request).- A long chat restores after a restart also when the app does not send the reasoning back (most OpenAI-style apps, with thinking on). A new long chat now also saves before its first request, in the background: the request does not wait for the write. Before, the only save of the first turn was the one after the answer. With the reasoning dropped, that state is not a start of the next request, so a restart before the third turn read the whole chat again (925 s for 245k tokens in the report).
- Saved chats use less disk (#12). The save after an answer is now a small addition to the first save, not a second full save. When a chat shows that the answers come back changed (for example without the reasoning), its saves after an answer that can not be restored any more are removed at once. Such a chat also no longer gets the idle "full save" that replaced its useful saves.
--backend-samplingis gone from the launchers. It was turned off for every request with thinking or tool calls, with a warning line for each, and gave no speed with thinking off.- Linux: the engine binaries search only their own folder for libraries (
RUNPATH $ORIGIN). Before, the path of our build folder was in it too. The GPU library is the same build as in v1.1.4; only this search path in its header changed. - Engine: v1.1.5's with one server change for
max_tokens(new option--reasoning-max-tokens-honor, commit8f12baacf). On Windows the GPU code (ggml-cuda.dll,ggml-cpu.dll) is the same bytes as in v1.1.4. - Mac: no change; use the
mac/kit of v1.1.2.
What we checked
The pass lines were written before the runs.
max_tokens with thinking on (RTX 4070, Windows; 4 everyday prompts and one prompt that thinks for a long time):
| Request | v1.1.5 | v1.1.6 |
|---|---|---|
max_tokens: 400 |
raised to 24,576 | the same: raised, every answer complete (8 of 8) |
max_tokens: 4096 or 8192, everyday prompts |
raised to 24,576 | kept; 16 of 16 answers complete and under the cap (436 to 1,205 tokens) |
max_tokens: 4096, the long-thinking prompt |
10,978 tokens came back (8,323 of them thinking), 122 s | 4,096 tokens: the thinking ended at 3,077 tokens, then about 1,500 characters of answer, 45 s |
The same through the layer, and on the RTX 3060 with Linux (the long-thinking prompt: 4,096 tokens, the thinking ended at 3,077).
Saved chats when the app drops the reasoning (RTX 4070, Windows; layer on, thinking on; the report's sequence: 4 turns, a restart after turn 1 and after turn 3):
| 63k-token chat, v1.1.5 | 63k, v1.1.6 | 231k-token chat, v1.1.5 | 231k, v1.1.6 | |
|---|---|---|---|---|
| Turn 1: time to the first token | 54.1 s | 54.4 s | 377.0 s | 379.4 s |
| Turn 2 right after a restart: first token | 54.3 s (reads all again) | 1.9 s (restored in 0.6 s) | 377.8 s (reads all again) | 6.3 s (restored in 4.5 s) |
| Turn 3: first token | 49.7 s (waits for a save) | 12.4 s | 185.8 s (waits for a save) | 1.6 s |
| Turn 4 after a second restart: first token | 1.7 s | 1.8 s | 8.2 s | 4.3 s |
slots after 4 turns |
4.71 GB | 1.95 GB | 13.81 GB | 4.67 GB |
In the 63k chat, turn 3 adds about 10k tokens. The first token of turn 1 does not wait for the new save (the write runs while the model answers), and a turn that comes while that write still runs does not wait for it either (245k-token chat, turn 2 three seconds after turn 1: first token after 7.1 s). The answer of turn 2 on the restored chat is the same text as on a server with no saves and no restart (temperature 0). On the RTX 3060 with Linux: the 63k chat restores after a restart in 0.45 s (first token 2.8 s).
- Speed, v1.1.5 against v1.1.6 side by side (RTX 4070, thinking off, 400 tokens on 3 prompts, a fresh server for each run): MTP at 4k 77.6 against 77.6 tokens/s, MTP at 64k 66.4 against 67.1, DFlash2 at 4k 92.2 against 92.2 (2 runs each; the largest difference is 1.1 %, inside the run-to-run noise). The v1.1.5 server logs have 5 backend-sampling warnings for each run; the v1.1.6 logs have none.
- Unit tests: the engine's
test-chat(new cases for the cap rule; they fail on the v1.1.5 code) on Windows and Linux; a test of the saved-chat logic against a fake server (8 of its 9 checks fail on the v1.1.5 layer, all pass on v1.1.6). - The same output as v1.1.5 where nothing should change: 50 of 50 reference prompts token-identical (MTP and DFlash2 servers); the chat set 52 of 52; tool calls t1-t4;
tool_choice"required" 10 of 10 and "none" 20 of 20, on the plain server and through the layer, with 0 raw tool text and 0 empty answers; recall at 117k and at 245k tokens: 24 of 24 needles and 20 of 20 copies each; the saved-chat gate of the layer (4 turns from 30k tokens; a 245k-token chat restored on a fresh server with the same answer); the speed cells of the release smoke within 1.2 % of v1.1.5; final-zip smoke. - Coding harnesses: Claude Code, Codex, pi and opencode, each through the layer and on the plain server, 6 tasks each: 5 of 6 in all 8 runs with 0 malformed tool calls, the same as v1.1.5 (the same task fails in each run: a wrong list of files in the answer, not a tool fault). Only Claude Code sent a cap that the new rule changes:
max_tokens: 4096in 2 requests of each run, now kept with a reasoning budget of 3,072 (v1.1.5 raised them to 24,576). No harness sent a cap that is raised. - Linux (RTX 3060 12 GB, a rented machine): the engine built on the machine,
test-chatpasses; every engine file hasRUNPATH $ORIGIN, and the search-path change touches only the string table in each file's header (code and data sections are byte for byte the same before and after it); all gates ran with the build folder moved away. 50 of 50 reference prompts token-identical to v1.1.5;tool_choice10 of 10 for "required" and for "none" (plain server and through the layer, 0 raw tool text, 0 empty answers); tool calls t1-t4; themax_tokenscases; the web page;/v1/models; the three launcher failure cases of v1.1.5; recall at 117k and at 245k tokens: 24 of 24 needles and 20 of 20 copies each; the saved-chat run above; final-tarball smoke; no process left after each stop. - Member compare against v1.1.5: the zip differs in 9 of 45 members (4 engine DLLs, the launcher, the 2 layer files, README, NOTICE); the tarball in 17 of 60 (the 12 engine files, the launcher, the 2 layer files, README, NOTICE). The tarball made on the test machine and the released one have the same 60 members (name, sha256, mode). Scans: 0 private strings, 0 control bytes, 0 keys.
Files
Kintsugi-27B-v1.1.6-win-x64.zip: Windows, RTX 20 / 30 / 40 / 50 and H100.Kintsugi-27B-v1.1.6-linux-x86_64.tar.gz: Linux x86_64, the same cards.Kintsugi-27B-v1.1.6-engine-src-8f12baacf.tar.gz: the engine source.web-ui-THIRD-PARTY.txt: the licences of the npm code in the built-in web chat page (unchanged).
Kintsugi-27B v1.1.5: tool_choice "required" and "none" fixed, model name kintsugi
Kintsugi-27B v1.1.5: tool calls with tool_choice "required" and "none" fixed, the model name kintsugi, and launcher fixes from an RTX 3060 report.
The model file does not change: Kintsugi-27B-12G.gguf from https://huggingface.co/CaryPalmer/Kintsugi-27B (sha256 0510bae82445dc53dbc7d0d842d8b7e146b8eafce0837e39b157d411e48c8a74). Download only the new zip or tarball.
Thanks to Doğukan Ürker (@DogukanUrker) for the report in #15 (RTX 3060 12 GB, Debian 13): the full 262,144-token window on a second 12 GB card, speeds by depth, HumanEval, recall, 17 tool checks, and every request and number we needed to reproduce the problems. He also wrote the Linux launcher patch in this release.
What is new
tool_choice: "required"always ends. The grammar allowed any amount of text before the call and did not allow the turn to end without one. On a turn that needs no tool ("Hi there!"), the model answered in text and then could not stop. Now the text before the call is at most 1,024 characters (and has no<), then only the call is allowed. A short sentence before the call still works.tool_choice: "none"answers in text. The model is no longer shown the tool definitions (the approach of llama.cpp PR #30434 by frozenblade1224), and the grammar does not let it start a call or end with an empty answer. The second part is needed when earlier turns of the chat have tool calls: without it the model copied the call format./v1/modelslists the model askintsugi, not as the path of the model file on your disk.KINTSUGI_ALIASsets another name; an--aliasinKINTSUGI_EXTRAstill wins.- The layer stops when the server stops during the load, and the launcher prints the last lines of the server log (Windows and Linux, with and without
-Wait/--wait). Before, the layer stayed up and answered 503. - Linux: a missing shared library is named before the start (an
lddcheck), not only in the log. Patch by Doğukan Ürker. - No tracebacks in the layer log at the start: the launcher's
/healthchecks while the model loads get a 503 from the layer, and a client that hangs up is one log line. - Linux README: the report template, with Linux paths and fields.
- Engine: the v1.1.2 engine with the three tool_choice changes in
common/chat.cpp(commitd512c2d77). The GPU code is the same: on Windowsggml-cuda.dll,ggml-cpu.dll,ggml.dllandmtmd.dllare the same bytes as in v1.1.4 (llama.dlldiffers only in its time stamp); onlyllama-common.dll,llama-server-impl.dllandggml-base.dll(the version string) change. On Linux onlylibllama-common.soand thellama-serverstub change. - Mac: no change; use the
mac/kit of v1.1.2.
What we checked
The pass lines were written before the runs. "Hi there!" = his request: two tools (get_weather, calculator), tool_choice: "required", thinking on (the default), 10 tries, streamed, a 90 s client limit per reply.
| Check | v1.1.4 | v1.1.5 |
|---|---|---|
"Hi there!" + required, RTX 4070 Windows, plain server |
5 / 10 end with a call; 5 ran on (14,663 to 15,734 characters of text in 90 s) | 10 / 10 end with a call (the longest 8.6 s); the same through the layer |
"Hi there!" + required, RTX 3060 Linux, plain server |
4 to 5 / 10 ran on (two runs) | 10 / 10 end with a call (the longest 16.5 s); the same through the layer |
"What is the weather in Izmir?" + none |
10 / 10 replies are a raw <tool_call> block (Windows and Linux) |
0 / 40 raw calls, 40 / 40 text answers (Windows and Linux, plain and layer) |
none with a tool call and its result earlier in the chat |
not tested on v1.1.4 (our first v1.1.5 build, without the grammar block: 10 / 10 raw calls) | 0 / 40 raw calls, 0 / 40 empty answers (Windows and Linux, plain and layer) |
/v1/models |
the full path of the model file | kintsugi |
| Server stops during the load (a broken model file) | the layer stays up | the layer stops, the last log lines, exit 1, nothing left running (Windows and Linux, with and without the wait option) |
| A missing engine library (Linux) | only in the log | named at the start (the engine needs shared libraries that this computer does not have: ...), exit 1 |
| Layer log at the start | ConnectionResetError tracebacks |
none |
- Unit tests (the engine's
test-chat, on Windows and Linux): new cases forrequiredandnoneon the Kintsugi-27B template; they fail on the v1.1.4 code and pass on v1.1.5. Every othertest-chattest passes. - The same output as v1.1.4 where nothing should change: 50 / 50 reference prompts token-identical and 52 / 52 chat requests with identical rendered prompts and answers (with and without the drafter), tool calls t1-t4, the web page, needles and code copies at 117k (24 / 24, 20 / 20), decode speed at 4k and 64k with DFlash2 and with MTP (RTX 4070, Windows; MTP at 4k side by side: v1.1.4 78.3 / 78.5 tok/s, v1.1.5 78.1 / 78.1). On the RTX 3060 with Linux: 50 / 50 token-identical against v1.1.4 on the same machine, t1-t4, the web page. Needles and code copies at 245k on the RTX 4070 (24 / 24, 20 / 20) and at 117k on the RTX 3060 (24 / 24, 20 / 20).
- Coding harnesses: Claude Code, Codex, Pi and OpenCode, six tasks each, through the layer and on the plain server: 5 of 6 tasks for each harness on both paths, as in our earlier runs (the one miss is the same model answer in every harness: for "which files call legacy_connect" it also names the file that defines it); 0 malformed or rejected calls, 0 leaked tags, 0 loops, no full re-read of the chat in any task.
- The launchers print the same settings and server command as v1.1.4 except
--alias kintsugi(Windows and Linux). - Member compare against v1.1.4: only the files named above,
start-server.ps1/start-server.sh,layer/bonsai_layer.py,README.md,NOTICEandCREDITS.mddiffer. Scans: 0 private strings, 0 control bytes in the changed members.
Files
Kintsugi-27B-v1.1.5-win-x64.zip: Windows, RTX 20 / 30 / 40 / 50 and H100.Kintsugi-27B-v1.1.5-linux-x86_64.tar.gz: Linux x86_64, the same cards.Kintsugi-27B-v1.1.5-engine-src-d512c2d77.tar.gz: the engine source.web-ui-THIRD-PARTY.txt: the licences of the npm code in the built-in web chat page (unchanged).
amd-test-5c: AMD deep-step VRAM fix, warm-up before the speed table, stricter identity check (Windows + Linux, RDNA3 + RDNA4)
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_MIBchanges 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 orderline 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 prints7 identlines 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 a4 differline 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
-
Unpack the file for your card. Put
Kintsugi-27B-12G.gguffrom https://huggingface.co/CaryPalmer/Kintsugi-27B in
themodelsfolder (SHA-2560510bae82445dc53dbc7d0d842d8b7e146b8eafce0837e39b157d411e48c8a74). You can move the
model file from the folder of an earlier AMD test build. Do not copyautotune.txtfrom an earlier build. -
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=0skips 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. - Windows: double-click
-
Paste the WHOLE report (from
==== Kintsugi-27B AMD self-test reportto==== end of report ====, with the
4 ...,7 ...and8 ...lines) 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
- 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 orderand7 repeatlines, 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.zipf9641e3422e03434e302ad967a92a00e4a44a162cfd593ed5b351a9d9f4d8d83Kintsugi-27B-amd-test-5c-rdna4-win-x64.zip7f6cec3c9316be4ddf57cbac55758bfac8420b896d95c9f628eeddf32a7cf962Kintsugi-27B-amd-test-5c-rdna3-linux-x86_64.tar.gzf33a87c8878c0ce9b07e9db05af54c5cce2fa6e8f589d5e858bd68f723803670Kintsugi-27B-amd-test-5c-rdna4-linux-x86_64.tar.gzca7e74002f7ef05ac08a7a32e922e8fcd8dfa8657e84ab91f0ad63cbc9801f4bKintsugi-27B-amd-test-5c-engine-src-2c818efd7.tar.gza31c17947cf1fecc43d166360fac11b4fef0ac544dae2f2d1d79ba3f7889bfce
amd-test-5b: AMD fused-read fault fix, deep needles, decode repeat (Windows + Linux, RDNA3 + RDNA4)
Superseded by amd-test-5c: https://github.com/professorpalmer/Kintsugi-27B/releases/tag/amd-test-5c
amd-test-5b: the fix of the three GPU faults of amd-test-5, and a repeat of the decode legs (Windows and Linux). It replaces amd-test-5. Thank you, Lazm (issue #11) and Mustafa YILDIRIM (@mustafayildirim): your amd-test-5 reports (RX 7900 XTX and Radeon AI PRO R9700) found the faults on both card families, and Lazm asked the right question about the 32k decode number.
- Fixed: the GPU memory faults of
read-fused,read-fused128and step 8's int8 read run (RDNA3 and RDNA4). All three were one bug in the fused int8 read kernel: it ran in blocks of the wrong shape for the matrix-tile code it uses, so the last block of each matrix wrote past the end of its output. The kernel now runs in the right block shape, and a new check on our side (no GPU needed) tests every memory access of the kernel against its buffer. With it,KINTSUGI_SELFTEST_ONLY=metershould complete again (your report is the check). The settings that step 7 chose in amd-test-5 did not use this kernel. - New: the repeat legs. Step 7 decodes again with the chosen settings in a fixed order: 4k, then 32k, then 4k. Each leg shows its speed and how many draft tokens were accepted, and on Linux also the GPU clock, temperature and power during the leg. So the next report shows if the 32k decode (81.9 tok/s, faster than 4k in amd-test-5) comes from the clock, from the drafting or from the kernels.
- New: step 9, deep needles. 8 facts in a text as long as the full window that the launcher plans for your card (245,000 tokens on a 262,144-token window), on a server with the settings that step 7 chose. It counts the right answers and how each answer ended. This is the long-context check of our NVIDIA releases.
- Everything else is as in amd-test-5 (the bandwidth meter, the tiles decode kernels, the RTX 4070 reference row).
Not the stable release: the Latest release stays the one for NVIDIA cards.
Which file
| File | Cards |
|---|---|
Kintsugi-27B-amd-test-5b-rdna3-win-x64.zip |
Windows: RX 7900 XTX / XT / GRE, RX 7800 XT, Radeon PRO W7900 / W7800 / W7700 (gfx1100, gfx1101) |
Kintsugi-27B-amd-test-5b-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-5b-rdna3-linux-x86_64.tar.gz |
Linux: the RDNA3 cards above |
Kintsugi-27B-amd-test-5b-rdna4-linux-x86_64.tar.gz |
Linux: the RDNA4 cards above |
Kintsugi-27B-amd-test-5b-engine-src-fc0972896.tar.gz |
the engine source of this build (commit fc0972896; 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). You can move the
model file from the folder of an earlier AMD test build. Do not copyautotune.txtfrom an earlier build. -
Run the self-test:
- Windows: double-click
selftest.cmd - Linux:
./selftest.sh
It takes about 40-55 minutes on an RX 7900 XTX (an estimate: step 9 adds about 5-25 minutes; the report shows the real time).
KINTSUGI_SELFTEST_DEEP=0skips step 9. Close other programs
that use the GPU first: step 8 puts 7.5 GB of the model in VRAM. - Windows: double-click
-
Paste the WHOLE report (from
==== Kintsugi-27B AMD self-test reportto==== end of report ====, with the
7 ...and8 ...lines) 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 fix is checked by our builds and the new bounds check, not on a card. The self-test is the
check. - The whole context is in VRAM on AMD (no tiered K/V cache): hence the 16 GB minimum.
- Windows: the repeat legs show the speed and the draft acceptance, but no GPU clock (the bundle has no clock source
on Windows).
Built from engine commit fc0972896 (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-5b-rdna3-win-x64.zip537ecdbc96f79e11849704f4d60cd848e37966963027940b2a87acd573f91170Kintsugi-27B-amd-test-5b-rdna4-win-x64.zipea750f2308b8d5625812cb4c91dbb6ae5b4cbe6b3a0a4e3e99b06fcd09abb3eeKintsugi-27B-amd-test-5b-rdna3-linux-x86_64.tar.gz9c93887fd002c6981d79849a85e215403bd26d4fafe59ab09468301734c98de4Kintsugi-27B-amd-test-5b-rdna4-linux-x86_64.tar.gz4cc92c09b9a401ee16ad61894f2de7718a62170c47429cab67a5c206bd08d0e4Kintsugi-27B-amd-test-5b-engine-src-fc0972896.tar.gz942309887789eb7a37d1f79d008eda31516be0ff8b321d732f0a5098ad192d7e
amd-rc1: the first AMD release candidate: MTP on / off exact again, one mask block for long reads, baked settings (Windows + Linux, RDNA3 + RDNA4)
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.txtthe 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. Thetuneline of the launcher shows them;KINTSUGI_BAKED=0gives 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.zip850afc38b9fad827eac851f82977e6fb74cdb5c71cb68d68da66eb701fcf355eKintsugi-27B-amd-rc1-rdna4-win-x64.zipfe5f3d2644ea9d565d2f9ba7674ca900bc4c5e9804755fbb4e1a2d281ff1fe70Kintsugi-27B-amd-rc1-rdna3-linux-x86_64.tar.gzc32711d98d54d495bf248bdf73dfa86df1ab41d7ca2f25e735fdcd6a95b96ed2Kintsugi-27B-amd-rc1-rdna4-linux-x86_64.tar.gza56520dc8fe14a020c70a3b8fda7a87cb119c078ab7c8eba1e15dbda5c64c49cKintsugi-27B-amd-rc1-engine-src-2d577bb55.tar.gzd61ae0f1cbdc8961e9fb485acde6af4f63372ddc08c018cf2f9885aeaf424f88
Kintsugi-27B v1.1.4: which setting to lower when the VRAM is short
Kintsugi-27B v1.1.4: a launcher fix. When the K/V cells that you set are more than your card can hold, the launcher now tells you which setting to lower.
The engine and the model file do not change: Kintsugi-27B-12G.gguf from https://huggingface.co/CaryPalmer/Kintsugi-27B (sha256 0510bae82445dc53dbc7d0d842d8b7e146b8eafce0837e39b157d411e48c8a74). Download only the new zip or tarball.
What is new
-
Which setting to lower. When you set
KINTSUGI_CELLSby hand and the value is more than this card can hold with the drafting mode, the launcher prints the safe maximum and what to do. Example (RTX 3080 Ti, 328 MiB in use before the start):WARN KINTSUGI_CELLS=83712 is more than this card can hold with DFlash2 drafting: the safe maximum is 64000 cells (free 11960 MiB, ceiling 11904, margin 250). A prompt read can fail with "out of memory". To fix it: lower KINTSUGI_CELLS to 64000, or set KINTSUGI_DRAFT=mtp (MTP + lookup: at most 118016 cells). The launcher keeps your value.The safe maximum is the launcher's own count for this card, this drafting mode and the VRAM in use at the start (a display on the card uses VRAM, so the count is lower then). The launcher keeps your value and does not change it.
-
KINTSUGI_DRAFT=dflashand a failed warm-up. The launcher prints the error lines and, for out of memory, the setting to lower. It keeps the log aslogs/server-<port>.dflash-failed.log, stops the server and the layer, and exits with code 1. In v1.1.3 it said "ready" for a server that could not read a prompt. WithKINTSUGI_DRAFT=auto, the v1.1.3 fallback to MTP does not change. -
Warm-up. With
KINTSUGI_UBabove 1024, the warm-up prompt is longer, so that it fills one full micro-batch and a VRAM shortage shows at the start, not at your first request. At the default (1024) the warm-up does not change (1,337 tokens). -
Why: a user reported an RTX 3080 Ti 12 GB with a display on the card (329 MiB in use before the start) and
KINTSUGI_CELLS=83712set by hand. With DFlash2, the first prompt read failed with "failed to allocate compute pp buffers". On a rented RTX 3080 Ti with 328 MiB held by a small test program, we got the same failure: the first prompt read needs one more 308 MiB block, and only 255 MiB were free. 83,712 cells is the launcher's count for this card with no display and nothing else on it. With the display, the launcher's own count is 42,752 cells (64,000 with no display margin); both serve the same request. Thanks to Amel (@donamelo) for two careful reports with exact settings and logs. -
Mac: no change; use the
mac/kit of v1.1.2 (Kintsugi-27B-v1.1.2-mac.tar.gz).
What we checked
The pass lines were written before the runs.
- The launchers print the same settings and server command as v1.1.3 with
KINTSUGI_DRAFTauto, mtp, dflash and off (Windows on an RTX 4070; Linux on an RTX 3080 Ti). - Start cases on an RTX 4070 with Windows and on an RTX 3080 Ti with Linux (with 328 MiB held on the RTX 3080 Ti for the hand-set cases), all PASS:
- Defaults with the drafter: DFlash2, no warning, ready, correct answer.
KINTSUGI_DRAFT=dflashwith too many cells set by hand: the warning with the safe maximum. On the RTX 3080 Ti (83,712 cells, 328 MiB held) the warm-up fails, the out-of-memory line, the log kept, exit 1. On the RTX 4070 with Windows (120,000 cells) it did not fail: the driver moved 9 MiB to system RAM and the launcher printed its SPILL line.KINTSUGI_DRAFT=autowith the same cells: the warning; on the RTX 3080 Ti exactly one fallback to MTP, ready, correct answer, and the report's 1,024-token request answers.KINTSUGI_DRAFT=mtp, and DFlash2 at or under the safe maximum: no warning, ready, correct answer.- The v1.1.3 cases (a broken drafter, a refused warm-up, with auto and with dflash) as before, except that a forced DFlash2 with a failed warm-up now exits 1.
- After every case: no server and no layer process left running.
- The release zip and tarball themselves, unpacked: the default start and the hand-set cases PASS.
- Member compare against v1.1.3: only
start-server.ps1/start-server.sh,README.mdandNOTICEdiffer. Scans: 0 private strings, 0 control bytes.
Files
Kintsugi-27B-v1.1.4-win-x64.zip: Windows, RTX 20 / 30 / 40 / 50 and H100.Kintsugi-27B-v1.1.4-linux-x86_64.tar.gz: Linux x86_64, the same cards.Kintsugi-27B-v1.1.2-engine-src-b9c5b427d.tar.gz: the engine source (unchanged from v1.1.2).web-ui-THIRD-PARTY.txt: the licences of the npm code in the built-in web chat page (unchanged).
AMD test build win1 (Windows, RDNA3 + RDNA4): test build, results wanted
Test pre-release for AMD Radeon cards on Windows. Not the stable release: v1.1.3 stays the Latest release for
NVIDIA cards. This build is new and not yet run on an AMD card by us; your self-test report is the first check.
What you need
- Windows 10 or 11 (64-bit), on the computer that has the card (not in a virtual machine).
- AMD Software: Adrenalin Edition, a recent version (https://www.amd.com/en/support). No HIP SDK or ROCm install is
needed: the ROCm 7.14.1 runtime is in the zip'sbin\folder (an installed ROCm does not disturb it). - A Radeon RX 7000 or RX 9000 card (or Radeon PRO W7000 / AI PRO) with 16 GB of VRAM or more.
- About 25 GB of free disk space.
Which file
| File | Cards |
|---|---|
Kintsugi-27B-amd-test-win1-rdna3-win-x64.zip |
RX 7900 XTX / XT / GRE, RX 7800 XT, Radeon PRO W7900 / W7800 / W7700 (gfx1100, gfx1101) |
Kintsugi-27B-amd-test-win1-rdna4-win-x64.zip |
RX 9070 XT, RX 9070, RX 9060 XT 16 GB, Radeon AI PRO R9700 (gfx1201, gfx1200) |
Kintsugi-27B-amd-test-win1-engine-src-f7ced0d0c.tar.gz |
the engine source of this build (commit f7ced0d0c) |
Steps
- Unzip the file for your card (right-click, "Extract All..."), for example to
C:\Kintsugi-27B. - Download
Kintsugi-27B-12G.gguffrom https://huggingface.co/CaryPalmer/Kintsugi-27B into themodelsfolder
(SHA-2560510bae82445dc53dbc7d0d842d8b7e146b8eafce0837e39b157d411e48c8a74). - Double-click
selftest.cmd(or runpowershell -ExecutionPolicy Bypass -File selftest.ps1). It takes about
10-20 minutes and changes nothing on your system. At the end the report block (from==== Kintsugi-27B AMD self-test reportto==== end of report ====) is on the clipboard and inlogs\selftest-report.txt. - Paste the report block into an issue with the
amd-testlabel:
https://github.com/professorpalmer/Kintsugi-27B/issues/new?template=amd-test.md (the template still names the
Linux files: fill in Windows and the zip name), or send it to the project owner. The block has no computer name,
user name or folder path. - To use it:
powershell -ExecutionPolicy Bypass -File start-server.ps1 -Wait, then open http://127.0.0.1:8080/ or
point an OpenAI-compatible app athttp://127.0.0.1:8080/v1. Stop:powershell -ExecutionPolicy Bypass -File stop.ps1.
SeeREADME.mdin the zip.
Known limits
- Decode uses the exact fp32 kernels for now: slower than the NVIDIA bundle. This engine has the fix for the crash of
the Linux amd-test-2 build (HSA_STATUS_ERROR_EXCEPTION 0x1016 at the first decode step). - The whole context is in VRAM (no tiered K/V cache on AMD): hence the 16 GB minimum. The window and K/V type come from
the free VRAM (24 GB card: 262,144 tokens, q8_0; 16 GB card: about 172,000 tokens, q4_0). - The free-VRAM figure on Windows (the smaller of the ROCm runtime's and Windows' own GPU memory counter) is not yet
measured on a card; neither are the window sizes. - 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. - Exact prompt read only (no fast int8 read on AMD yet); no two-stage output head.
Built from engine commit f7ced0d0c (the amd/hip port + the GEMV dispatch fix) with ROCm 7.14.1 (TheRock wheels) and
clang 23. Licences and notices: LICENSE, NOTICE, licenses\ in the zip.
SHA-256:
Kintsugi-27B-amd-test-win1-rdna3-win-x64.zip33af92e76182ffaee82ca03d1ea10a8c97bf8870ab524c0253100e1382ff84fbKintsugi-27B-amd-test-win1-rdna4-win-x64.zip9fba4439bb37be7a6de6a58c0962f4f25dff1e4daceeb32104757bf4df81fe2fKintsugi-27B-amd-test-win1-engine-src-f7ced0d0c.tar.gzd1497c016d162fd855e95983031bab9f4fec7a5633a130319713a76d4ebfadca
amd-test-5: AMD bandwidth meter + tiles decode kernels test build (Windows + Linux, RDNA3 + RDNA4)
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=1default,=2fewest), 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
-
Unpack the file for your card. Put
Kintsugi-27B-12G.gguffrom https://huggingface.co/CaryPalmer/Kintsugi-27B in
themodelsfolder (SHA-2560510bae82445dc53dbc7d0d842d8b7e146b8eafce0837e39b157d411e48c8a74). You can move the
model file from the folder of an earlier AMD test build. Do not copyautotune.txtfrom an earlier build. -
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.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 ...and8 ...lines; Windows puts it on the clipboard, both writelogs/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 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.zip52a54d4bdcc9117a1e12f776491962ebe2b06603b56cd1e356641e4bfd0cfc22Kintsugi-27B-amd-test-5-rdna4-win-x64.zip099a716986a54fb1a8947df8603988808f7c6b42878c22072ca881ca687154cbKintsugi-27B-amd-test-5-rdna3-linux-x86_64.tar.gz8fca164993d14f434ab012fd4a21df92ad2212a92b5a3656472ffae17885456cKintsugi-27B-amd-test-5-rdna4-linux-x86_64.tar.gzf44afcc7cb3454a219e984cbcf83ffb49780b11054a34e3a6aa8b96c1437057fKintsugi-27B-amd-test-5-engine-src-c26c2534c.tar.gza4fa41c05a04ef7953d922ee7f4e569ba0d93866afdbc76e7a44579dd9be32f6
amd-test-4: AMD speed autotune test build: split GEMV, drafting by measurement, RDNA4 hipBLASLt fix (Windows + Linux, RDNA3 + RDNA4)
Superseded 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