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
Few-row top-k spans: off by default until a served A/B at depth
YanissAmz2d05ad179d6a
diff --git a/exllamav3/modules/qsa_indexer.py b/exllamav3/modules/qsa_indexer.pyindex 13e9dfb..469126b 100644--- a/exllamav3/modules/qsa_indexer.py+++ b/exllamav3/modules/qsa_indexer.py@@ -108,8 +108,8 @@ def merge_tiles_topk(topk_fn, cand_s, cand_i, pos_out, pool_idx, k):pool_idx.copy_(torch.where(pos_out >= 0, torch.gather(cand_i, 1, pos_out.long().clamp(min = 0)), -1))-# EXL3_TOPK_SPANS (read per call): few-row, wide selections (decode / verify at depth) on the span-parallel route below.-# ROCm's dsa_topk runs ONE block per row, so R <= 16 rows of >= 32K pools use R blocks of a 40-CU GPU. 0 = single pass+# EXL3_TOPK_SPANS (read per call, default off): few-row, wide selections (decode / verify at depth) on the span-parallel route+# below. ROCm's dsa_topk runs ONE block per row, so R <= 16 rows of >= 32K pools use R blocks of a 40-CU GPU. 1 = spansTOPK_SPAN_W = 8192@@ -117,7 +117,7 @@ def topk_spans_ok(sc, k):"""Whether dsa_topk_spans may serve this call: few rows, a wide row, and a score view whose row stride is a multiple ofthe span width (the power-of-two scoring workspaces)."""R, T = sc.shape- return (os.environ.get("EXL3_TOPK_SPANS", "1") != "0" and torch.version.hip is not None and 1 <= R <= 16 and T >= 32768 and k <= 512+ return (os.environ.get("EXL3_TOPK_SPANS", "0") == "1" and torch.version.hip is not None and 1 <= R <= 16 and T >= 32768 and k <= 512and sc.stride(1) == 1 and sc.stride(0) % TOPK_SPAN_W == 0 and sc.dtype == torch.half)