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 draft cache fill: MTP expert rows grouped per expert (one pass per chunk of 2048 rows instead of one kernel pair per row)
66a531f YanissAmz committed 10 days ago
Hy4 spec round: Engram row 0 staged during the draft chain (stage overlap) and one Triton kernel for the indexer k-pool update (HY4_IDX_POOLK)
65234fe YanissAmz committed 10 days ago
Hy4 server: OpenAI-compatible backend (chat + completions, SSE) on the graph + MTP decode path and the prefill fast path; GGUF chat template and tokenizer; CPU tests
b459770 YanissAmz committed 10 days ago
Merge the Hy4 prefill fast path (perf/hy4-prefill) into the Hy4 graph / MTP decode tree
a71156d YanissAmz committed 10 days ago
Hy4: Triton router mat-vec (T <= 8 rows), spec_generate loop, one-launch indexer norms with the rmsw flag
9f0a526 YanissAmz committed 10 days ago
Hy4 Engram rows: one task per slice of the sorted row list with preadv into the pinned buffer and a wider IO pool (cold 65k-row fetch 3.85 s -> 1.2-1.9 s), indexer sub-timers
8d6839b YanissAmz committed 10 days ago
Hy4 graph: Engram row staging reads straight into the pinned rows with preadv on a 64-thread pool
21108d4 YanissAmz committed 10 days ago
Hy4 prefill: Q8_0 dense weights dequantised to a transposed fp16 matrix (vendor GEMM NN layout runs 2x faster than NT), fp16 k-pool indexer scoring option (HY4_PREFILL_IX), engram / indexer stage timers
841f3d1 YanissAmz committed 10 days ago
Hy4 router: stable expert selection (ties resolve to the lowest expert id, as in the fused router kernel)
38add15 YanissAmz committed 10 days ago
Hy4 prefill: row-major batch-over-heads MLA projections (the permuted view made every later elementwise op a stride-T gather: attention projections 38 s -> 13 s at 8K), stage timers in the dense prefill path, stable router top-k (tie order was nondeterministic)
458230f YanissAmz committed 10 days ago
Hy4 MTP draft-only fast path: Q8_0 dense draft weights, fused router / attention core, rmsw norms, Q8 or vocabulary-subset draft head (HY4_MTP_FAST, HY4_MTP_HEAD)
21b5c86 YanissAmz committed 10 days ago
Hy4 graph: optional fixed-seed embedding perturbation for noise-ensemble quality gates (measurement only)
ec1de1c YanissAmz committed 10 days ago
Hy4 prefill: int8 grouped MoE kernels (Q8_K activations, behind HY4_PREFILL_MOE=i8), Q8_0 dequant + vendor fp16 GEMM for large dense rows, router fp16 option, per-window banded attention configs, fine timers and diagnostics (all flags default off)
b60f79d YanissAmz committed 10 days ago
Hy4 MTP: T-row draft step and a catch-up draft chain graph (true pairs for accepted positions)
ccc26de YanissAmz committed 10 days ago
Hy4 graph: static indexer handles T verify rows in one pass (batched pool update and selection, equal to T sequential steps)
a3b9915 YanissAmz committed 10 days ago
Carry the live tree uncommitted base changes the Hy4 loader needs (mla_sink_attend allow mask, Q3_K grouped MoE format id, hy4 forward test)
1b8886e YanissAmz committed 10 days ago
Hy4 decode: T-row graph step for verify rows (step_rows / rewind), batched k_b/v_b and head mat-vec for T rows, MTP draft chain graph
8a9d091 YanissAmz committed 10 days ago
Hy4 prefill: fused dequant GEMM kernels (Q4_K / Q3_K sorted-token MoE, Q8_0 dense fp16 and int8), banded MLA attention, Engram prefetch (flags default off)
c4f12eb YanissAmz committed 10 days ago
Hy4 MTP draft head (blk.42): eager torch + int8 expert kernels, trunk state hook for the draft
f97eb50 YanissAmz committed 10 days ago
Hy4 graph: skip the indexer selection while every query sees <= top_k groups (all-causal)
23832ce YanissAmz committed 10 days ago
Hy4 decode: fused q pe rotation, k_b matvec reads the nope slice in place (HY4_KV_FUSED / HY4_MLA_BG)
8f8e976 YanissAmz committed 10 days ago
Hy4 graph: fused K-row kernel (rms + rope + write), flag HY4_KV_FUSED
8c30f6f YanissAmz committed 10 days ago
Hy4 decode: group the FFN projections that read one activation into one dense GEMV (flag HY4_FFN_GROUPED, load time)
d177506 YanissAmz committed 10 days ago
Hy4 decode: Q8_0 structure-of-arrays Triton GEMV for the dense matrices (flag HY4_Q8_SOA, load time)
e6f9b0c YanissAmz committed 10 days ago
Hy4 graph: per-position indexer vg rows (rollback safe), static indexer test
bc7b433 YanissAmz committed 10 days ago
Hy4 decode: Q8_0 batched mat-vec for the per-head MLA k_b / v_b matrices (Triton, flag HY4_MLA_BG)
7b72a66 YanissAmz committed 10 days ago