Commit Graph
35 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 02c578e24d kar-off-ab: quality job, queue stubs, deploy.md row for rtx5090-32g-gguf-ple
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 10:35:01 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 98f725f9c5 release 5090: deploy.md back to LF, acceptance job copies the provenance file, notes: no self-referential TBD markers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:00:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ff1ad3aea1 release 5090 v0.1 phase B: README, short release notes, profile/deploy text fixes, packager for the merged state
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 22:31:10 +01:00
Pavlo Ratushnyi 5304e5f35d docs: sparse memfd status, census, deploy profile row 2026-11-02 23:00:43 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5f1822d5eb Merge main (embedded expert profile) into single-copy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 22:17:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 48a3811c89 Merge claude/unattended into single-copy (O_DIRECT bulk reads for the sealed copy, extents sealed through the same reader)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:53:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 eddb78e6e0 deploy: embed the upstream expert profile in leleka; first start installs it offline
The owner asked to ship the 196,632-byte table instead of depending on a download.

* crates/deploy/data/expert-profile.bin: Strata data/expert-profile.bin unchanged (MIT, sha256 8f59b4aa...388975baf), the one
  *.bin exception in .gitignore (every other *.bin stays ignored); .gitattributes pins it `-text binary` so no platform can
  alter the bytes. crates/deploy/data/expert-profile.NOTICE carries the Strata MIT notice and provenance.
* expert_profile.rs: `include_bytes!` of the table; provisioning order is --expert-profile-file, the embedded bytes, then the
  https download as fallback. The embedded bytes are digest-checked before the atomic install like any other source, and only
  offered to a profile that pins the same digest. The plan shows "install the ... table embedded in this binary (no network
  needed)" even with --no-fetch and without curl/wget.
* digest verification, status/verify/summary ON/OFF reporting and --no-expert-tier are unchanged.
* attribution: docs/release licence audit (Strata row), docs/deploy.md, docs/windows.md, docs/upstream.md, and the 5090
  packager ships the NOTICE as licenses/strata-expert-profile-NOTICE.txt.
* tests: embedded == pinned file, offline install before any download, explicit file wins, a corrupted embedded copy falls
  back to the download, plan states, e2e first start with no network tool.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:52:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 97ceb120a9 Merge claude/kar-file-source into single-copy (conflicts resolved: sparse + file source coexist)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:50:41 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 957196fddb deploy: provision the ranked expert profile on first start (leleka up), report the expert tier ON/OFF
data/expert-profile.bin (upstream Strata routing table, sha256 8f59b4aa...388975baf, 196,632 B) is not in Git, so a new
user silently lost the VRAM expert tier. It is a routing statistic of the model, not derivable from the weights, and a
locally generated table changes expert placement (docs/original-serve.md control: 0/6 identical outputs, 43 flips in 1,660
rows), so the product pins the upstream bytes.

* new step `expert-profile` in `leleka up`, planned before the large downloads: https download (curl/wget, https only,
  1 MiB cap) from the Strata commit 41cf05a0 (raw.githubusercontent.com, then jsDelivr, then the old pin d9ab8435), sha256
  checked, installed by rename; any other digest fails closed with both ways out. A wrong file in the way is moved aside
  (.rejected-<unix>), never deleted.
* `--expert-profile-file PATH` (offline install, same digest required, forwarded through the WSL bridge) and
  `--no-expert-tier` (explicit opt-out, persisted as `expert_tier: false` in leleka.json only when set).
* the configuration names the table whenever the tier is intended; the supervisor re-checks the digest at every engine
  start, logs ON/OFF and drops the switches when the file is gone or changed.
* `leleka status` (also through the WSL bridge), `verify` (fails when the configured table is missing or wrong), the ready
  summary, preflight and `doctor` report `expert tier ON (path sha256 ...)` or `WARNING expert tier OFF: reason`.
* tests: provisioning (download, fallback source, mismatch, offline file, moved aside, no source), plan states, gather env,
  cli flags, preflight, report/start environment, e2e flow with a fixture-digest profile; ignored live tests against the
  pinned sources. Flow tests that are not about the tier now run with the tier off on purpose.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:48:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 2ca7e86d72 Owner install artifacts and docs/unattended.md: systemd install script, lab mode, exact owner steps
scripts/ops/install-leleka-service.sh (owner runs it with sudo; nothing here was run by an agent):
  --install [--no-start] [--force]   copies scripts/ops/leleka.service to /etc/systemd/system, daemon-reload, enable, start; refuses when the
                                     state is not prepared, a binary is missing, the user para does not exist, or the lab KAR holder runs
  --remove                           stop, disable, remove the unit (state, logs, models untouched)
  --status                           unprivileged: systemd state, lab mode, the supervisor's status.json (phase, uptime, restarts and reason, health), log tail
  --lab on|off                       STATE/lab-mode: the unit (ConditionPathExists=!) stays down while the GPU belongs to the lab queue

docs/unattended.md: what runs, the exact owner steps (prepare with `leleka up --mode none`, install, use, look, update), lab mode, the fast cold
load (problem, change, measurements), the supervision table (what happens for every failure), logs and disk, security defaults, the soak test
(harness, criteria, the multi-day command), open items. docs/deploy.md section 6 follows the new restart, log and status behaviour.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:13:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c864204e45 KAR file source for the 5090: startup read report, per-read identity check, profile rtx5090-32g-file, A/B script
* model-format: VerifiedKarPleArtifact records how the archive was vouched for (full pass / stamp / attested memfd) and what start-up read
  (KarStartupRead); an ordinary archive file keeps the device/inode/size/mtime/ctime it was verified in and every row read compares the open file
  with it (one fstat, the length check already did it); LELEKA_KAR_IDENTITY_RECHECK=off disables. Sealed memfds are unchanged.
