Skip to content

Kindi 0.6.0

Choose a tag to compare

@ahtx ahtx released this 12 Nov 23:45
· 15 commits to main since this release

Kindi 0.6.0 adds three mixture-of-experts models: Nemotron 3.5 Lightning 30B-A3B, DeepSeek-V4.1-Flash and one shared
expert placement for both. It also adds the DSpine drafter for the 27B, a one-command installer for Windows, and
server features for agents.

Nemotron 3.5 Lightning 30B-A3B (ternary)

Kindi runs Nota AI's ternary version of NVIDIA Nemotron 3.5 Lightning 30B-A3B (GGUF by boro64, Q2_0). The model has
Mamba-2, mixture-of-experts and attention layers. Install it with --model lightning, or select it with
kindi use lightning-30b. The default context is 32K tokens.

On cards with less than 10 GB, the least used experts stay in host memory. Each layer keeps its last used host
experts in 10 slots on the card, so the card does not read an expert again for the next token.

Read and write speed in tokens/s. Kindi and llama.cpp use the same card, the same model file and the same context:

Card Context Kindi read llama.cpp read Kindi write llama.cpp write
RTX 3080 10 GB, 190 W 512 4,258 2,725 310.4 202.2
RTX 3080 10 GB, 190 W 32,768 3,777 2,138 276.6 182.4
RTX 3090 24 GB, 220 W 512 4,786 3,715 340.5 284.3
RTX 3090 24 GB, 220 W 32,768 4,014 3,390 295.1 261.4
RTX 2070 SUPER 8 GB 8,192 2,129 1,137 120.3 111.8
GTX 1080 8 GB 8,192 687 615 89.5 4.7
Tesla P100 16 GB 8,192 702 506 144.8 118.4

On the 8 GB cards, llama.cpp also keeps experts in host memory (-ncmoe 12 on the RTX 2070 SUPER and -ncmoe 9 on
the GTX 1080, the lowest values that fit). On these two cards, the write test reads a real text as the prompt and
then writes 128 tokens. docs/BENCHMARKS.md has all the rows and the method.

kindi verify passes on every card in the table. On an agent coding benchmark (65 tasks, the same model file,
32K context, one RTX 3080 for each engine), Kindi solved 17 tasks and llama.cpp solved 11. Kindi used 32 s for each
task on average, and llama.cpp used 152 s.

DeepSeek-V4.1-Flash

Kindi runs DeepSeek-V4.1-Flash (552B parameters, 16B active for each token) from the published 4-bit weights. The
dense layers and the attention run on one NVIDIA card with 12 GB or more. The experts run on the CPU from host
memory. A second card can hold the most used experts. The DSpark drafter (the model's own MTP stages) drafts up to 5
tokens for each step, and the output does not change.

On one RTX 3060 12 GB, a Quadro M4000 8 GB as the expert card and two Xeon E5-2673 v4 CPUs, with the model in RAM, Kindi writes 18.7 tokens/s with DSpark (the default).

Prompt reading on real text is about 95 to 100 tokens/s at 2K and 8K tokens. tools/install_dsv41.sh checks the
host, downloads the files, checks their sha256 and makes a systemd user service. The host needs about 560 GB of RAM
for the measured profile. A profile for NVMe hosts with less RAM is in the installer, but we did not measure it yet.
python -m kindi.dsv41 verify is the quality gate: 98.91% top-1 agreement on 1,280 tokens against the reference
implementation, and each difference is a near-tie. See docs/DEEPSEEK.md.

The DSpine drafter for the 27B

DSpine is a block drafter from Tencent (Apache-2.0 weights). It reads five layers of the 27B and drafts 7 tokens in
one pass. The 27B checks the block in one pass, so the output is the same as plain decoding. Sampled requests keep
the distribution of plain sampling.

On an RTX 3080 at 190 W, with a context of 32,768 tokens, the 27B with DSpine writes 115.5 tokens/s. DSpine
gives 3.10 tokens for each check.

The installer downloads DSpine for the 27B on tensor-core cards, and KINDI_SPEC=auto uses it. --no-dspine keeps
the 2B drafter. See docs/DSPINE.md.

AH-Nanbeige4.3-33B: faster, and an 8-bit K/V cache

Two RTX 3080 cards, the same IQ3_XXS file for both engines:

K/V cache Position Kindi write llama.cpp write
f16 0 45.8 36.7
f16 8,192 40.9 33.3
q8_0 0 45.5 35.6
q8_0 8,192 41.9 28.1

Kindi reads a 512-token prompt at 1,036 tokens/s (llama.cpp: 785). The new default kv_cache auto uses the f16
cache when it fits at the selected context. If not, it uses q8_0. Both caches pass kindi verify.

Kindi on Windows

Kindi installs on Windows 10 and 11 with one PowerShell command:

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

The installer checks the PC, turns on WSL2 if it is off, and makes a WSL2 distribution only for Kindi. It uses
Docker Desktop if you have it. If not, it installs Docker Engine in the Kindi distribution. It checks that the GPU
is visible in WSL2, runs install.sh, and checks the server on http://localhost:8093. It adds the Kindi Console
(status, chat, logs and API settings) and an uninstall item. AMD GPUs use the CPU engine on Windows. See
docs/WINDOWS.md.

Server features for agents

  • /v1/tokenize, /v1/detokenize and "dry_run": true give exact token counts. /v1/models gives the context
    limit. A prompt that does not fit gets HTTP 400 with the code context_length_exceeded.
  • A stream gets a progress comment every 10 s during a long prompt.
  • The server saves the state after each answer, so a restart does not lose the turn.
  • Conversations by session (X-Kindi-Session), and two priorities: chat and background. A chat request goes first.
  • /health shows the drafter and the drafted and accepted tokens of the last request.
  • install.sh --lan serves the local network with an API key.

Kindi Bridge in the installer

Kindi Bridge is the terminal workspace for agents on Kindi. The installer can now install it (--with-bridge, or
-WithBridge on Windows). Bridge 0.6.0 shows the Kindi servers, their models and their drafting. Bridge is AGPL-3.0,
as Kindi is.

Fixes

  • When the cache was full, it removed a parked conversation at once (#26). This is fixed.
  • Sampled drafting uses the same sampler order as plain sampling, and it uses min_p (#32).
  • On Windows, Kindi reads the real host RAM (#4).
  • The installer gives the correct compute capability for more cards (#30).
  • DeepSeek: a reply that max_tokens stopped in its tool calls no longer contains raw tool-call markup.

Thanks

The Nemotron 3.5 Lightning backend started with the work of slavalevski-tech, who first ran this model on Kindi and
shared that backend under the Kindi CLA. The Kindi code is a new implementation
(docs/dev/LIGHTNING-CLEANROOM.md). Thank you.

The full list is in CHANGELOG.md. The benchmarks for each card are in
docs/BENCHMARKS.md.

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: 41efe8669c6c887aa982bf3da5ad23c57b52c9ee5c8b73e30aca6405357fb7a6.

Container images: ghcr.io/ahtx/kindi:0.6.0-cuda, ghcr.io/ahtx/kindi:0.6.0-rocm6, ghcr.io/ahtx/kindi:0.6.0-rocm7. Each image passed kindi verify on a real card before it was published. See docs/CONTAINERS.md.