Repository navigation
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).