Files
leleka/docs/experiments
Pavlo RatushnyiandClaude Sonnet 5.5 2e8bd2040a refill: batched lent-slot refill copies behind LELEKA_REFILL_BATCH (experimental, off)
- cuda-driver: optional cuMemcpyBatchAsync_v2 + cuStreamWaitEvent in AsyncApi (api/enabled/batch_copy.rs,
  stub answers can_batch() == false); pure call plan refill_batch_copy::plan_batch_calls (<= 512 copies per
  call, same order/bytes/destinations) and issue_copies with per-copy fallback after a refusal.
- OriginalExpertCache::fill_slots_queued_batched: same checks, pieces and order as fill_slot_queued_on, one
  context entry; batch on the fill stream ordered after the legacy default stream by fill_event; registered
  bank only; a refused call is reported once and the rest goes per copy; driver errors poison as before.
- engine: settings memory.refill_batch (LELEKA_REFILL_BATCH on|1) and refill_lent's batched branch;
  profile counters refill.batch_calls / refill.batch_copies / refill.per_copy.
- tests: host-side plan tests; #[ignore] GPU test comparing per-copy vs batched slot bytes.
- docs/experiments/refill-batch-copy.md. No GPU run, no speedup claimed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 20:49:32 +01:00
..