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.
Python amdapple-siliconcudadeepseekexl3exllamav3glminferencellmllm-inferencelocal-llmnvidiaopenai-apiquantizationqwenrocmstrix-halo
Docs: cache default, /health progress, test list agree with the code
YanissAmzd57bd607fd9a
diff --git a/README.md b/README.mdindex 894b29c..095236f 100644--- a/README.md+++ b/README.md@@ -87,9 +87,9 @@ The engine can project one fixed direction out of the residual stream at run tim## Tests```bashpip install pytest-for t in tests/test_ablit_runtime_cpu.py tests/test_uncensor_bundled_cpu.py tools/glm/test_serve.py tools/mimo/test_serve.py tools/mimo/test_toolcalls.py; do PYTHONPATH=. pytest -q $t; done+for t in tests/test_ablit_runtime_cpu.py tests/test_uncensor_bundled_cpu.py tools/glm/test_serve.py tools/mimo/test_serve.py tools/mimo/test_toolcalls.py tools/qwen/test_serve.py tools/qwen/test_guard.py tools/test_startup_health.py tests/test_moe_fused_k6_cpu.py; do PYTHONPATH=. pytest -q $t; done```-Run each file separately because two files share a name (`test_serve.py`). These tests need no GPU and no built extension. GPU tests need a built extension and a free GPU.+Run each file separately because three files share a name (`test_serve.py`). These tests need no GPU and no built extension. GPU tests need a built extension and a free GPU.## Build on CUDAThe CUDA build is the upstream one and is unchanged. Install a CUDA 12.4 or newer build of PyTorch, then `pip install -r requirements.txt && pip install .`. `README.upstream.md` has the full upstream guide (wheels, PyPI, uv, Windows, architecture list, conversion tool, examples). `README.strix-halo.md` has the kernel notes and benchmark harnesses.diff --git a/tools/mimo/SERVE.md b/tools/mimo/SERVE.mdindex 17bf38d..7b8ed74 100644--- a/tools/mimo/SERVE.md+++ b/tools/mimo/SERVE.md@@ -40,7 +40,7 @@ top-level config does not carry `max_position_embeddings` — the GLM fix.`stop` (string or list), `temperature`, `top_p`, `max_completion_tokens` or `max_tokens` (the first wins; default 4096). A reply cut by the limit reports `finish_reason: "length"`. An engine failure mid-stream ends with an `error` frame, `finish_reason: "error"` and `[DONE]`. Tool calls are emitted onlyonce the XML block closes, so a client never sees half a JSON payload.- `GET /v1/models` — one entry, `MiMo-2.6-EXL3`.-- `GET /health` — `{"status","model","generator","spec_gate"}`; with the gate on, `spec_gate`+- `GET /health` — `{"status","model","generator","spec_gate"}` once ready (load progress while starting: see below); with the gate on, `spec_gate`carries the live counters `n_spec n_plain n_off n_shadow n_probe_fail t_plain t_spectok_round`. Useful while tuning.@@ -50,7 +50,7 @@ The port answers from the first second, while the model is still loading. `GET /(plus the fields listed above) when the server is ready, and while it loads:```json-503 {"status": "loading", "source": "kyojin", "message": "Target weights, 40 % (stage 1 of 4)", "progress": 0.31, "stage": "target weights", "stage_index": 1, "stage_count": 3,+503 {"status": "loading", "source": "kyojin", "message": "Target weights, 40 % (stage 1 of 3)", "progress": 0.31, "stage": "target weights", "stage_index": 1, "stage_count": 3,"stage_progress": 0.4, "elapsed_s": 52.1, "eta_s": null, "progress_basis": "stages"}```@@ -83,8 +83,7 @@ models:cost measurements (`t_plain`, `t_spec`) and the probe outcome. The shadow-probe re-entry pathre-calibrates within a few plain steps when the next request's acceptance differs, which is whatmakes a code request followed by a chat request safe. Verified on GPU: 6 alternating code/chat-requests in one process, gate counters and served output both sane-(`scratch/msrv/health_after.json`).+requests in one process, gate counters and served output both sane.`--spec-gate-reset-per-request` builds a fresh `SpecGate` per request instead. It costs the firstfew steps of every request (the gate skips the first two speculative rounds and then probes), sodiff --git a/tools/qwen/SERVE.md b/tools/qwen/SERVE.mdindex 411035f..e19baf0 100644--- a/tools/qwen/SERVE.md+++ b/tools/qwen/SERVE.md@@ -90,7 +90,7 @@ The port answers from the first second, while the model is still loading. `GET /(plus the fields listed above) when the server is ready, and while it loads:```json-503 {"status": "loading", "source": "kyojin", "message": "Target weights, 40 % (stage 1 of 4)", "progress": 0.31, "stage": "target weights", "stage_index": 1, "stage_count": 5,+503 {"status": "loading", "source": "kyojin", "message": "Target weights, 40 % (stage 1 of 5)", "progress": 0.31, "stage": "target weights", "stage_index": 1, "stage_count": 5,"stage_progress": 0.4, "elapsed_s": 52.1, "eta_s": null, "progress_basis": "stages"}```