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/qdecrow (quantized verify attention) into 1.8.4
YanissAmzec26a5c70f4d
diff --cc exllamav3/modules/attention_fn/triton_paged.pyindex 1fca687,9eca6dd..4635076--- a/exllamav3/modules/attention_fn/triton_paged.py+++ b/exllamav3/modules/attention_fn/triton_paged.py@@@ -1263,27 -1263,9 +1263,28 @@@ def _qdec_hip_decode(q, k_cache, v_cachwindow_left, window_right = _normalize_window(window_size)sinks, has_sinks = _prep_sinks(sinks, n_q_heads, q)cfg = _qh.make_cfg(q_len, n_q_heads, n_kv_heads, head_dim, qck, qcv, k_cache.shape[1], causal, softmax_scale,- window_left, window_right, softcap, kv_append_len, has_sinks, ring.cfg.S if ring is not None else 0, tq is not None)+ window_left, window_right, softcap, kv_append_len, has_sinks, ring.cfg.S if ring is not None else 0, tq is not None,+ bsz = bsz)if cfg is None:+ # A verify step with more rows than one pass of the kernel holds (accumulator budget: 4 tokens at GQA 12, hd 256) runs as+ # row chunks, each one a smaller verify at the shifted position: the Triton split kernels cost 15-20x more at 128K+ if q_len > 1 and kv_append_len == q_len:+ n = next((n for n in range(q_len - 1, 0, -1) if _qh.make_cfg(n, n_q_heads, n_kv_heads, head_dim, qck, qcv, k_cache.shape[1], causal, softmax_scale,+ window_left, window_right, softcap, n, has_sinks, ring.cfg.S if ring is not None else 0, tq is not None) is not None), 0)+ if n:+ if _QDEC_HIP_DEBUG: _qdec_hip_note(("hip-chunks", f"q_len {q_len} in {n}"))+ if out is None:+ out = torch.empty_like(q)+ for i0 in range(0, q_len, n):+ m = min(n, q_len - i0)+ qc_ = q[:, i0:i0 + m].contiguous() if bsz > 1 else q[:, i0:i0 + m]+ oc = _qdec_hip_decode(qc_, k_cache, v_cache, block_table, cache_seqlens + i0 if i0 else cache_seqlens, causal, softmax_scale, window_size,+ softcap, sinks if has_sinks else None, None if bsz > 1 else out[:, i0:i0 + m], num_splits, max_kv_len, qc, m, n_kv_heads, ring, tq)+ if oc is None:+ return None+ if bsz > 1:+ out[:, i0:i0 + m] = oc+ return outif _QDEC_HIP_DEBUG: _qdec_hip_note(("no", f"cfg q_len {q_len} hd {head_dim} {n_q_heads}/{n_kv_heads} bits {qck},{qcv} window {window_left},{window_right} softcap {softcap} append {kv_append_len}"))return Noneif _QDEC_HIP_DEBUG: _qdec_hip_note(("hip", f"q_len {q_len} hd {head_dim} bits {qck},{qcv} sinks {has_sinks}"))