Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

2.7 KB
Raw Blame

NVIDIA RTX 3090

Kyojin also runs on NVIDIA (sm_80 and up, tested on one RTX 3090 with 24 GB). It uses the same sources as the ROCm build; the CUDA path adds a quantized-KV decode attention kernel, a Flint sliding-window ring with whole-forward CUDA graphs, a grouped MoE prefill tier, an sm_86 GEMM layout and a decode GEMV policy. Build: tools/cuda/README.md. Switches: doc/env_vars.md.

Machine for every table on this page: one NVIDIA RTX 3090, 24 GB. Real text, greedy, one user, KV cache quantized (Flint 6/6 bits, Qwen27 4/4 bits), tokens per second.

Flint V1. Kyojin 1.8.9, served, 2026-11-04 (1 warm-up, 1 rep; 3 reps and the median at 4K). Prompts are 4,051 / 15,338 / 31,190 / 61,543 / 123,523 / 227,527 tokens.

model 4K 16K 32K 64K 128K 256K
Flint V1 (3.43 bpw, 17 GiB) decode 138.7 134.8 127.9 121.1 105.6 83.1
prefill 6930 8291 7516 5565 4047 2718

Qwen3.8-27B. Server, vision on, MTP + n-gram. Kyojin 1.8.9, served, 2026-11-04 (1 warm-up, 1 rep; 3 reps and the median at 150K). Prompts are 5,392 / 39,276 / 81,491 / 147,740 / 234,772 tokens.

model (server, vision on) 5K 39K 79K 150K 250K
Qwen3.8-27B (EXL3 4.0 bpw, MTP + n-gram) decode 74.6 69.7 71.2 62.5 52.3
prefill 1621 1544 1353 1118 920

Plain decode without speculation on Qwen27 (Kyojin 1.5.10): 45.6 tok/s at 4K, 41.5 at 32K, 37.2 at 128K, 32.8 at 256K. Both models fit 256K tokens of context in 24 GB (peak 21 GiB for Flint, 20.5 GiB for Qwen27 with the vision tower).

Run at 256K:

# Flint V1: 256K with 6-bit K and V (fp16 KV fits about 131K)
python tools/flint/serve.py --model ./flint-pack -c 262144 --kv 6,6
# Qwen27: 256K, 4-bit K and V, vision and the MTP drafter on
python tools/qwen/serve.py --model ./qwen27-pack -c 262144 --k-bits 4 --v-bits 4

On NVIDIA both servers turn on the CUDA graph and these cache widths by default; --kv and --k-bits/--v-bits override them. The quantized caches are lossy: the Flint 6/6 cache measures about +9 % KL against fp16 and Qwen27 4/4 measures 1.4e-3 KL and finds the needle 3 times out of 3 at 256K (2 of 3 at 128K, the miss being a refusal wording that fp16 shares on other texts); tools/flint/kvgate.py and tools/qwen/kvgate.py rerun both checks.

Quickstart

Build for CUDA once (tools/cuda/README.md), then use the commands under "Run at 256K" above. Packs: Flint-40B-A2.5B, Nanbeige4.3-33B.