Pavlo RatushnyiandClaude Sonnet 5.5 7b04511b9a fix(serve): load the MTP drafter at the verify width, not at its own window width
generate.cpp rewrites o.spec to min(spec+2, 8) (generate.cpp:1535-1537) before mtp.load(..., o.spec, ...) (:2610), so the
drafter accepts every window the verifier runs (suffix drafts reach the verify width) while its chain stays capped by
set_max_drafts(S_mtp - 1). The Rust stack loaded it at settings.mtp_max_t (4): the first T=6 window made
OriginalMtpDrafter::draft_inner refuse (rows > max_t, mtp_original_full_drafter.rs, 2 us, InvalidQwenShape -> InvalidDimension).
OriginalServeSettings::mtp_load_t() (= max_t) now sizes the executor's scalar prefill, the shared layout and the actor.
max_drafts() stays 3.

The synthetic probe now runs the serve round shape (T=1 window+commit+draft, then T=6 with accepted_row 0..5, commit, draft
anchored at the previous speculative snapshot, max_drafts 3, coupled false): PROBE_MTP_MAX_T=4 reproduces the failure, the
default 6 passes for every accepted_row. Structural only; no numerical claim.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 03:48:47 +02:00

Leleka / Strata Next

Leleka is the independent Rust NVIDIA inference runtime being developed from this repository. The complete tracked Strata Next source tree was imported from paveldhq/strata-next commit 1263e88f8947b9796924eb7e8d8d7af08b589049; see docs/upstream.md for the pinned Strata engine provenance. The imported desktop application, Rust control plane, deployment code, model tooling, tests, and reference engine are all here.

The migration is staged: Leleka must eventually run without a Strata process, Strata source, Python, or a separately installed CUDA Toolkit on the target host. Until the replacement passes the same protocol, model-quality, and operational gates, Strata remains the behavior baseline. No model family or performance gain is claimed for Leleka until its real-model gates pass.

Repository layout

  • crates/backend-api/ — Leleka's versioned Rust backend contract.
  • crates/tokenizer/ — the Qwen35 byte-level BPE tokenizer extracted as a backend-independent Rust crate.
  • desktop/, desktop-core/ — current desktop application and its Rust core.
  • control-plane/ — current Rust API, Responses handling, and worker supervisor.
  • engine/strata/ — pinned upstream Strata reference; retained during migration.
  • gpu/ — experimental optimization components, including KAR.
  • integrations/, manifests/, deploy/, scripts/ — client integration, model profiles, packaging, and development/test tooling.
  • PROJECT_CHARTER.md, docs/ — requirements, provenance, decisions, and performance/quality gates.

Model weights, request captures, credentials, local logs, and generated build artifacts remain outside Git or under ignored paths.

Current Leleka scope

Leleka currently has a versioned backend contract and a standalone Qwen35 BPE tokenizer crate. The existing Rust control plane now consumes that shared tokenizer crate instead of maintaining a second copy; its oracle-parity tests remain in the workspace. Leleka still has no independent inference backend or CUDA integration, so this does not yet serve a model independently. The desktop app and the rest of the control plane remain available as migration source in this repository.

Development

Run the Rust workspace tests and lint:

cargo test --workspace --locked
cargo clippy --workspace --all-targets --all-features -- -D warnings

For the Linux release requirements, see PROJECT_CHARTER.md and the independent engine design.

S
Description
No description provided
Readme MIT
77 MiB
Languages
Rust 69.4%
Python 12.1%
Cuda 10.1%
Shell 4%
C++ 2.3%
Other 1.8%