Pavlo Ratushnyi
acabd3fc82
Merge branch 'claude/cp-latency' into claude/port-gpu-bringup
2026-10-24 02:00:07 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
254425d4b0
cp-latency: results and method (docs/cp-latency.md), run-ab.sh, replay --store
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:59:27 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
e820b95556
cp-latency: tokenizer kill switches (LELEKA_TOKENIZER_REFERENCE, LELEKA_TOKENIZER_SEGMENT_CACHE_MIB), prompt-text pass-through test, drop dead tokenizer fields
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:49:38 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
ea80310017
cp-latency: schema-validation memo, live A/B client and report, live job 9f1 (real engine, baseline and current API servers on one engine)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:45:54 +02:00
Pavlo Ratushnyi
88f74a323d
Merge branch 'claude/deploy' into claude/port-gpu-bringup
2026-10-24 01:44:35 +02:00
Pavlo Ratushnyi
1ec61fd548
Merge branch 'claude/ttft' into claude/port-gpu-bringup
2026-10-24 01:41:08 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
ccfcbcfa97
docs: fix a reference
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:38:23 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
0003ef7d7b
scripts: startup profile job templates
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:38:19 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
681a2d193d
docs(deploy): startup profile jobs
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:38:12 +02:00
Pavlo Ratushnyi
0f2596b8b7
Merge branch 'claude/prefill-overlap' into claude/port-gpu-bringup
2026-10-24 01:37:29 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
0fe1c0298c
docs(deploy): fast restarts - phases, changes, stamp rules, laptop numbers
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:36:11 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
0de8d9e0e2
perf(startup): hash the shards while the supervisor fills the sealed memfd
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:35:08 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
53ef34675d
test(deploy): leleka verify runs the engine in rehash mode and reports failure
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:32:14 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
6bbb26f67a
cp-latency: native chat rendering for text conversations (verified against the template), log writes off the response path, replay --verify (captured Codex prompt ids)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:30:26 +02:00
Pavlo Ratushnyi
fd182ef8f4
Merge branch 'claude/port-gpu-bringup' into claude/ledger
2026-10-24 01:28:20 +02:00
Pavlo Ratushnyi
a1e6d2e2ba
docs/ledger.md: wording
2026-10-24 01:28:15 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
739d5b638e
docs: request-end checkpoints (--prefix-cache-tail)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:28:14 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
f96074c360
perf(startup): verify shards and archive in parallel with read-ahead, verification stamps, attested sealed archive, parallel memfd fill, leleka verify
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:28:11 +02:00
Pavlo Ratushnyi
beb5ca4b94
docs/ledger.md: decode ledger (static regime, draft vocabulary, per-round table)
2026-10-24 01:28:09 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
2ce4ae13e6
feat: request-end prefix checkpoints (tail nodes) and TTFT stage marks
...
A hit on a 2048-token grid node makes the agent's next turn re-read the part
block, the whole reply and the new tokens (~2.2k tokens per turn). Add tail
nodes: a checkpoint at the exact end of the previous request (end of the
prefill, or of the decode), a private partial block on top of the grid blocks.
--prefix-cache-tail off|prompt|reply (default off; reply is experimental).
Also per-request TTFT marks (resume, prefill, assemble, first round), a replay
multi-arm mode with per-arm greedy ids, and a short-suffix cost sweep.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:18:25 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
cceb4b4032
perf(startup): phase timing lines (leleka-load-time) and leleka-inference --verify-only
...
Always-on one-line phase timings for a model load and a CPU-only verification mode that
runs the load-time source verification (shards, KAR archive) with no CUDA. Baseline for
the startup work: no behaviour change.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:14:06 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
95340330ac
cp-latency: fast tokenizer (scanner + id BPE + segment cache), pass the prompt text through, TCP_NODELAY on the runtime gRPC server, gRPC replay example
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:13:50 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
dbf487b207
cp-latency: env-gated stage spans on the host request path, offline session synthesizer, instant-engine replay driver (baseline for the host-side latency work)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 01:04:49 +02:00
Pavlo Ratushnyi
ecffc71f4b
Merge branch 'claude/memory-safety' into claude/port-gpu-bringup
2026-10-24 01:04:44 +02:00
Pavlo Ratushnyi
86731ba000
docs(memory): RSS evidence from the e2e sessions (945, 943b), soak deferred by the coordinator; offline fit script
2026-10-24 01:04:28 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
cfe0a02312
docs/laptop-profile: state of the laptop work (OEM vs Turbo, incident, A0 numbers, recommended config, open list); watchdog rule narrowed to the OEM signature
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 00:26:05 +02:00
Pavlo Ratushnyi and Claude Sonnet 5.5
3bed06d185
docs/roofline: laptop ceilings in Turbo mode vs the OEM 30 W profile; guarded runner can wrap any GPU job
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 00:13:42 +02:00
Pavlo Ratushnyi
b1ab82b3d7
jobs 9005: stream-mode trace
2026-10-24 00:11:34 +02:00
Pavlo Ratushnyi and Claude 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 and Claude Sonnet 5.5
c5f46697cb
laptop: parameterised bench harness (sequence/soak/prefix knobs), guarded run script with GPU-state preflight and 1 Hz watchdog, long-prompt generator
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-24 00:02:04 +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 Ratushnyi and Claude 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 Ratushnyi and Claude 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
3118c5ec0d
docs/ledger.md: prefill ledger, tools, probe, fixes; lct_decode.py
2026-10-23 19:38:11 +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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi
eb9470545f
scripts/profile: window loader fixes, jobs 9003/9004/9062
2026-10-23 16:13:53 +02:00
Pavlo Ratushnyi
2bdf57a853
Merge branch 'claude/port-gpu-bringup' into claude/ledger
2026-10-23 16:13:46 +02:00
Pavlo Ratushnyi and Claude 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
22085505a2
cupti-trace: finish a window that is open at process exit (leak the state, wait for the watcher)
2026-10-23 16:09:57 +02:00