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
Hy4 serve: ship HY4_PF_SPARSE=1 with HY4_PF_SPARSE_MINN=16384 (sparse prefill attention for DSA layers from 16K keys)
YanissAmzb40da4d82e83
diff --git a/tools/hy4/serve.py b/tools/hy4/serve.pyindex e53a689..dcfa5ba 100644--- a/tools/hy4/serve.py+++ b/tools/hy4/serve.py@@ -39,6 +39,7 @@ SHIPPED_ENV = {"HY4_PREFILL_MOE": "1", "HY4_PREFILL_DENSE": "1", "HY4_PREFILL_ATTN": "1", "HY4_PREFILL_IX": "1", "HY4_ENGRAM_PREFETCH": "1","HY4_PF_F16": "1", "HY4_MOE_NFIRST": "1", "KEEPCACHE": "1", # prefill set"HY4_LC_SPARSE": "1", "HY4_LC_PRIME": "1", # long context: exact top-k sparse decode attend (NLL inside the dense-vs-null band at 8K / 16K), draft-cache fill selects with the prefill scorer+ "HY4_PF_SPARSE": "1", "HY4_PF_SPARSE_MINN": "16384", # sparse prefill attention (HIP kernel via SP_SO, Triton fallback) from 16K keys: 33K prefill 60.6 -> 42 s, 128K flat ~790 tok/s; NLL 32K 4.5226 vs dense 4.5231 (nulls 4.511-4.515); below 16K dense CK (KL at 4096 with sparse 0.1089 vs nulls 0.0988-0.1054)"HY4_PF_WOT": "0", "HY4_MOE_HIP": "2", "HY4_PF_CK": "1", "HY4_PF_FUSE": "1", # prefill set 2: shared gm_ext WMMA experts (HY4_GM_EXT), CK MLA core (EXL3_CKMLA_SO), one-pass hc / norm / indexer kernels}