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
GLM /completion: same sampling defaults as the chat route; MiMo lane: template now comes from serve.py
YanissAmzae5c921ff547
diff --git a/tools/glm/serve.py b/tools/glm/serve.pyindex 37b3e4f..6f3ad6a 100644--- a/tools/glm/serve.py+++ b/tools/glm/serve.py@@ -750,8 +750,8 @@ def create_app(engine: Any, model_id: str, template: str) -> web.Application:n_predict = min(n_predict, room)stops = body.get("stop", [])job = {"_prompt": prompt, "max_tokens": n_predict,- "temperature": float(body.get("temperature", 0.0)),- "top_p": float(body.get("top_p", 1.0)),+ "temperature": float(body.get("temperature", SERVE_DEFAULTS["temperature"])),+ "top_p": float(body.get("top_p", SERVE_DEFAULTS["top_p"])),"_stop": [stops] if isinstance(stops, str) else list(stops)}except (json.JSONDecodeError, web.HTTPException, TypeError, ValueError) as exc:if isinstance(exc, web.HTTPException):diff --git a/tools/lanes/serve_mimo.sh b/tools/lanes/serve_mimo.shindex 662afca..648c355 100755--- a/tools/lanes/serve_mimo.sh+++ b/tools/lanes/serve_mimo.sh@@ -5,7 +5,7 @@# Greedy output is not token-identical to plain decode (near-tied logits can flip under the batched verify);# MIMO_SPEC=0 gives plain decode. With no drafter found the lane logs one line and decodes plain.# Sampling: model-card / generation_config.json defaults T1.0, top_p 0.95 (agent clients often send neither; greedy decoding is not recommended).-# Chat template: the pack's own chat_template.jinja (read by serve.py).+# Chat template: tools/mimo/chat_template.jinja, the model's template plus a medium effort level (serve.py default).# Tool calls: serve.py parses <parameter=k>v</parameter> XML and JSON bodies, typed by the request's tool schema.# Knobs (env):# MIMO_MODEL pack dir (default ~/models/MiMo-V2.6-Flash-MOPD-EXL3-Yamz; MUST exist: fail fast)@@ -35,7 +35,6 @@ FREE_FLOOR_GIB=${LANE_MIN_FREE_GIB:-10}KV_BYTES_PER_TOKEN=23040die() { echo "serve_mimo: $*" >&2; exit 3; }[ -f "$MODEL/config.json" ] || die "model pack missing: $MODEL"-[ -f "$MODEL/chat_template.jinja" ] || die "no chat_template.jinja in $MODEL"[ -f "$SERVE" ] || die "serve.py missing: $SERVE"[ -d "$LANE_ROOT/exllamav3" ] || die "engine worktree missing: $LANE_ROOT"grep -q -- "--default-temperature" "$SERVE" || die "$SERVE lacks --default-temperature (lane would be greedy)"