Commit Graph
699 Commits
Author SHA1 Message Date
Pavlo Ratushnyi 231ea009b7 Merge branch 'claude/upstream-sync' into claude/port-gpu-bringup
Rust port / port-fast (push) Failing after 9s
Rust port / port-typecheck (push) Failing after 8s
Rust port / port-oracles (push) Failing after 9s
Rust port / port-linux-tests (push) Failing after 16s
2026-10-25 12:49:38 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 92802d0053 docs: upstream provenance for 41cf05a0, local patch files, and the 2026-10-25 upstream digest
docs/upstream.md: new pin, pin history (both SHAs of the old pin), local patches as re-applied, conflict table,
left-out list, verification. docs/upstream/*.patch: the local patches on the old and the new pin.
docs/upstream-digest-2026-10-25.md: Qwen-path shortlist for the Rust runtime, KAR generality versus the
DeepSeek-V4.1 engine, the DeepSeek engine, new tools, compatibility, server build plan (not run).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:49:15 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 87e2633afe engine/strata: bring the Strata subtree to upstream 41cf05a0 (engine 0.1.50) with the local patches re-applied
Documented tree replacement (the history has no git-subtree metadata): 3-way merge of the old subtree
(570201a:engine/strata) against upstream 41cf05a06a25dd29103b7b27a2279a3f60c21876 (2026-10-25), merge base =
the old pin d9ab8435 (tree-identical to upstream 5b734e42; d9ab8435 is not an ancestor of upstream main).

Local patches re-applied by hand where they conflicted (15 files): STRATA_CUDA_STATIC profile, experimental KAR
experts and KAR PLE arms, keyless V-only arm (now beside upstream's K8V4 hybrid KV and fused norm+rope). Details,
conflict table and left-out files are in docs/upstream.md.

Left out (weights, captures, logs, media): new bench/results (2022 files), binary media and app assets (61),
docs/work/evidence (24), *.bin / *.gguf data files, and the 7 files the first import already left out.

scripts/build-cpu.sh: build the 11 CPU tests upstream registered since the old pin (they ran as "Not Run").
Checked: build-cpu.sh 16/16 ctest in WSL; sm_86 CUDA objects of the patched files compile, also with the KAR
macros on. No GPU run, no quality gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:49:15 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4d28f0a250 reconfigure: kv_resident is fixed per process and cpu_workers is 1..=15 (found by live job 9r1); reconfigure takes 7 s and waits for the request in flight
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:42:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 570201a0dc deploy: the rtx5090-32g profile uses the adaptive speculative window (spec_min_p 0): +5.1% decode on the live CRM replay
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 03:54:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 81fc8a7717 leleka reconfigure: change context, caches and resources of a running engine (CLI, docs)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 03:03:03 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 60b48d8225 runtime reconfiguration: reopen the serve stack with new context/cache/resource settings without reloading the model
serve_tuning (settings document, validation, effective settings), Command::Reconfigure in the Original serve loop with rollback,
Backend::reconfigure, gRPC Runtime.Reconfigure, POST /v1/reconfigure, telemetry.settings; tests for each layer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 03:01:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ff5b8d0ddf deploy: LELEKA_CHAIN is an allowed profile engine_env switch (fixes the profile validation after f96cdee)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 02:42:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f96cdeedc8 chain kernels: agreement at 70k context (rounding-level, inside the chunk-cut control) and enabled in the rtx5090-32g profile
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 02:42:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4a8047ac46 docs: AGENTS.md repository state and upstream provenance note reflect the port
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 02:32:37 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6bbf0eae11 prefix cache: LELEKA_PREFIX_RETENTION_S sets the session retention (diagnostic knob)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 02:31:20 +01:00
Pavlo Ratushnyi c3d4cce4e6 Merge branch 'claude/adaptive-spec' into claude/port-gpu-bringup
# Conflicts:
#	crates/leleka-runtime/src/backend_original_serve_replay.rs
#	crates/leleka-runtime/src/backend_original_serve_smoke.rs
#	crates/leleka-runtime/src/qwen_forward/original_spec_controller.rs
2026-10-25 02:51:11 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 c4b76a8009 deploy: the rtx5090-32g profile runs --prefix-cache-tail reply (slot-equivalent session resume)
Live Codex CRM: median prefill 2265 -> 706 ms, p90 3620 -> 1064 ms, decode unchanged; teacher-forced agreement
(job 9d4) is within the noise of a chunk-cut change (control 9d5). docs/prefix-cache.md has the numbers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 02:35:44 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 cf7a62e69d q_tail_gate: judge the tail arms against a chunk-cut control as well as the Original envelope
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 01:41:18 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 ba9474b9b0 replay: LELEKA_REPLAY_FORCE teacher-forces every request along its recorded tokens; scripts/quality/q_tail_gate.py compares the tail-checkpoint arms against the grid-only arm
Rust port / port-fast (push) Failing after 8s
Rust port / port-typecheck (push) Failing after 8s
Rust port / port-oracles (push) Failing after 14s
Rust port / port-linux-tests (push) Failing after 19s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 23:11:06 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 9e0914df26 gateway: an undeclared apply_patch function call runs through the declared shell tool instead of failing the stream
The model sometimes calls apply_patch as a function although Codex declares only exec_command/write_stdin; the stream
failed, Codex retried into the same call and the turn died (live job 9e1 after 6 requests).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 22:22:28 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 99409f1826 telemetry: the last finished request's figures stay visible while the next one runs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 21:36:38 +02:00
Pavlo Ratushnyi 897f2aa476 Merge branch 'claude/chain-kernels' into claude/port-gpu-bringup 2026-10-24 20:54:12 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 85185ecd00 normalize line endings of the files touched by the resource-preset and telemetry commits back to LF
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 20:54:11 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 07a540aa52 prefix cache: 60-minute session retention (wall-time expiry, oldest-idle displaced first), idle sweep; docs for telemetry and retention
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 20:02:09 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 08e2c78761 runtime telemetry: GPU load/VRAM (NVML), RAM, CPU cores, prefill/decode tok/s, cache hits, context
leleka-memory::telemetry (sampler + per-request records) -> Backend::telemetry_report -> Snapshot.telemetry_json
(gRPC) -> control plane /v1/status machine -> leleka status.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:58:28 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 b726c4615b deploy: resource presets fall back to the mapped (SSD/HDD) form when RAM cannot hold the pinned one
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:51:44 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 4e53d8474a deploy: resource presets (dedicated/workstation) computed from the host facts
leleka up --preset dedicated|workstation (env LELEKA_PRESET): CPU expert workers, host RAM floors and VRAM budget are
computed from cores, MemTotal/MemAvailable and free VRAM, printed, preflighted and baked into leleka.json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:46:25 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e0bd5edd8b deploy: rtx5090-32g profile carries the reference agent configuration
Expert tier auto-sized per layer from data/expert-profile.bin (shipped routing profile, default digest), spec_min_p 0.5 (new profile field -> --spec-min-p), 30 GiB GPU budget, memory reserve 2 GiB. Measured in the real Codex sessions (docs/e2e-run.md 7d): weighted decode 129-130 tok/s vs 72-75 with the old profile.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 11:04:58 +02:00
Pavlo Ratushnyi 1344cd807d Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-24 11:03:25 +02:00
Pavlo Ratushnyi b06de93dbc docs/e2e: complete reference-config Codex sessions (943d, 945d); run-codex.sh does not fail when the browser checks run elsewhere 2026-10-24 11:03:12 +02:00
Pavlo Ratushnyi 04b2b038b0 Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-24 06:47:48 +02:00
Pavlo Ratushnyi 73218c957e docs/e2e: diagnosis of the reference-config reruns and their partial numbers 2026-10-24 06:47:10 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e5924c1099 fix(runtime): scalar draft-KV fallback checks its weights against the retained MTP owner, not the MoE cache
With --mtp-rt-dir the retained MTP weights come from the RT bank, whose buffers are not the pinned pack's MoE-cache matrices, so the pointer
identity check of record_original_scalar_draft_kv always failed (InvalidProjectionShape -> CudaExecution -> response.failed) on every
prompt that takes the short-tail scalar fallback (first request of a Codex session; a resumed prefix with a tiny tail). Found by the reference-config
Codex reruns 943c/945c, which died on it; the first 23 requests of 945c decoded at 138.8 tok/s weighted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 05:08:48 +02:00
Pavlo Ratushnyi c73379efd7 chain: 'all' leaves qsa out; MTP keeps the Original chunk kernel 2026-10-24 03:07:58 +02:00
Pavlo Ratushnyi d3f6df9c28 Merge branch 'claude/prefill-overlap' into claude/port-gpu-bringup 2026-10-24 02:27:42 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 01bd477cef docs(prefill): aligned stream copies, deferred guards, 180k
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 02:27:24 +02:00
Pavlo Ratushnyi b46cfe6c3b Merge branch 'claude/decode-parity' into claude/port-gpu-bringup 2026-10-24 02:23:59 +02:00
Pavlo Ratushnyi 548b2083e6 chain: register-row GR down kernel in the plan, 8-column up default 2026-10-24 02:23:48 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 ce7eed156a chain: probe harness fixes (sync after uploads), trimmed GR down variants, QSA phase profile, vocabulary replay job, doc draft
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 02:22:37 +02:00
Pavlo Ratushnyi c667a2edd7 docs(adaptive-spec): wording 2026-10-24 02:20:42 +02:00
Pavlo Ratushnyi 9849cdb6ad docs(adaptive-spec): design, knobs, results 2026-10-24 02:20:36 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 beafc0a6bc spec: adaptive window is the default of the serve stack (LELEKA_SPEC_ADAPTIVE=off or LELEKA_SPEC=N selects the fixed window); default check job
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 02:20:02 +02:00
Pavlo Ratushnyi 65074758c9 docs: decode parity round 2 2026-10-24 02:03:29 +02:00
Pavlo Ratushnyi acabd3fc82 Merge branch 'claude/cp-latency' into claude/port-gpu-bringup 2026-10-24 02:00:07 +02:00
Pavlo RatushnyiandClaude 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 RatushnyiandClaude 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 RatushnyiandClaude 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 RatushnyiandClaude 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 RatushnyiandClaude 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 RatushnyiandClaude 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 RatushnyiandClaude 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