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.

autotune/ab: text path only (--no-vision), --draft override

YanissAmz8348a4a197e4
diff --git a/tools/qualify/ab_autotune.py b/tools/qualify/ab_autotune.py
index df6bfd9..6b661c4 100644
--- a/tools/qualify/ab_autotune.py
+++ b/tools/qualify/ab_autotune.py
@@ -41,12 +41,15 @@ def main() -> int:
ap.add_argument("--ctx", type=int, default=16384)
ap.add_argument("--sessions", type=int, default=4)
ap.add_argument("--port", type=int, default=8591)
+ ap.add_argument("--draft", help="override the derived --draft-policy (off = plain decode)")
a = ap.parse_args()
meta = packmod.read_pack(a.pack)
prof = backends.profile(a.backend, a.repo)
cache = Path(tempfile.mkdtemp(prefix=f"at0_{a.arm}_"))
prof["env"] = {**prof["env"], "EXLLAMAV3_TUNE_CACHE": str(cache), "EXL3_PACK_TUNE": "0" if a.arm == "cold" else "1"}
- argv = packmod.serve_flags(meta, port=a.port, ctx=a.ctx, sessions=a.sessions, k_bits=4, v_bits=4)
+ argv = packmod.serve_flags(meta, port=a.port, ctx=a.ctx, sessions=a.sessions, k_bits=4, v_bits=4, draft=a.draft)
+ if "--no-vision" not in argv:
+ argv.append("--no-vision") # text path only: the vision tower is another model and costs VRAM
log = Path(a.out).with_suffix(".srv.log")
res = dict(arm=a.arm, pack=a.pack, ctx=a.ctx, sessions=a.sessions, cmd=argv, cache_dir=str(cache), seq=[])
t0 = time.time()
diff --git a/tools/qualify/stages.py b/tools/qualify/stages.py
index 7600bbd..4c83ce2 100644
--- a/tools/qualify/stages.py
+++ b/tools/qualify/stages.py
@@ -112,6 +112,8 @@ def job_autotune(c: Ctx) -> dict:
"EXL3_DENSE_GEMM_TUNE_FILE": str(scratch / "dense_gemm_tune.txt")}}
k, v = chosen_kv(c)
argv = packmod.serve_flags(c.meta, port=c.args["port"], ctx=ctx, sessions=sessions, k_bits=k, v_bits=v)
+ if "--no-vision" not in argv:
+ argv.append("--no-vision") # the tower is another model (no GEMM autotune keys of the text path) and costs VRAM
log = c.out / "srv_autotune.log"
with c.locks():
sig = json.loads(c.py("autotune.py", "--signature").strip().splitlines()[-1])