Commit Graph
609 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 1af2d4e2db perf(prefill): deferred guard status is on by default
Job 971 (ABBA, separate processes, 16,000 tokens, chunk 8192, stream + aligned copies): 4,349-4,363 -> 4,553-4,571 tok/s
(+4.8%); final residual R hashes of both chunks and the greedy ids are identical to the immediate guards.
LELEKA_PREFILL_DEFER_GUARDS=0 restores the immediate guards.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 00:04:26 +02:00
Pavlo Ratushnyi 1823923fba Merge branch 'claude/prefill-overlap' into claude/port-gpu-bringup 2026-10-23 21:07:52 +02:00
Pavlo Ratushnyi 889a5f96ce Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-23 20:22:04 +02:00
Pavlo Ratushnyi 4cbda5834c docs/e2e: reference-equivalent reruns and the draft-vocabulary finding 2026-10-23 20:21:47 +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 e08eab5fad feat(deploy,e2e): bind the MTP draft vocabulary (--mtp-rt-dir = the MTP pack) in the generated engine command, the e2e runner and the replay
The Original drafts over the 106k-row draft_vocab.bin of data/mtp-rt; the daemon default (rt_directory None) and the smokes drafted over
the full 248k-row head (+0.18 ms per draft step, ledger agent). Jobs 943b/945 ran without it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 19:42:01 +02:00
Pavlo Ratushnyi 725b7ba74e Merge branch 'claude/memory-safety' into claude/port-gpu-bringup 2026-10-23 19:40:02 +02:00
Pavlo Ratushnyi f51d2d2e8b docs+scripts(memory): leak soak jobs and offline slope fit (queued) 2026-10-23 19:39:39 +02:00
Pavlo Ratushnyi 0e9eab62f7 e2e: reference-equivalent Codex rerun jobs (943c/945c) and replay arms job 948 2026-10-23 19:30:23 +02:00
Pavlo Ratushnyi c9006e68cf Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-23 19:29:22 +02:00
Pavlo Ratushnyi 706020f44b docs/e2e: replay status 2026-10-23 19:28:56 +02:00
Pavlo Ratushnyi 7a96807351 docs/e2e: Codex session results, final binaries, trace tables; analyze_session attributes prefix lines to the next request 2026-10-23 17:38:40 +02:00
Pavlo Ratushnyi e70a05b9d1 docs(memory): job 914 results, CRM session analysis, leak jobs 2026-10-23 16:20:54 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 904ac58d3a fix(cuda-driver): fence the staged residual rows (cuStreamSynchronize(0)) before the draft graph reads them; budget: reserve 2 GiB, admit floor soft+reserve, resident fixed footprint measured, plan-vs-actual check; leak scenario, slope fit, heap stats
- stage_first_residual_direct: cuMemcpy D2D is ordered on the legacy stream only; the draft graph runs on a non-blocking stream. The copies are now followed by a legacy-stream
  synchronize (not a context synchronize). Model-free ordering tests.
- memory budget from the real Codex CRM session (e2e job 945): plan constant for the resident bank corrected (+1.1 GiB), reserve 2 GiB, prefix insertions stop at soft+reserve,
  note_post_load compares the plan with the host after the stack opened.
