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
Commits on main
Hy4 graph step in 3 segments (Engram rows of the later layers staged while the GPU runs), page-cache-first row reads, ab2 driver
48c19d7 YanissAmz committed 9 days ago
Hy4 spec2: vectorised Engram staging, next-round draft launched before the host bookkeeping, row 0 prestaged, graph bucket API (bucket / graph / precapture), host-time probes and CPU tests
94bd2cf YanissAmz committed 9 days ago
Hy4 spec cost: draft confidences + cost-aware draft length (HY4_DRAFT_POLICY), gm_ext MoE at verify rows (HY4_GM_MOE), verify-row Triton tiles (HY4_ROW_TILES)
665b1dd YanissAmz committed 9 days ago
Hy4 serve: read the TunableOp results file at load and report the entry count
7116b5c YanissAmz committed 9 days ago
Hy4 indexer: rope table shared across indexer layers (one fp64 evaluation per process instead of one per layer): key pool 0.64 -> 0.28 s at 8K, bit-identical (box 748b54a re-applied on the dec5 indexer_fused)
1b9bf6e YanissAmz committed 9 days ago
Hy4 prefill: banded MLA core configs from a random sweep (SWA 14.3 -> 16.6, full 19.6 -> 24.6 TFLOPS, bit-identical output, 8K chunk MLA core 3.0 -> 2.7 s), HY4_PF_WOT=1 opt-in transposed wv_b / wgate / wo GEMM chain (off by default), key-pool sub-timers
e6bce16 YanissAmz committed 10 days ago
Hy4 integration: prefill set 2 in the served flags (CK MLA core, WMMA experts HY4_MOE_HIP=2, HY4_PF_FUSE), frozen TunableOp results for the prefill GEMMs, Triton warm-up at start, MTP head q5k + n-gram long 12
93f1d18 YanissAmz committed 10 days ago
Hy4 prefill: to_f16 memo keyed on storage address, shape and version (a reshaped view of the same fp32 stream now hits); 8K chunk with CK + HIP experts + TunableOp frozen + HY4_PF_FUSE=1: 11.81 -> 10.69 s (766 tok/s), KL@4096 0.116 +- 0.012 vs three noise nulls 0.102-0.119
928f953 YanissAmz committed 10 days ago
Hy4 prefill: drop the split-fp16 router kernel (Triton dot 3.9 TFLOPS, slower than the fp32 matmul)
46410bc YanissAmz committed 10 days ago
Hy4 prefill: fp16 router select option (HY4_PF_RK=1, slower than the torch select, off), fused saturating fp16 cast with reuse of the last fp32 input, post-attention norm through the fused rms kernel; KL gate at 4096 for the CK path: 0.088 +- 0.008 vs noise null 0.110 +- 0.011
ba7c554 YanissAmz committed 10 days ago
Hy4 prefill: un-absorbed MLA attention through CK fmha_fwd hd 256/256 (sink, sliding window and indexer mask inside), HY4_PF_CK=1 opt-in, falls back to the Triton banded path: 8K chunk 14.1 -> 12.9 s, MLA core 2.72 -> 2.25 s, q rope 0.47 -> 0.11 s
47de2c4 YanissAmz committed 10 days ago
Hy4 MTP draft head: HY4_MTP_HEAD=q5k reads Q5_K bytes of the bf16 head from HY4_MTP_HEAD_BIN (tools/hy4/make_head_bin.py), Q8_0 fallback when the file is missing
39ab04f YanissAmz committed 10 days ago
Hy4 dense requant arms: shared ggml quantizer in dense_req, MTP draft head Q6_K / Q5_K arms, round_ms in the speed arms
2d7486d YanissAmz committed 10 days ago
Hy4 n-gram: the long-match lookup finds the earlier occurrence of the sequence own suffix when there are no drafts (it never fired before: long_rounds was 0), ABBA arm script
8674b33 YanissAmz committed 10 days ago
Hy4 dense: Q6_K / Q5_K requant arms for the Q8_0 dense matrices (HY4_DENSE_REQ_ARMS): offline ggml requant tool, run-time mode switch, quality + speed arm script
5720f39 YanissAmz committed 10 days ago
Hy4 decode: HY4_GM_FFN keeps the stock grouped kernel for Q3_K layers at >= 2 rows; gm_ext v5 sources (fp32 swiglu product in the shared down)
ac4ea3d YanissAmz committed 10 days ago
Hy4 decode: HY4_GM_FFN decode FFN on the shared gm_ext ops (gm_route, one Q8_0 launch for rdown + shared gate/up, gm_moe_kq_decode, rup + shared swiglu-down in one buffer), gm_ext v4 sources
a2c3fc5 YanissAmz committed 10 days ago
Hy4 decode: drop the dead zeros fill and the lat clone in the grouped MoE decode path, n-gram long-match-replaces-chain arm (HY4_NGRAM_LONG), zero-GPU n-gram env check
4ce03e4 YanissAmz committed 10 days ago
Hy4 decode: copy the shared gm_ext (box gguf-moe tree 72376c9) and the HY4_MOE_HIP=2 prefill hook (box c82c76c)
044d89f YanissAmz committed 10 days ago
Hy4 server: n-gram rows ship with an 8-token match and the acceptance gate
270bb38 YanissAmz committed 10 days ago
Hy4 engine: n-gram gate on the recent acceptance of the extra rows (HY4_NGRAM_GATE)
a6eb5c0 YanissAmz committed 10 days ago
Hy4 server: n-gram rows in the shipped flags (HY4_NGRAM_EXT=4, HY4_NGRAM_MIN=4)
fb26abf YanissAmz committed 10 days ago
Hy4 engine: n-gram rows scale with the match length (HY4_NGRAM_ADAPT)
a3047f3 YanissAmz committed 10 days ago
Hy4 engine: accepted-length histogram sized for the n-gram rows
b001ff1 YanissAmz committed 10 days ago
Hy4 engine: prompt-lookup n-gram rows on top of the MTP drafts (HY4_NGRAM_EXT/MIN/FILL, off by default) and true-pair head rows for accepted positions the draft chain never wrote
be0dbc6 YanissAmz committed 10 days ago