Profile field memfd_extents: ple_only (needs kar_source memfd and an explicit prefix_cache_mib; default full, not serialized). The sealed memfd keeps the archive's length and file offsets but holds only the ~16 GB the serve path reads (PLE rows, header, directory, books); everything else is a hole, so readers need no change. - deploy: sealed::seal_extents (parallel copy restricted to the extents, holes elsewhere, same seals; st_blocks test), leleka seal-exec [--sparse-ple] (Rust form of leleka-seal-exec for A/B runs outside leleka run), supervisor seals sparse, passes --kar-sparse-extents-sha256 to every engine, never attests or stamps the archive from a sparse copy, refuses to start without a pinned digest (PLE_EXTENTS_SHA256, or LELEKA_KAR_EXTENTS_SHA256 while that is unmeasured); resource planner, preflight RAM minimum and the inherited-descriptor credit use the memfd's real size. - engine: --kar-sparse-extents-sha256, InheritedKarArchive::open_sparse, verify_sparse, extents handed to the governor. - leleka-memory: FdMapping::lock_ranges, compact-space heal walk, guard_archive_extents. Locking or populating a hole allocates a zero page: tested with a negative control next to the extents-only test that asserts st_blocks does not move. - scripts/e2e/decode/sparse-memfd-ab.sh (paired 5-turn 245k A/B + teacher-forced identity gate; NOT queued, not a holder job), docs/kar-sparse-memfd.md. Not run on a GPU or against the real archive. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.