* leleka-runtime: one engine log line per load, leleka-kar-startup source=.. verify=.. total_read_bytes=..
* deploy: built-in experimental profile rtx5090-32g-file (kar_source file, resident bank, explicit 6144 MiB prefix cache, never auto-selected);
  the resource planner charges a file archive with a resident bank the engine only.
* scripts: run-e2e.sh accepts E2E_KAR_FILE / E2E_ASSETS; scripts/e2e/decode/kar-file-ab.sh is the paired memfd vs file A/B (not run).
* docs/kar-file-source.md: what the file form reads, guarantees, risks with the measured random-read figures, the A/B command.

Not a performance claim: nothing was run on a GPU.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 15:11:06 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5e4c9c9530 models: all model paths point into the work folder (models/leleka-gates, models/deepseek-v41-flash)
Rewrite the 5090 server model paths in 30 repo files (scripts, tools, docs) from the old
locations (/home/para/leleka-gates, $HOME/leleka-gates, /data/models) to
/home/para/work/leleka/models/..., add the AGENTS.md workspace rule and the move record
docs/experiments/models-move.md. Not merged: the smoke test is pending.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 19:12:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b63a91b2fa deploy: rtx5090-32g gpu_budget_bytes 30 GiB -> 32,819,404,800 (31,299 MiB) so the dense-slab slot gain reaches the product
Needed for the slot gain: the slabs save physical bytes the Context never charged, so the
budget must rise by about that much. Smoke with this budget: ~11,568 slots, lowest free VRAM
1,035 MiB. Also the systemd unit template, the config and reconfigure tests, and the docs.
Preflight now needs 31,299 MiB free at start (was 30,720; idle 5090 reports 32,110).
Revert by restoring 32212254720. Owner confirmation required before merge.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 11:59:55 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 66cc34f850 rtx5090-32g profile: prefill chunk and prefix-cache grid 8192 by default
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-fast (push) Failing after 16s
Rust port / port-typecheck (push) Failing after 19s
Linux / verify (push) Failing after 33s
Linux / keyless-cuda (push) Skipped
Linux / static-cuda-package (push) Skipped
Linux / hosted-cuda-package (push) Skipped
Linux / linux-static-cli (push) Skipped
Linux / linux-cli-container (push) Skipped
Linux / release-cli (push) Skipped
Rust port / port-oracles (push) Failing after 24s
Rust port / port-linux-tests (push) Failing after 28s
The shipped profile left both at 2048. Paired 256k session on the 5090 (same text, 5 turns): TTFT sum 131 s at 2048, 55-60 s at 8192
(night5 / night6 / rest-full / tune-A), decode unchanged. Tests and docs follow the new default.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 23:44:13 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 07b1fdfc0b deploy planner: the resident expert copy (53.5 GiB) and the governor reserve count against the free-RAM target; the workstation preset is not reachable in the resident form on a 121 GiB host (live check plat-reconf-live)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 15:47:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5efa590886 deploy planner: 15 CPU workers (the pool's limit) and a 2 GiB workstation VRAM margin, from the measured cost of the preset (job 9p0)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 15:33:14 +01:00
Pavlo Ratushnyi e64a3da1b7 Merge branch 'claude/platform' into claude/port-gpu-bringup
# Conflicts:
#	crates/deploy/src/app.rs
#	crates/deploy/src/cli.rs
2026-10-25 14:06:50 +01:00
Pavlo Ratushnyi 4965126d14 Merge branch 'claude/windows' into claude/port-gpu-bringup
Rust port / port-fast (push) Failing after 10s
Rust port / port-typecheck (push) Failing after 10s
Rust port / port-oracles (push) Failing after 16s
Rust port / port-linux-tests (push) Failing after 22s
2026-10-25 13:15:34 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5a2c5cdb6b docs/windows.md: build, model files, the WSL2 bridge and the native route, telemetry, reconfigure, limits
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 13:15:08 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 27d070162d docs: telemetry GPU fallback and request block; clippy: collapse a let-chain
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:42:59 +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 ee1717e2f7 leleka reconfigure: --persist, and --gpu-budget-gib/--preset by restarting only the engine under the supervisor
The CLI hands budget and preset changes to the supervisor through a request file; the supervisor checks them with the resource planner twice (before and after stopping the engine), restarts the engine with the sealed archive descriptor it holds, keeps the gateway and API processes and ports, and restores the previous settings when the planner or the new engine refuses. --persist writes the result into leleka.json (and strata.json for the context). leleka.json now records the profile before the preset changed it so that dedicated undoes workstation.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:29:39 +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 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 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 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 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
Pavlo RatushnyiandClaude Sonnet 5.5 0af0bfaed4 feat(memory): return evicted heap to the OS after a shed, planned-vs-measured column in the inventory table, docs draft
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 01:57:55 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 71a4f95991 docs: map deploy.md to charter goal G2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 15:41:19 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 3c1d75ec37 docs: deploy.md results, findings and open items
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 15:38:47 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 b9fb5d0160 test(deploy): fake engine reports a refused load on its own stderr; summary hint for user units; ignore dist/
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 15:35:42 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e03d97dd86 fix(runtime): production Original Load admits the routed-expert bank; deploy: operation polling, expert-source profile field
The Original serve Load never admitted an expert source (the serve smokes call
load_resident_expert_source themselves), so the stack's prompt arena failed with
InputRead on the first real Load through leleka-inference. leleka-inference gains
--expert-source resident|mapped; backend.rs admits the chosen bank before the
driver. leleka up passes it per profile and the supervisor stops waiting when the
load operation is FAILED/INDETERMINATE.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 15:18:02 +02:00