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 decode levers (DENSE_V2, MOE_V2, DRAFT_*): fires counters, no_grad fix, CPU tests, docs, scrubbed tool defaults
eefa4e0 YanissAmz committed 8 days ago
Hy4 online depth gate: arm O (learn) default mode, per-round depth histogram and changed-depth counter, CPU test, scrubbed driver defaults
ef9616a YanissAmz committed 8 days ago
mla2: precompile hook, trunk/draft fires split, CPU tests, CHANGELOG
5b561de YanissAmz committed 8 days ago
mla2: fires-check (python-side dispatch counter + fallback reasons, HY4_MLA_ROWS2_FIRES file)
a1dcc21 YanissAmz committed 8 days ago
Hy4 spec depth gate: deterministic decisions (per-request reset, static threshold mode), decision digest, FIRES gate_det in the paired driver, CPU determinism tests
f198c41 YanissAmz committed 8 days ago
spec2: python-side FIRES counters (depth2, gate skipped / run), per-arm fires check, tau per class table
5a9aa48 YanissAmz committed 8 days ago
spec2 driver: gate row table from the phase-0 replay, per-class extension rate, precapture line
dacd2af YanissAmz committed 8 days ago
Hy4 spec depth gate (HY4_SPEC2_GATE, default off): k = 2 base draft graph + confidence-gated tail step, CPU fake-engine test, paired A/B driver
88a648f YanissAmz committed 8 days ago
Hy4 graph buckets: HY4_GRAPH_BUCKET_REL default 0 (off) so the shipped lane keeps fixed 512-row buckets
746b865 YanissAmz committed 9 days ago
MLA rows2: row-batched split-K decode attention, q streamed in chunks (no resident q operand), 4 output quarters; flag HY4_MLA_ROWS2 default OFF; model-free micro mla2_micro.py
8365ebf YanissAmz committed 8 days ago
Hy4 draft MTP layer: itemised cost, int8 expert tile retune, Q8 absorb matrices and indexer mat-vec for the draft layer (HY4_DRAFT_MOE_TILES / HY4_DRAFT_MLA_BG / HY4_DRAFT_IX_GV, default off), model-free micros
6e044c3 YanissAmz committed 9 days ago
Hy4 decode experts v2 (HY4_MOE_V2, default off): HIP code object for the grouped MoE stages, Q3_K gate/up one thread per 256-block, Q4_K unrolled loads with LDS activations; bit-equal to the shipped kernels; opbench experts_v2 A/B and paired ABBA driver
0f81106 YanissAmz committed 9 days ago
Hy4 decode: column-tiled few-row dense Q8_0 GEMV (HY4_DENSE_V2, default off): activations in registers, next column prefetched, bit-identical to fq_gemv_q8_0; micro test, ABBA driver, opbench flag hash
833de84 YanissAmz committed 9 days ago
Hy4 step: per-op decode microbench harness (opbench.py): roofs, dense Q8, experts, MLA rows, absorb, router, head, draft head; graph replay over distinct per-layer weights, point cache, reference check
8d9031a YanissAmz committed 9 days ago
Hy4 graph buckets: HY4_GRAPH_BUCKET_REL default 0 (off) so the shipped lane keeps fixed 512-row buckets
3480fe2 YanissAmz committed 9 days ago
Hy4 KV10: fp16 indexer pool (HY4_IX_POOL16) and rope rows from positions (HY4_ROPE_POS), both in HY4_KV_COMPACT=1: 9220 bytes per token
5d735d0 YanissAmz committed 8 days ago
Hy4 KV footprint: HY4_KV_FP8_MTP (fp8 draft-layer K cache), HY4_KV_COMPACT shortcut (fp8 trunk + draft cache + window ring), analytic bytes-per-token table, measurement probe, CPU tests, docs
2ec1853 YanissAmz committed 8 days ago
Hy4 fp8 KV: generic paths in the A/B driver, micro sweep reference
9ee3e5f YanissAmz committed 8 days ago
Hy4 fp8 KV: head-blocked attend on by default only on the fp8 cache (HY4_LC_HB=0 off switch, auto split), fp8 KV stays off by default; sizing table and flag docs, changelog entry, CPU tests (sizing, per-row roundtrip, head-blocked kernels vs the one-head kernel, flag defaults)
d629637 YanissAmz committed 8 days ago
Hy4 multi-session: HOSTPROF adds CUDA-event gpu / bubble / host splits, the precapture zeroes the FIRES counters and uses varied token ids (the expert union grows with the rows like real text)
11e5545 YanissAmz committed 8 days ago
Hy4 long context: fp8 cache sparse prefill reads a chunked fp16 dequantised cache; head-blocked split-K fp8 sparse attend (HY4_LC_HB, HY4_LC_HB_SPLIT) with the key-split combine, rows kernel parameters (HY4_MLA_HB_ROWS, off), model-free micro and paired A/B drivers
5d2ccf9 YanissAmz committed 8 days ago
Hy4 multi-session: MUFAST line also when the scheduler goes idle, fires_line test, doc of the host path flags and the TM 16 kernel limits
3a7c585 YanissAmz committed 8 days ago
Hy4 long context: HY4_KV_FP8 opt-in latent K cache for full-attention layers (e4m3 bytes + per-token scale + bf16 rope, 644 B per token and layer instead of 2304), decoded in the sparse decode kernel, dequantised for prefill / generic paths; CPU unit tests
8b66b67 YanissAmz committed 8 days ago
Hy4 multi-session: HY4_MU_SLOT_PIN=k allocates slot k first (one run tests one slot index), HY4_MU_SYNC_ONLY=a,b syncs only the named stage families without the eager probe (bisects a fault the full sync debug masks), CPU tests
23f6788 YanissAmz committed 8 days ago