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: system settings for full speed (IOMMU off, GPU clock level high, cooling)
YanissAmz1a3218f124cc
diff --git a/README.md b/README.mdindex 5611da2..22fa7e7 100644--- a/README.md+++ b/README.md@@ -64,7 +64,7 @@ The server speaks the OpenAI API on port 8000. GLM and MiMo commands: [doc/model## Read more-- [Install and first launch](doc/install.md): requirements, build, per-shell setup, first-launch tuning+- [Install and first launch](doc/install.md): requirements, build, per-shell setup, first-launch tuning, [system settings for full speed](doc/install.md#system-settings-for-full-speed)- [Models](doc/models.md): Qwen, GLM and MiMo weights, serve commands, options- [Benchmarks](doc/benchmarks.md): how the figures are measured, where each comes from, full tables, share yours with `tools/bench.sh`- [Troubleshooting](doc/troubleshooting.md), [refusal hook](doc/refusal_hook.md), [development](doc/development.md), [credits and licence](doc/credits.md)diff --git a/README.tmpl.md b/README.tmpl.mdindex ba96987..24bc4bb 100644--- a/README.tmpl.md+++ b/README.tmpl.md@@ -59,7 +59,7 @@ The server speaks the OpenAI API on port 8000. GLM and MiMo commands: [doc/model## Read more-- [Install and first launch](doc/install.md): requirements, build, per-shell setup, first-launch tuning+- [Install and first launch](doc/install.md): requirements, build, per-shell setup, first-launch tuning, [system settings for full speed](doc/install.md#system-settings-for-full-speed)- [Models](doc/models.md): Qwen, GLM and MiMo weights, serve commands, options- [Benchmarks](doc/benchmarks.md): how the figures are measured, where each comes from, full tables, share yours with `tools/bench.sh`- [Troubleshooting](doc/troubleshooting.md), [refusal hook](doc/refusal_hook.md), [development](doc/development.md), [credits and licence](doc/credits.md)diff --git a/doc/install.md b/doc/install.mdindex 26dc606..9ad39e4 100644--- a/doc/install.md+++ b/doc/install.md@@ -29,4 +29,20 @@ First GLM launch: the server tunes its dense GEMM kernels before it opens the poMemory: GLM at `-c 131072` leaves about 10 GiB free on a 128 GB machine. Close browsers and other large processes first, or use a smaller `-c`.+## System settings for full speed++Our servers run with the three settings below. Each gain was measured on our Strix Halo machines, with the same generated text.++1. **IOMMU off.** Add `amd_iommu=off` to the kernel command line (for example in `GRUB_CMDLINE_LINUX_DEFAULT` in `/etc/default/grub`, then `sudo update-grub` and reboot). With the IOMMU on we measured 6 % less prefill and 2.5 % less decode. Note: the NPU needs the IOMMU, so this turns the NPU off.+2. **GPU clock level `high` while serving.** It holds the GPU clock at its top level instead of letting it drop between kernels: GLM 8K prefill +5.7 %, decode +0.5 to +1.4 % (GLM and Qwen). Set it before you start the server and put it back to `auto` after, so the GPU does not stay at full clock when idle:+ ```bash+ echo high | sudo tee /sys/class/drm/card*/device/power_dpm_force_performance_level+ # ... serve ...+ echo auto | sudo tee /sys/class/drm/card*/device/power_dpm_force_performance_level+ ```+ Do not use `profile_peak`: it pins every clock, uses the power budget and was 5 to 10 % slower.+3. **Cooling.** The chip slows itself down when it runs hot. The same machine at 96-99 °C gave 15 to 20 % less GLM prefill than when cool. Keep the air inlets and outlet free; in a closed cabinet, a small fan that moves the hot air out helps.++The CPU governor should be `performance` (check `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`); the GLM server is partly CPU-bound.+Problems: [troubleshooting.md](troubleshooting.md).