Commit Graph
21 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 8bd63be469 holder: guard against a non-sparse lab holder in pf_ab_job (restart sparse and requeue); ledger row M1; ladder A/B ran on the full holder
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 01:01:09 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 22d7e9d824 prefill: the loan ladder (LELEKA_PREFILL_LOAN_TIERS=1) is on in the shipped 5090 profiles
Identity: chunk residual hashes equal (PREFILL-R, jobs id1-id4). Paired A/B n=10 on the sparse holder:
session TTFT sum -3.0 s +-0.3, median -104 ms per request, <= 2048 new tokens -154 ms (19 of 19 faster),
above 2048 tokens -10 ms. The engine default stays off; the profile allow-list accepts LELEKA_PREFILL_*.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:58:37 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c5a8b77942 prefill: LELEKA_PREFILL_GDN_TC (EXPERIMENTAL, LOSSY, off by default): the prompt GDN recurrence as a chunked scan on the tensor cores (ledger U1)
Port of Strata upstream gdn_tc.cuh (strata-upstream/main 504b1433; history 8c2a84694, 06f212aef 99-KB split plan, 51567de1a two value tiles
per head from 96 SMs) as a new standalone sealed asset gdn_prefill_tc.cu/.ptx (sm_120, precise recipe of prefill_stage, extra-seal-plan group
gdn-prefill-tc, ptx-sm86 manifest: not built, the plan refuses cc < 12). Kernels: leleka_gdn_tc_prep (chunk algebra A, T = (I + A)^-1, P, f16
hi/lo images), leleka_gdn_tc_scan_t1 (48 blocks x 256) and _t2 (96 blocks x 128, the RTX 5090 plan, 170 SMs), 97,808 B of dynamic shared
memory, 254 registers, no spill. Same interface as leleka_prefill_gdn_rec_kh: state_in -> state_out, readout y, the non-finite state
witness from the final state. The fused norm, the 124-KB plan and the NP experiments are not ported; our out-norm kernel runs after as before.

Switch: typed setting prefill_gdn_tc (LELEKA_PREFILL_GDN_TC=1|on, serve_tests), GdnPromptOptions.tensor_core_scan through
Context::original_gdn_prompt_device_with; no env read in cuda-driver. Dispatch (gdn_prefill_tc::plan/ScanPlan::takes, host tests of the whole
decision table): switch on, cc >= 12, >= 48 SMs, >= 97,808 B opt-in shared memory, a run of >= 128 tokens; else the sequential kernels
unchanged, with one stderr line why. The scratch (942,272 B a chunk, 60,305,408 B at upstream's 64 chunks) is the prompt device's
dequantization scratch, idle during the recurrence on the one stream, so the super-block is 55 chunks (1,760 tokens) and the switch costs no
device memory. KernelModule gets launch_dynamic (cuFuncSetAttribute opt-in above 48 KiB) and device_geometry.

Identity is NOT bitwise, by design: the reduction order changes (WY chunking, f16x3 splits on mma.sync). Upstream first-token KL against the
sequential path: mean 0.0019, max 0.0125. The gates that decide are docs/quality-gate.md (first-token KL, q_tail_gate, logprob envelope) and
the harness gate 1e-4 (ignored GPU test gdn_tensor_core_scan_stays_within_the_gate_of_the_sequential_recurrence). Not run on a GPU here: no
parity, quality or speed result yet, no speedup claim.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:32:34 +01:00
Pavlo Ratushnyi 4ef5d0fab1 sm86: companions for qsa_late.ptx and chain_window.ptx (full regeneration, refreshes the stale pcie ones); qsa_late stays opt-in on sm_86 until probed there 2026-10-25 14:13:29 +01:00
Pavlo Ratushnyi 3f6720f235 docs: pending gates; cmp_rhash.py 2026-10-25 14:07:18 +01:00
Pavlo Ratushnyi f86eee7a4a docs: measurement conditions, chain summary 2026-10-25 14:06:54 +01:00
Pavlo Ratushnyi c793186732 docs 2026-10-25 14:03:09 +01:00
Pavlo Ratushnyi b6925ce73f docs/prefill-throughput: chunk 8192 in live sessions, replay A/B, loan ladder 2026-10-25 14:03:01 +01:00
Pavlo Ratushnyi 05042010db ladder off by default until its gate runs; tiled-down geometry helper and test; replay arm flags tiers/notiers; job scripts on rt-a7 2026-10-25 13:57:24 +01:00
Pavlo Ratushnyi 38d03f0f7c docs/prefill-throughput: late-chunk QSA selection results 2026-10-25 13:46:13 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 01bd477cef docs(prefill): aligned stream copies, deferred guards, 180k
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 02:27:24 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 080db529b7 docs(prefill): defaults, depth, 180k results, merged copy path
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 20:18:33 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 3f2911bda5 docs(prefill): expert stream overlap findings and measurements
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 03:24:46 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 8c8ced060c docs(prefill): tier-on A/B
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 10:12:44 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 935678805c docs(prefill): laptop A/B of the compute-stage kernels
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 08:23:23 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 f29d8ad400 docs(prefill): compute-stage kernel results (RTX 5090 job 961, laptop gates)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 08:23:13 +02:00
Pavlo RatushnyiandClaude Opus 5.5 499faec1ae perf(prefill): the chunk expert stream is EXPERIMENTAL and off by default
Job 0708 (same binary, LELEKA_PREFILL_STREAM A/B): with next-MoE copies
queued under the GDN batches the ring fell 1,108 -> 776 ms per 8192-token
chunk but the GDN windows grew by about as much (2,676 vs 2,730 ms per
chunk), and 2048-token chunks got slower (1,755 vs 1,410 ms). The
per-layer copy ring is the default again; LELEKA_PREFILL_STREAM=1 enables
the stream for experiments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 00:03:18 +02:00
Pavlo RatushnyiandClaude Opus 5.5 52e0911652 docs(prefill): paired laptop run against the Original (identical greedy outputs, prefill on par)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 23:03:28 +02:00
Pavlo RatushnyiandClaude Opus 5.5 deff468321 docs(prefill): chunk-size rounding evidence, 8192-chunk breakdown, stream overlap and laptop findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:47:03 +02:00
Pavlo RatushnyiandClaude Opus 5.5 ef06b77ad9 docs(prefill): mark the GDN state staging as a likely, unmeasured cause
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 15:45:32 +02:00
Pavlo RatushnyiandClaude Opus 5.5 125f7820fb docs(prefill): profile, fixes and before/after prefill numbers (RTX 5090, RTX 3080 laptop)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 15:45:25 +02:00