Brings the Rust/CUDA port of the Strata mode17 serve path together with the
CPU/iGPU/NPU gpt-oss runtime that main gained meanwhile.
Control plane: the Qwen tokenizer is the implementation behind the Qwen35
variant of codec::TextCodec (qwen(), encode_prompt() widen the trait; QwenCodec
derefs to the tokenizer), so control-token marks, images, chat template, the
runtime backend and vision keep their behavior, while the gpt-oss/Harmony path
and the worker pool keep main's. Config carries the union of fields; extra_workers
is rejected together with runtime, lazy_load, idle_unload_s and vision; the
gpt-oss family refuses top_k/min_p/penalties (its GEN line has no such keys).
leleka-kar-codec takes f16_bits_to_f32 from leleka-quant-core (identical code).
Workspace members and default-members are the union of both sides.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- leleka-runtime: memory_governor glue (startup plan with refusal, KAR memfd lock/residency guard, VRAM check, load-ledger stages,
inventory classes), prefix budget from the governor (auto/explicit clamped), shed directive applied per request and per prefill chunk,
engine-side admission (503 memory_pressure text), page-cache release of the shards after the resident bank load, cgroup-aware
available_memory.
- backend-api: Backend::memory_report (default None) and ScriptedEngine support; proto Snapshot.memory_json; desktop-core runtime_rpc and
runtime-client carry it.
- control-plane: MemoryView, /v1/status `memory`, /metrics `memory`, 503 memory_pressure + Retry-After gate before queueing, engine-side
refusal text mapped to the same 503; tests incl. a 600-request model-free soak (threads/fds/RSS flat).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
RuntimeServer and the engine Proxy remembered every accepted request id for the life of
an epoch and refused work after 256 (generation_capacity), which an agent session
exhausts quickly. Both now use leleka_backend_api::RecentIds (16384 most recent ids, FIFO).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Six chain tests: streaming and JSON Responses, length/tool-call/stop-marker, client
disconnect cancelling through gRPC, engine failure and a dying engine ending with
response.failed, a restarted runtime flipping readiness and being reattached, and a test
that records the runtime's 256-generations-per-epoch limit.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
declarations_are_bounded_unique_and_closed_before_render still asserted that
temperature 0.4 is rejected, which cce4333 made valid. Assert acceptance of an
in-range value and rejection of an out-of-range one (2.5).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>