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.

4.6 KB
Raw Blame

Models: weights, serve commands, options

Weights: Yamz on Hugging Face. Serve commands assume the venv, EXL3_ROCM_SDK and env.sh from install.md.

Qwen3.8-Flash-Next

hf download yamz-labs/Qwen3.8-Flash-Next-EXL3-Yamz --local-dir ./qwen-pack, then python tools/qwen/serve.py --model ./qwen-pack --port 8000 -c 131072. Speculative decoding is on by default and returns the same tokens as plain decoding. The pack needs about 113 GiB of the 128 GB; start to ready takes about 90 s once the pack is in the page cache; the very first start reads 95 GB from disk and can take 7 to 8 minutes. Details: tools/qwen/SERVE.md.

Memory vs speed. The 24.4 GiB n-gram table is streamed from disk by default (22 GiB of RAM left free). --ngram-ram or EXL3_NGRAM_STREAM=0 loads it into RAM instead: slightly faster prefill, 22 GiB more RAM used, identical output.

GLM-5.3-Flash

Architecture: glm_moe_dsa (MLA attention, sparse indexer, MTP). Pack: yamz-labs/GLM-5.3-Flash-EXL3-Yamz.

hf download yamz-labs/GLM-5.3-Flash-EXL3-Yamz --local-dir ./glm-pack
python tools/glm/serve.py --model ./glm-pack --port 8000 -c 131072 --num-draft 2

All three servers answer a request that sets nothing with the sampling its model card recommends (read from the pack's generation_config.json: temperature 1.0, top_p 0.95, plus top_k 20 for Qwen) and with thinking effort medium. Medium is our own level: each model's chat template with one added instruction that ties the depth of the reasoning to the difficulty of the task. Without it, GLM reasons at its maximum level and can spend a very long time on an open request. A request can still send temperature, top_p and reasoning_effort (low, high, max for GLM; low, xhigh for Qwen), and --default-temperature, --default-top-p, --default-reasoning-effort change the server defaults. --chat-template <pack>/chat_template.jinja serves the model's unchanged template.

With a small max_tokens, the reasoning can use the whole budget: content is then empty and finish_reason is length. Allow at least 1000 tokens, or send "reasoning_effort": "low".

GLM: the pack ships mtp_eh_proj.st, an unquantized MTP eh_proj (64 MiB). The server loads it automatically from the model folder; it raises draft acceptance and decode speed (26.7 -> 31.6 tok/s greedy on the card protocol). Details in tools/glm/SERVE.md.

MiMo-V2.6-Flash

Architecture: mimo_v2 with a DFlash drafter. Pack: yamz-labs/MiMo-V2.6-Flash-MOPD-EXL3-Yamz.

hf download yamz-labs/MiMo-V2.6-Flash-MOPD-EXL3-Yamz --local-dir ./mimo-pack, then python tools/mimo/serve.py --model ./mimo-pack --port 8000 -c 131072. Speculative decoding (DFlash, 4 bpw drafter, confidence-truncated drafts) is on by default: the server uses the pack's drafter/ directory (or $MIMO_DRAFTER, or --drafter <dir>). Without a drafter it logs one line and decodes plain. Set MIMO_SPEC=0 in the lane script (tools/lanes/serve_mimo.sh) or pass --no-dflash to serve.py for plain decode. Greedy output under speculation is token-identical to plain decode (exact verify arithmetic). EXL3_MIMO_LOSSLESS=0 selects a slightly faster verify that is not token-identical: near-tied logits can flip. A loaded drafter costs 2 to 4 % prefill. Details: tools/mimo/SERVE.md.

DeepSeek-V4.1-Flash

172 GiB pack, SSD expert tier, Engram tables from the original repository, DSpark drafting. Full page: DS41.md.

DS41_PACK=./ds41-pack DS41_ENGRAM_DIR=./engram_fp8 DS41_DRAFT=5 tools/ds41/ds41_serve.sh

Flint-40B-A2.5B (NVIDIA)

Mixture-of-experts model for coding agents, 3.43 bpw EXL3, 17.9 GB. Pack: yamz-labs/Flint-40B-A2.5B-EXL3-Yamz. Tested on one RTX 3090 (24 GB), 262144 tokens of context with a 6-bit KV cache. Numbers: rtx.md.

hf download yamz-labs/Flint-40B-A2.5B-EXL3-Yamz --local-dir ./flint-pack, then python tools/flint/serve.py --model ./flint-pack -c 262144 --kv 6,6.

Nanbeige4.3-33B (NVIDIA)

Dense model for agents and coding, 4.0 bpw EXL3, 18.7 GB. Pack: yamz-labs/Nanbeige4.3-33B-EXL3-Yamz. Tested on one RTX 3090 (24 GB), about 77K tokens of context. The pack card has the exact tools/qwen/serve.py command.

Options shared by the servers

  • --sessions N (Qwen server): decode up to N requests together; the default is 1. Details and measurements: tools/qwen/SERVE.md.
  • GET /metrics (Qwen, GLM and MiMo servers): Prometheus text with llama.cpp-style llamacpp:* names, for scraping. Details: the SERVE.md next to each server.
  • Measure your own machine with tools/bench.sh (--json adds the numbers as a JSON block); see benchmarks.md.