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
Merge perf/verify-rows8
YanissAmze081d969a193
diff --cc tools/qwen/serve.pyindex fbb721b,cc53df6..360f1ae--- a/tools/qwen/serve.py+++ b/tools/qwen/serve.py@@@ -618,8 -614,8 +618,9 @@@ class QwenEnginefrom exllamav3 import Cache, Config, Generator, Job, Model, Tokenizertorch.set_grad_enabled(False)self.torch, self.Generator, self.Job = torch, Generator, Job+ ndt = max(ndt, int(os.environ.get("QWSPEC_MAXD") or 0), int(os.environ.get("QWSPEC_FIXD") or 0)) # buffers fit the deepest draftself.model_path, self.ctx, self.ndt, self.draft_policy = model_path, ctx, ndt, draft_policy+ self.sessions = sessionsself.config = Config.from_directory(model_path)self.tokenizer = Tokenizer.from_config(self.config)self.eos = list(self.config.eos_token_id_list)@@@ -629,8 -625,7 +630,8 @@@self.cache_bits = cache_bitsfrom exllamav3 import CacheLayer_quantqkw = dict(layer_type=CacheLayer_quant, k_bits=cache_bits, v_bits=cache_bits) if cache_bits else {}- self.cache = Cache(self.model, max_num_tokens=ctx, max_history=max(3, ndt), **qkw)+ # one recurrent (GDN) slot per session; the Generator caps its batch at the slot count- self.cache = Cache(self.model, max_num_tokens=ctx, max_history=3, max_batch_size=sessions, **qkw)++ self.cache = Cache(self.model, max_num_tokens=ctx, max_history=max(3, ndt), max_batch_size=sessions, **qkw)if os.environ.get("EXL3_WARM_DENSE", "1") != "0":from exllamav3.model.dense_warmup import seed_dense_tuneseed_dense_tune()@@@ -642,10 -636,9 +643,10 @@@self.draft_model = self.draft_cache = Noneif draft_policy != "off":self.draft_model = Model.from_config(self.config, component="mtp")- self.draft_cache = Cache(self.draft_model, max_num_tokens=ctx, max_history=3, **qkw)+ self.draft_cache = Cache(self.draft_model, max_num_tokens=ctx, max_history=max(3, ndt), **qkw)+ startup_health.stage("drafter weights")with Heartbeat("loading MTP drafter"):- self.draft_model.load(progressbar=False)+ self.draft_model.load(progressbar=False, callback=startup_health.load_callback())self.vision = Noneif vision:try: