Commit Graph
26 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 fcb4f02ba9 deploy: RTX 5090 profile sets LELEKA_ORIGINAL_SERVE_SEED=off (placement class, owner confirmation required)
Seed OFF is a profile setting only: the engine default (seed on) and the laptop profile are unchanged. Placement-class change, NOT bit-identical; it does not fit the strict Original
envelope (p99 <= 0.22, max <= 0.43) and neither does the control; it meets the relative criterion on 1,717 teacher-forced rows (p99 0.2500 vs control 0.2278, max 0.7567 vs 0.6751,
flips 2.10 % vs 2.59 %; limits 1.5x control and 2.8 %). Gain: 108.1 -> 137.2 tok/s decode over turns 1-4 of the frozen 245k session (3 runs per arm). Revert: remove the key or set
LELEKA_ORIGINAL_SERVE_SEED=on in the operator environment. Test: only_the_server_profile_turns_the_prompt_routing_seed_off; leleka-deploy tests 125 passed in WSL.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:09:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 359b4b5a6a residency: the seed row cap is an experimental setting, not a default (orchestrator: placement-class change, no quality gate yet)
LELEKA_ORIGINAL_SERVE_SEED_MAX_ROWS stays available (default 0 = no cap, behaviour unchanged); the earlier commit's default of 4096 is removed and the docs say so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 02:10:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5ef2c6eb7a residency: no prompt-routing seed for a prefill that routed more than 4096 rows (LELEKA_ORIGINAL_SERVE_SEED_MAX_ROWS, 0 = no cap)
At 45k-247k prompt tokens the seed (default on, keep 0) replaced the ranked profile's resident set by the prompt's top experts and cost 25-35 % of decode on the frozen
245k session: VRAM share 80-85 % against 93-96 % with the seed off, windows 0-20 serving ~240 CPU + ~245 PCIe experts against 23-79 + 13-60, 17.5-20 against 13.4-15.4 ms per round,
107-110 against 132-149 tok/s (turns 1-4; one run each, bin-e2e4, upstream profile). Behaviour for prompts up to 4096 routed rows is unchanged. Placement-only; greedy ids can differ (GPU/CPU rounding).
Not yet measured with this binary; the paired evidence is the env switch run of the same code path.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 02:08:26 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8af18396b8 feat(prefix-cache): pool protocol (summary through runtime gRPC, /v1/status, /v1/prefix_match), --prefix-cache-mib/--prefix-cache-block, laptop profile in the smoke, docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 19:47:53 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 d70c1d8dca docs(serve): seed replicate on the merged base
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 15:26:49 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 6e96c497a1 docs(serve): residency seeded from the prompt's routing (first-request A/B on the 5090 and the 3080 laptop)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 12:17:07 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 1bd72a1a85 docs(serve): job 809, the unmodified Original on the port's corpus
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 08:51:58 +02:00
Pavlo RatushnyiandClaude Opus 5.5 7a113d1406 docs(serve): expert residency record (job 805: placeholder profile, static vs adaptive)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 01:56:37 +02:00
Pavlo RatushnyiandClaude Opus 5.5 858f42001e docs(serve): job 804 record (shared window modules, reverted executable reuse)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 00:13:51 +02:00
Pavlo RatushnyiandClaude Opus 5.5 a9f67649ee fix(serve): default --pcie-frac 0.55 only over a pinned expert bank
The 0.55 default (3e8e10e) also applied to the laptop's pageable low-RAM
mapped bank, whose PCIe share is DMA'd from pageable pages (the copy kernel
needs aliases): the coordinator's 3080 runs decoded at 6.66 tok/s against
~10-12 with 0. Unset, the share is now 0 for a pageable bank and 0.55 for a
registered one; an operator's LELEKA_ORIGINAL_SERVE_PCIE_FRAC applies as given.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 00:01:47 +02:00
Pavlo RatushnyiandClaude Opus 5.5 cdf284c9c3 docs(serve): round-overhead A/B record (jobs 800-803)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:56:41 +02:00
Pavlo RatushnyiandClaude Opus 5.5 3e8e10ed5f perf(serve): default --pcie-frac to the Original's 0.55 with the copy kernel
Job 802 (RTX 5090, paired a/b/b/a, one binary, copy-kernel staging, expert
tier on, 6 prompts x 2 passes x 128 tokens): pcie_frac 0 decodes at 41.9 /
42.7 tok/s mean, 0.55 at 62.2 / 63.6 (+48%), TTFT unchanged (1214/1209 vs
1212/1207 ms). Placement differs between the two (PCIe experts run on the
GPU, which rounds differently from the CPU pool), so outputs differ as
documented for the tier; the tier itself stays opt-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 19:20:53 +02:00
Pavlo Ratushnyi 8b544a7c5f Merge branch 'claude/port-gpu-bringup' into claude/round-overhead
# Conflicts:
#	crates/leleka-runtime/src/qwen_forward/original_serve_host.rs
#	crates/leleka-runtime/src/qwen_forward/original_serve_residency.rs
#	docs/original-serve.md
2026-10-16 19:19:48 +02:00
Pavlo RatushnyiandClaude Opus 5.5 219e32a211 diag(serve): profile graph capture vs instantiate time of the verifier and the MTP drafter
capture_owned sums its host time (capture, then instantiate + upload) per thread;
the serve profile reports record.capture/record.instantiate for the window and
commit graphs and mtp.capture/mtp.instantiate for the drafter's per-request
round programs. Docs: the verified-window publication order, the per-request
verifier analysis and the PCIe copy kernel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 17:40:17 +02:00
Pavlo RatushnyiandClaude Opus 5.5 d9313a95d3 test(driver): device proof of the PCIe span copy (staging layout and ptr2 rebase)
Root-only (LELEKA_VERIFY_WINDOW_GPU=yes): verify_fetch_spans_kernel and
verify_rebase_ptrs_kernel with pcie_stage's launch geometry stage five
experts' gate/up/down spans into staging slots exactly as the DMA path lays
them out and point ptr2[q] at each slot, leaving later table entries alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 16:27:26 +02:00
Pavlo RatushnyiandClaude Opus 5.5 75930fb8a1 docs(serve): conversation cache on by default; coverage (jobs 412/413) and the chunking finding
Resumed requests are token-identical to reads that cut the same prefill chunks;
different chunks (a resume point, a root boundary only cut from 0, cache on vs off)
can flip a near tie, as in the Original. The stack is deterministic within and across
processes for identical inputs and chunks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 15:08:22 +02:00
Pavlo RatushnyiandClaude Opus 5.5 e6d3d09a99 docs(serve): conversation cache real-model run (job 411)
Cache off and on, same requests: the resumed chat B (reused 2297 of 2364) produced
the same 38 greedy tokens as B read from 0; TTFT 1645.6 ms vs 10330.8 ms; a new chat
sharing the system prompt resumed from the root checkpoint (reused 2286, TTFT
983.3 ms). One sample per cell; the cache stays off by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 12:55:09 +02:00
Pavlo RatushnyiandClaude Opus 5.5 88baa91c2f merge: claude/port-gpu-bringup (kv streaming, conversation cache, sm86) into claude/expert-residency
The stack keeps every behaviour: KV format/resident config, conversation resume
with periodic/turn/root checkpoints after each published chunk, and the expert
tier. prefill_phase waits the swaps in flight, runs the conversation-aware
chunk loop (prefill_actions), and refills every lent slot on every exit path;
prefill_chunk borrows the cache's last slots for that chunk only (so the
conversation checkpoints between chunks see the whole stack) or uses the
stack's own buffers. Backend wiring keeps kv/kv_resident/conversation and the
expert tier; the driver keeps the sm86 and expert-tier-probe features; the
smoke keeps the LELEKA_SMOKE_REPEAT timing loop and adds the tier report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 11:04:46 +02:00
Pavlo RatushnyiandClaude Opus 5.5 9ea8e88529 merge: claude/conversation-cache into the bring-up branch (with claude/kv-streaming)
Conflicts resolved by keeping both features: StackConfig/OriginalServeOptions carry kv_format/kv_resident and the
conversation config; leleka-inference accepts --kv/--kv-resident and --prompt-cache/--prompt-cache-every/
--prompt-cache-root/--turn-token (fixed a lost offset increment after --kv-resident in the merged parser); the smoke file keeps
both the long-context KV test and the conversation-cache test; the ensure_resolver test follows the 5-tuple
window_kv_addresses of the KV branch. Workspace type-checks (WSL, --all-targets).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:58:39 +02:00
Pavlo RatushnyiandClaude Opus 5.5 d064b9d89e docs: the Original serve stack's VRAM expert tier, switches, deviations and proofs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:54:46 +02:00
Pavlo RatushnyiandClaude Opus 5.5 a9b5fd4df0 test(serve): real-model conversation smoke; docs for the conversation cache
original_serve_conversation_smoke (ignored, real model): a one-token first request,
chat A, chat B = A + reply + a new turn resumed from the cache vs the same B read
from 0 (equal greedy tokens asserted, TTFT printed), then a new chat sharing the
system prompt (root checkpoint). docs/original-serve.md describes the cache, its
limits (no parking, live continuation only with the ring in step) and the run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:54:20 +02:00
Pavlo RatushnyiandClaude Opus 5.5 6bfb44fab9 docs(kv): KV storage and streaming port, selection, proofs and the long-context job
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:50:59 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 6d3ad69d3d docs: sealed with nvcc 13.2.86 on 2026-10-15, GPU load verified separately, no numerical claim
Rust port / port-fast (push) Failing after 7s
Rust port / port-typecheck (push) Failing after 7s
Rust port / port-oracles (push) Failing after 10s
Rust port / port-linux-tests (push) Failing after 22s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 07:26:47 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 81f38cf4c3 docs(serve): record why the conversation cache is not bound to the Original serve stack
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 16:42:43 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 f329f2790a merge claude/port-main into claude/port-serve-host; attach the window weight families
Resolves the window-producer and experimental-modes merges. The verifier
assembly now attaches the native projections, hyper-connection/PLE, QSA and
router/shared-expert operands (borrowed from the dense and MoE caches) to every
window graph and the commit graph; the asset probe also lists the unsealed
window kernels; auto selection refuses a configuration with an experimental mode.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 16:38:57 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 d69288c06f feat(serve): adopt rolled-back QSA witnesses, Original serve docs and GPU smoke
The resident layers mint a fresh witness per roll-back; the session adopts
those objects so a layer and the session name one witness. Adds the opt-in
GPU smoke and docs/original-serve.md, and updates the stale claims in the
port-gaps ledger and the sampler/rope notes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 16:25:05 +02:00