ledger U1: first GPU results (parity pass, logit gate arm I1 outside the envelope, A/A floor pending)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
6db5d8cc61
commit
823d544cf5
@@ -222,7 +222,7 @@ Owner rule: small upstream wins (+0.3..0.5 %) are taken too. "VANL" here is vani
|
||||
|
||||
| id | step | LEL | VANL / upstream | difference | source | owner | status |
|
||||
| --- | --- | --- | --- | --- | --- | --- | --- |
|
||||
| U1 | prefill: GDN recurrence as a chunked scan on tensor cores (code `STRATA_GDN_TC`, upstream commits `8c2a84694` opt-in 2026-10-26, default `6858c919c` 2026-11-07 with `STRATA_GDN_CONVL2=2`) | present behind an off-by-default switch (`LELEKA_PREFILL_GDN_TC`); the default prompt GDN kernels stay the sealed Original ones (`leleka_prefill_gdn_rec` / `_kh`); the pinned `engine/strata` (0.1.50) has no `GDN_TC` either | upstream 0.2.9: prompt +4.4 % at 4K, +5.5 % at 16K, +5.7 % at 32K; **lossy**: first-token KL mean 0.0019, max 0.0125; engine gates it at run time (compute capability >= 8, one SM per value head, shared memory) | not a gap against VANL 0.2.6 (it has no `GDN_TC`); a possible win of about 5 % of prefill | upstream commit message | hex-finish | fixing (code c5a8b7794, switch `LELEKA_PREFILL_GDN_TC`, experimental/lossy; parity, quality gate and section delta pending): sealed asset `gdn_prefill_tc.cu` (prep + scan, 99-KB split plan, two value tiles per head on the 5090), runs of >= 128 tokens on sm_120, scratch = the idle dequantization scratch (no extra VRAM); not bitwise by design, the gate is `docs/quality-gate.md` (first-token KL / q_tail_gate / logprob envelope); checks: ignored GPU test `gdn_tensor_core_scan_stays_within_the_gate_of_the_sequential_recurrence` (1e-4), then the quality gate, then section delta = `gdn` stage per chunk of the prefill profile at 4K/16K/32K; no speedup claimed |
|
||||
| U1 | prefill: GDN recurrence as a chunked scan on tensor cores (code `STRATA_GDN_TC`, upstream commits `8c2a84694` opt-in 2026-10-26, default `6858c919c` 2026-11-07 with `STRATA_GDN_CONVL2=2`) | present behind an off-by-default switch (`LELEKA_PREFILL_GDN_TC`); the default prompt GDN kernels stay the sealed Original ones (`leleka_prefill_gdn_rec` / `_kh`); the pinned `engine/strata` (0.1.50) has no `GDN_TC` either | upstream 0.2.9: prompt +4.4 % at 4K, +5.5 % at 16K, +5.7 % at 32K; **lossy**: first-token KL mean 0.0019, max 0.0125; engine gates it at run time (compute capability >= 8, one SM per value head, shared memory) | not a gap against VANL 0.2.6 (it has no `GDN_TC`); a possible win of about 5 % of prefill | upstream commit message | hex-finish | fixing (code c5a8b7794, switch `LELEKA_PREFILL_GDN_TC`, experimental/lossy; parity, quality gate and section delta pending): sealed asset `gdn_prefill_tc.cu` (prep + scan, 99-KB split plan, two value tiles per head on the 5090), runs of >= 128 tokens on sm_120, scratch = the idle dequantization scratch (no extra VRAM); not bitwise by design, the gate is `docs/quality-gate.md` (first-token KL / q_tail_gate / logprob envelope); checks: ignored GPU test `gdn_tensor_core_scan_stays_within_the_gate_of_the_sequential_recurrence` (1e-4), then the quality gate, then section delta = `gdn` stage per chunk of the prefill profile at 4K/16K/32K; no speedup claimed FIRST GPU RESULTS (2026-11-10): parity PASS (readout 5-7e-8, state 1-4e-7, gate 1e-4, T up to 2048+, both tile plans); synthetic kernel time kh 4.049 ms to tensor-core 1.308 ms at 8192 tokens. Logit gate (job `prefill-gdn-tensor-core-logit-gate`, first run, arm I1 only: both processes failed to open arm I2 with `InputAllocation`/`HostAllocation` on the full holder, so there is NO A/A floor): against the shipped path on `night5-long-256k` (5 requests, 45k-243k prompts, 240 forced tokens each) d_top1 p99 0.2727 (limit 0.22), max 0.7405 (limit 0.43), argmax flips 47 of 1658 common rows = 2.83 % (limit 2.8 %): OUTSIDE the Original envelope, preliminary; TTFT of the five requests 63.97 s to 60.57 s (-3.4 s, -5.3 %, unpaired single run). Rerun with the A/A floor on the sparse holder queued. |
|
||||
| U2 | prefill: batched PLE post-ops (code `STRATA_PLE_BATCH`; upstream `78316c8df` 2026-11-02 turns it off for an engine built with CUDA 12.8 on cc 12.0: illegal memory access in `native_ple_postops_batch_snap`) | we run the PLE of a prompt chunk batched (`OriginalPromptDevice::apply_ple`, `ple_batch_ffi`, `ple_batch_queue`); our sealed PTX is ISA 9.2 = CUDA 13.2 and the deploy refuses a driver older than 595 (`docs/deploy.md`), the production RTX 5090 host runs driver 595.99 / CUDA 13.2 | upstream: with CUDA 13.0 the batch is ~23 % faster prompts, so only the 12.8 toolchain faults | same hazard does not apply (no 12.8 build exists in our chain); the batch is already on | source read | hex-finish | proved-equal (we have the fast path and not the faulting toolchain); no work |
|
||||
| U3 | prefill: MMQ row table over-read by the stream-k fixup (code `ids_identity`; upstream `f225844d1` 2026-11-05, class E correctness) | same structure: `ids_identity` is `T*K` entries exactly (`original_prefill_layout.rs:330`, `a.rows("ids_identity", t, K, 4)`), read by the same ggml `mul_mat_q_stream_k_fixup` (`mmq_original_formats_fixup.cu`); upstream needs `T*K + roundup(T, J) + J` entries (J = 8..128). It stays inside the arena today because `bounds_dev`, `grp_gu`, `grp_d` follow it in the same allocation, so the over-read lands in a neighbouring span and the skipped writes never use it | upstream faulted (Xid 31) when the exact table ended a 2 MiB page | latent: not a fault with the current layout, would become one if the order of the `Common` spans changes or `mmq_any` spans end the allocation | source read | hex-finish | fixing: margin `roundup(T, 128) + 128` entries added (`original_prefill_layout/mmq_identity.rs`, unit test of every readable index; always on, class E, no switch); identity (prompt logit digests equal) pending in the batched identity job |
|
||||
| U4 | verify: flag B stays behind queued copies (upstream `40849df0a` 2026-11-05, P1.1, class E) | `OriginalVerifyGpuPlan::raise_after_staging` (`plan_phases.rs`): a plan with a PCIe source queues the flag behind the staging copies on the copy stream even when the plan is empty (`stage_pcie`, then `raise_after_copies`), the copy-kernel mode and the no-source case raise at once. The upstream hazard (an empty plan raising the one counter early while an earlier layer's or the other token group's uploads are still queued) can only occur in the no-source branch if a window mixes groups with and without a source; not shown to happen | upstream: counter jumped past a layer whose bytes had not landed | unknown; needs the check in the file owned by the speed session | source read | device | proved-equal (speed session, 2026-11-09): flag B is a monotonic ring word; a group with a PCIe source raises it behind the staging copies, one without a source or with the copy kernel raises it from the host at once; groups are never mixed in the product (`pcie_num > 0` is fixed once per round, `decode_parts.rs:209`); pure function `flag_b_route(copy_kernel, has_source)` with a truth table added on their branch, behaviour unchanged |
|
||||
|
||||
Reference in New Issue
Block a user