Skip to content

Kindi 0.7.2

Latest

Choose a tag to compare

@ahtx ahtx released this 25 Nov 02:05

Everything in 0.7.1 and 0.7.0 stays. This includes Qwen3.8-Flash-Next, a 125B mixture-of-experts model for one 8 GB
card. It also includes AMD RDNA2 support, native Windows with a tray monitor, several requests at once and card
placement. Flash-Next drafts for sampled requests, and Kindi runs Inkling 2 Mini (experimental). Kindi 0.7.2 adds LoRA adapters
for the ternary Bonsai models and two fixes. The native Windows package stays at 0.7.0, because 0.7.2 has no new
Windows build.

LoRA adapters

kindi --lora FOLDER serve loads a PEFT adapter and runs the model with it. The folder holds adapter_config.json
and adapter_model.safetensors. The tensor names can be Hugging Face Qwen3.5 names or GGUF names. Kindi folds the
adapter into the rotated activations once, when it loads the adapter. No extra rotation runs for each token. Kindi
stores the converted adapter in the pack, and you can name it again by its hash.

An adapter on a projection adds one small kernel after each adapted product. Kindi merges adapters on ssm_alpha and
ssm_beta into the float weights at load. They cost nothing for each token. The embeddings and the output head are
not adapted.

On a Quadro K1200 with the 4B and a rank-16 adapter, the adapter costs 2.15 ms for each token. The model writes 35.9
tokens/s. Without an adapter it writes 39.6 tokens/s. The K420 test used a random rank-32 adapter on all 12 module
types. Kindi gave the same tokens as the float Hugging Face and PEFT reference in 240 of 240 teacher-forced tests. The
largest logit difference was 0.003.

Fixes from atimelessrage

Pack and cache JSON files are now read with a function that closes the file. On Windows, an open file could block a
kindi convert or a cache rewrite that ran at the same time (PR #50). Every error from kindi serve and
kindi route now has the OpenAI error body, also in streams. A messages value of the wrong type gives a 400 in place
of an HTTP 500 (PR #58). Thank you to atimelessrage for both.

Install or upgrade on Linux with one command (see docs/INSTALL.md for the sha256 check):

curl -fsSL https://amirhusain.com/kindi/install.sh | bash

On Windows 10 or 11, run this in PowerShell (see docs/WINDOWS.md):

irm https://amirhusain.com/kindi/install.ps1 | iex

The sha256 of install.ps1 in this release: 3c3df3f3973d35aec9367fc438345164272fa5298ec92508a3588c1ec1d22922.