Files
leleka/scripts
Pavlo RatushnyiandClaude Sonnet 5.5 81137d53fc perf(prefill): ring expert copies as page-aligned supersets (LELEKA_PREFILL_ALIGNED_COPY, default on)
The CUPTI ledger shows the ring's three 0.5-0.9 MB expert pieces run at 36 GB/s while the Original's single blobs run at 49.5; pieces start at
expert*piece_bytes (arbitrary offsets) and the roofline probes measure 40.3 GB/s unaligned against 47.7 aligned. Each piece is now copied as the
4 KiB-aligned superset (clamped to the registered tensor) into page offsets of the ring slot (slot +24 KiB), and the gather kernel reads the three
pieces at their lead offsets; same bytes reach the MMQ slot. Not yet measured: job 9002 (hash gate + ABAB).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 02:54:57 +02:00
..