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