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>
The Codex tic-tac-toe run (job 943) ended after 4 minutes: the model wrote the whole index.html in one tool call, hit the
runtime's 4096-token output cap three times (tool call unterminated -> response.failed 'tool parameter is incomplete', then
'incomplete: max_output_tokens' -> turn.failed -> Codex exit 1). The Original server has no such cap (max_tokens 0 = the rest
of the context). RuntimeServer, the engine request check, strata-next's runtime default, the leleka-deploy generated config
and the examples now use leleka_backend_api::MAX_OUTPUT_TOKENS = 32768. /v1/status keeps the Python server's key set when no
prefix cache exists (http_surface golden regressed with the prefix-cache merge).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The CUPTI ledger shows the ring's three 0.5-0.9 MB expert pieces run at 36 GB/s while the Original's single blobs run at 49.5; pieces start at
expert*piece_bytes (arbitrary offsets) and the roofline probes measure 40.3 GB/s unaligned against 47.7 aligned. Each piece is now copied as the
4 KiB-aligned superset (clamped to the registered tensor) into page offsets of the ring slot (slot +24 KiB), and the gather kernel reads the three
pieces at their lead offsets; same bytes reach the MMQ slot. Not yet measured: job 9002 (hash gate + ABAB).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
generate.cpp stops on {248044, 248046}; the GGUF eos_token_id is only 248046, so the port ran on
past an <|endoftext|> (up to max_new, emitting <|im_start|> loops). The stop set is now the model's EOS
plus <|endoftext|> in the serve backend, the smokes and the laptop probe.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- guard_archive maps a private read-only reopen of the descriptor (a write-sealed memfd refuses a shared mapping that could become writable on
kernels up to 5.15); the residency read runs on its own thread; the sampler survives a panic and a stale level is re-evaluated by the
requests themselves; cgroup v1 memory controller limits (WSL2 hybrid, old container hosts) are honoured.
- examples/swap_ab + scripts/memory/swap_ab.sh: A/B (unlocked, heal, mlock) of the memfd under real pressure fenced into one cgroup.
- Miri: procfs/host/plan/pressure/inventory/census/ledger/governor run clean (61 tests).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The host-to-device copy engine is a FIFO: with hundreds of expert copies queued ahead every small
upload or status readback of the compute path waited for the whole queue. A helper thread now keeps
LELEKA_PREFILL_DEPTH (16) entries outstanding on the copy stream (event-query paced) while the
compute thread only waits for an entry's enqueue before ordering its stream after it. The inline
mode stays (LELEKA_PREFILL_ISSUER=inline). Adds the copy-engine contention probe.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
reasoning_budget_tokens, strata_tune, experimental_speed_projection and sampling finer than the
text contract's fixed point were queued and then refused as 502 generation_failed; the HTTP layer
now answers 400 unsupported_request_field / invalid_sampling_precision for a text-level engine.
Every failed generation logs its client-visible message; STRATA_DEBUG_FAILED_OUTPUT=1 also logs
the generated text of a failed tool turn (operator debugging only).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A prompt that cannot fit the context, or max_output_tokens above the runtime cap, used to be
queued and refused by the worker as 502 generation_failed (SSE: response.failed after a 200),
which clients retry. Now 400 context_length_exceeded / invalid_output_limit before queueing.
The default output budget (context - prompt) ignored the engine's 8-token margin and failed for
prompts near the context; it now leaves the margin. Merge of claude/port-gpu-bringup 0b0d128:
the duplicate expert-source load of this branch is dropped in favour of the integrated one.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
leleka-inference --backend-mode original failed at Load with
'MoeWeightCache::new_original_prompt_arena: InputRead': only the optimized (experimental)
path called load_resident_expert_source, the Original path assumed the serve smoke had done it.
Load it for the Original path (RAM-resident; LELEKA_ORIGINAL_SERVE_EXPERT_SOURCE=mapped selects
the low-RAM mapping). run-e2e.sh fails fast on a leleka-load failure.
Found by the first stack run on the RTX 5090 (job 940); verified by job 941.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>