Commit Graph
14 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 5e4c9c9530 models: all model paths point into the work folder (models/leleka-gates, models/deepseek-v41-flash)
Rewrite the 5090 server model paths in 30 repo files (scripts, tools, docs) from the old
locations (/home/para/leleka-gates, $HOME/leleka-gates, /data/models) to
/home/para/work/leleka/models/..., add the AGENTS.md workspace rule and the move record
docs/experiments/models-move.md. Not merged: the smoke test is pending.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 19:12:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 47707480d0 Normalize line endings to LF in files the decode-tail/sm120 branches had converted to CRLF (whitespace only)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 08:27:39 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 589ed7d1e3 scripts/decode-sm120: replay job runs a one-request smoke first and aborts if it fails
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 03:38:15 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8713ccd7b2 scripts/decode-sm120: replay job sets the explicit replay opt-in
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 03:27:08 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7636ec5d91 scripts/decode-sm120: trimmed jobs (e2e: base1 all1 all2 base2, seed off, no CUPTI by default; replay: two processes, side optional)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 03:00:32 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b03510f43f scripts/decode-sm120: summarize.sh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 02:16:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c9b91ac543 scripts/decode-sm120: jobs for three switches (replay identity in three processes), build_rt/test_driver fixes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:55:59 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 75f166c9ba sm120 decode switch SIDE_MIXER (GDN part): gates and gate projection on side streams of the verify window graph (off by default until its gates pass)
Upstream STRATA_SIDE_MIXER=2, GDN half: each GDN layer's alpha/beta gates (gdn_alpha_beta) and gate projection (mmvq GdnGate) are issued on two side
streams that fork from the capture stream right after the q8_1 quantization (before the qkv projection) and join before the recurrence; no kernel changes,
only the dependency edges of the captured graph. OriginalCapture owns the side streams and their fork/join events (created before cuStreamBeginCapture
for a VerifierWindow capture when the switch is on, destroyed after the capture ended) and hands out the side stream from stream_handle() between
side_fork(i) and side_end(i). Not in a split (two-group) window, as upstream. The QSA half of upstream's switch (indexer chain, queries chain) is not ported.

Switch: policy.side_mixer, LELEKA_SM120_SIDE_MIXER=0|1, replay arm flags !side / !noside. Default OFF: no identity or timing result yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:52:15 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 78cdd2d169 scripts/decode-sm120: jobs on the frozen corpus and the pinned expert profile, harness files under /data/leleka-e2e, trust check on the last turn's input tokens
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:46:11 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c8dae30bab scripts/decode-sm120: replay identity job, build_rt fix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:37:23 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c605fff02b scripts/decode-sm120: e2e A/B holder job and replay test binary build
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:26:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ce2229b818 scripts/decode-sm120: build_stack.sh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:20:48 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 0765a20958 sm120 decode switch GU_SWIGLU: fused expert gate/up + SwiGLU + q8_1 (upstream native_gu_swiglu_kernel) in the verify window (default on for cc 12.0)
Replaces window_moe_gu_<T> + swiglu_entries_kernel + quantize_q8_1_kernel of every routed-expert group launch (VRAM and PCIe tier) by one launch of upstream's
native_gu_swiglu_kernel (16-lane sub-warp rows, gate and up row at once) for the gate/up types 16 17 18 21 22 23 at n_embd 2560, n_ff % 32 == 0; every other
format keeps the three-kernel plan. New sealed asset sm120_gu_swiglu.cu (group sm120-decode) textually includes sm120_iq_prefix.cuh, the pinned
iq_kernels.cu up to the dequant banner (generated and checked by scripts/decode-sm120/make_iq_prefix.py; the whole file would instantiate 24 MB of PTX).
Kernel parameter: upstream's 88-byte NativeExpertLayout (the window's 64 bytes + tail_off, had_block, d_signs = 0).

Switch: policy.gu_swiglu, resolved at window recording from the card (cc 12.0), LELEKA_SM120_PERF=0 and LELEKA_SM120_GU_SWIGLU=0|1.

Model-free probe (tools/decode-sm120/sm120_probe.cpp gu, RTX 5090): the q8_1 blocks the down kernel reads are byte-identical to the old three-kernel path in
30 cases (types 16 17 18 21 22 23, 1-8 rows, 1-40 groups, 1-7 entries a group, random blobs with valid block scales); per layer at 4 rows 20.9 -> 14.2 us (16),
29.8 -> 20.7 us (18), 24.9 -> 19.6 us (21), warm L2. Types 29 and 42 are not probed and not routed to the new kernel. Not yet measured end to end.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:20:32 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 0ca709cad1 sm120 decode switch ATTN_DAILY: upstream pre75 attention chunk + merge v2 in the verify window (default on for cc 12.0)
Ports engine/strata qsa_decode_attn.cu attn_chunk_kernel_pre75<mode 1, NC 2> and attn_merge_v2_kernel<16> as sm120_attn_daily.cu (new sealed asset,
group sm120-decode) and selects them in QsaWindow::decode_attention when policy.qsa.attn_daily is set. The policy bit is resolved at window recording
from the card (cc 12.0), LELEKA_SM120_PERF=0 (whole set off) and LELEKA_SM120_ATTN_DAILY=0|1 (wins in both directions, any card).

Model-free probe tools/decode-sm120/sm120_probe.cpp on the RTX 5090: chunk partials, merge(old) of both partial sets and merge_v2 are byte-identical to
the sealed Original kernels on 66 cases (T 1,2,4,5,6,8 x n_ids 2051..0, masked pages, two score ranges). Per call at T=4: chunk 29.8 -> 20.3 us,
merge 6.5 -> 2.9 us (warm L2, graph-timed); 12 QSA layers per window. Not yet measured end to end.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:07:31 +01:00