- smoke: leak scenario (30 s RSS anon/file/shmem, meminfo, VRAM, prefix store, mallinfo2) with OLS and Theil-Sen slopes; LELEKA_MEMORY_NO_TRIM A/B knob.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 16:17:44 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 242d54a503 perf(prefill): deferred guard status for the prompt producer's run (LELEKA_PREFILL_DEFER_GUARDS=1, experimental, default off): stream-ordered zero + DtoH into a pinned ring, cross-stream event ordering instead of the context drain, evaluated in order before results leave the device
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 16:14:53 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 cb843dd7b7 perf(prefill): page-aligned expert supersets in the chunk stream (merged with claude/ledger's ring change)
The stream entries carry the 4 KiB-aligned supersets, their slot offsets and the offsets of the exact pieces; the
gather reads the exact pieces at those offsets (same bytes reach the MMQ slot). LELEKA_PREFILL_ALIGNED_COPY=0 restores
the literal layout in both paths.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 16:14:46 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 775cfb1653 docs(quality): retrieval verdict, outlier row localised by the layer ladder, stop-set fix re-confirmed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 16:10:23 +02:00
Pavlo Ratushnyi a6be2e2106 Merge branch 'claude/ledger' into claude/prefill-overlap 2026-10-23 16:09:03 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 9c18bed1a1 Merge claude/port-gpu-bringup into claude/prefill-overlap
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 16:08:55 +02:00
Pavlo Ratushnyi 34436ac9c1 perf(prefill): the resident and device QSA attention paths launch the guards with the same full grid 2026-10-23 16:08:09 +02:00
Pavlo Ratushnyi 73e77f8225 Merge branch 'claude/port-gpu-bringup' into claude/e2e 2026-10-23 16:07:51 +02:00
Pavlo Ratushnyi c12685156e e2e: browser checker finds the cells by probing (perspective boards) 2026-10-23 16:07:51 +02:00
Pavlo Ratushnyi 4f7c4618d3 Merge branch 'claude/quality-gate' into claude/port-gpu-bringup 2026-10-18 05:30:48 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 f779694a77 docs: pointer from model-assets to the quality gate; pending jobs noted
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 05:30:29 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 71320722f2 chore: lockfile entry for leleka-memory after the merges
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 05:09:56 +02:00
Pavlo Ratushnyi 0790ba6ec9 Merge branch 'claude/memory-safety' into claude/port-gpu-bringup 2026-10-18 05:09:13 +02:00
Pavlo Ratushnyi 7b17d50bdc docs(memory): queued job 914 2026-10-18 05:08:21 +02:00
Pavlo Ratushnyi 8896b458b4 docs(memory): inventory, tests and laptop results; soak session length bounded by the context 2026-10-18 04:47:02 +02:00
Pavlo Ratushnyi 55fdf1635f Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-18 04:38:38 +02:00
Pavlo Ratushnyi 6389188d7a e2e: job 943b 2026-10-18 04:38:06 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 505f3ee70f fix(runtime): output cap 4096 -> 32768 (one shared constant); /v1/status omits a null prefix_cache
The Codex tic-tac-toe run (job 943) ended after 4 minutes: the model wrote the whole index.html in one tool call, hit the
runtime's 4096-token output cap three times (tool call unterminated -> response.failed 'tool parameter is incomplete', then
'incomplete: max_output_tokens' -> turn.failed -> Codex exit 1). The Original server has no such cap (max_tokens 0 = the rest
of the context). RuntimeServer, the engine request check, strata-next's runtime default, the leleka-deploy generated config
and the examples now use leleka_backend_api::MAX_OUTPUT_TOKENS = 32768. /v1/status keeps the Python server's key set when no
prefix cache exists (http_surface golden regressed with the prefix-cache merge).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 04:36:37 +02:00
Pavlo Ratushnyi 4f796d2d80 docs(memory): knobs and mapped-bank reserve 2026-10-18 04:08:27 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 f53d54d122 test(control-plane): http_surface golden ignores the Rust-only status keys prefix_cache and memory; docs results
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 04:04:37 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 82d7734dde test(memory): reader scenario decodes a fixed number of tokens and lasts until the reader has streamed its volume
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 03:57:43 +02:00
Pavlo Ratushnyi d20c2a67af chore(memory): shed2 job script 2026-10-18 03:55:05 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e345a7fe56 test(memory): shed smoke re-centres the floors before the recovery phase
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 03:50:33 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 cbb7b5392c test(quality): retrieval section of the analysis
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 03:27:03 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 faa572bd1e docs(quality): quality gate result, envelope, tolerances, verdicts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 03:26:37 +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 Ratushnyi 8b27cea0ff h2d probe: 16 GiB footprint 2026-10-18 03:20:56 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 052a2fcc22 feat(memory): reserve the hot part of a file-mapped expert bank out of the elastic budget; measured fixed-footprint constant
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 03:12:02 +02:00
Pavlo Ratushnyi 5ea6d3435a scripts/profile: load-time window for big traces 2026-10-18 03:00:53 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 d561af5f4a perf(prefill): QSA prompt guards launch a full grid (64 blocks left the GPU idle, 2.8 ms per layer)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 03:00:21 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 3319a7c10c feat(bank): expert_pieces_aligned helper for the chunk stream issuer
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 02:56:35 +02:00
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
Pavlo RatushnyiandClaude Sonnet 5.5 157887eed9 docs: LF endings, staging hazards, layer layout fix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 02:49:11 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 4effc72ad5 docs: roofline model (measured 5090 ceilings, per-step tables) and schedule design; microbench h2d2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 02:48:00 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 1255374c2a fix(memory): PSI only counts while available memory is below 3x the soft floor (a page-cache reader raised PSI full to 5.2% with 68 GiB free in job 910)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 02:42:00 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 aef32a0795 scripts/profile: ledger tools (report, port-vs-original ledger, h2d source probe, holder job scripts)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 02:39:25 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e4f4e1e9a9 fix(control-plane): chat completions keeps Retry-After on a memory_pressure 503; gate test covers chat and messages
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 02:35:27 +02:00