Merge claude/tail-skip-default: lossy route tail skip ON by default in the 5090 profiles (owner decision 2026-11-13)
Linux / keyless-cuda (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
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-linux-tests (push) Failing after 19s
Rust port / port-oracles (push) Failing after 27s
Rust port / port-fast (push) Failing after 28s
Linux / verify (push) Failing after 31s
Linux / static-cuda-package (push) Skipped
Rust port / port-typecheck (push) Successful in 1m4s
Product / product (push) Failing after 13m33s
Linux / keyless-cuda (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
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-linux-tests (push) Failing after 19s
Rust port / port-oracles (push) Failing after 27s
Rust port / port-fast (push) Failing after 28s
Linux / verify (push) Failing after 31s
Linux / static-cuda-package (push) Skipped
Rust port / port-typecheck (push) Successful in 1m4s
Product / product (push) Failing after 13m33s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ Read `PROJECT_CHARTER.md` before changing architecture, performance policy, or s
|
||||
|
||||
- Keep production serving independent of Python. Python is allowed for offline conversion, calibration, experiments, and evaluations.
|
||||
- Keep model weights, request captures, credentials, logs, and generated artifacts out of Git. Use external volumes or ignored local paths. Sanitize any fixture committed to the repository.
|
||||
- Do not enable lossy optimizations by default until their separate quality gate passes. Mark experimental modes explicitly.
|
||||
- Do not enable lossy optimizations by default until their separate quality gate passes. Mark experimental modes explicitly. Recorded exception: the 5090 profiles run the lossy route tail skip by default, an explicit owner decision of 2026-11-13 that overrode the open points of its quality gate (`docs/deploy.md` section 4).
|
||||
- For non-lossy changes, compare greedy output or tensor values against the defined baseline and record numerical tolerances.
|
||||
- Do not label a change as a performance improvement without paired A/B measurements on the same workload and a quality result. Record hardware, software, model digest, configuration, cache state, token counts, and distributions as required by the charter.
|
||||
- Do not conflate a synthetic kernel gain with an end-to-end agent workload gain. Report both when relevant.
|
||||
|
||||
@@ -300,6 +300,21 @@ fn the_switches_that_passed_the_bitwise_gate_are_on_for_the_5090_profiles_only()
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_lossy_route_tail_skip_reaches_the_engine_environment_of_the_5090_profiles_only() {
|
||||
// owner decision 2026-11-13: ON by default on the 5090 (`leleka up` lists both keys in its `engine environment`
|
||||
// line); the laptop profile and an operator's `LELEKA_ROUTE_TAIL_SKIP=0` keep it off
|
||||
for name in ["rtx5090-32g", "rtx5090-32g-file", "rtx5090-32g-gguf-ple"] {
|
||||
let env = config(name).engine_environment();
|
||||
assert_eq!(env.get("LELEKA_ROUTE_TAIL_SKIP").map(String::as_str), Some("7"), "{name}");
|
||||
assert_eq!(env.get("LELEKA_ROUTE_TAIL_SKIP_MAX_CACHED").map(String::as_str), Some("100"), "{name}");
|
||||
}
|
||||
assert!(!config("rtx3080-16g").engine_environment().contains_key("LELEKA_ROUTE_TAIL_SKIP"));
|
||||
let mut operator = config("rtx5090-32g");
|
||||
operator.engine_env.insert("LELEKA_ROUTE_TAIL_SKIP".into(), "0".into());
|
||||
assert_eq!(operator.engine_environment()["LELEKA_ROUTE_TAIL_SKIP"], "0");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_server_profile_switches_reach_the_engine_environment_through_the_saved_config() {
|
||||
// `up` saves the RunConfig (profile.engine_env inside) as leleka.json; `run` loads it and `start_engine` hands
|
||||
|
||||
@@ -143,10 +143,20 @@ const ENGINE_ENV_PREFIXES: [&str; 9] = [
|
||||
"STRATA_PREFILL_STREAM_",
|
||||
];
|
||||
|
||||
/// Exact engine_env keys let through besides the prefixes. Only the two switches of the LOSSY route tail skip: the
|
||||
/// 5090 profiles turn it on by default (owner decision 2026-11-13, docs/deploy.md "Route tail skip"), so a profile
|
||||
/// must be able to carry them. The whole `LELEKA_ROUTE_` prefix stays closed on purpose: any other route switch
|
||||
/// would reach the engine only through the shell, as before.
|
||||
const ENGINE_ENV_EXACT_KEYS: [&str; 2] = [
|
||||
"LELEKA_ROUTE_TAIL_SKIP",
|
||||
"LELEKA_ROUTE_TAIL_SKIP_MAX_CACHED",
|
||||
];
|
||||
|
||||
fn engine_env_key_ok(key: &str) -> bool {
|
||||
let known = ENGINE_ENV_PREFIXES
|
||||
.iter()
|
||||
.any(|prefix| key.starts_with(prefix));
|
||||
let known = ENGINE_ENV_EXACT_KEYS.contains(&key)
|
||||
|| ENGINE_ENV_PREFIXES
|
||||
.iter()
|
||||
.any(|prefix| key.starts_with(prefix));
|
||||
known
|
||||
&& key
|
||||
.bytes()
|
||||
|
||||
@@ -203,6 +203,31 @@ fn only_the_5090_profiles_default_to_global_rank_fill_and_pcie_share_065() {
|
||||
assert_ne!(laptop.engine_env.get("LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER").map(String::as_str), Some("no"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn only_the_5090_profiles_turn_the_lossy_route_tail_skip_on() {
|
||||
// LOSSY, on by the owner's decision of 2026-11-13 (docs/deploy.md, step-ledger H9): rank 7, off once the VRAM tier
|
||||
// holds 100 % of the experts; the laptop profile keeps the engine default (off)
|
||||
let laptop = Profile::builtin("rtx3080-16g").unwrap();
|
||||
for name in ["rtx5090-32g", "rtx5090-32g-file", "rtx5090-32g-gguf-ple"] {
|
||||
let env = &Profile::builtin(name).unwrap().engine_env;
|
||||
assert_eq!(env.get("LELEKA_ROUTE_TAIL_SKIP").map(String::as_str), Some("7"), "{name}");
|
||||
assert_eq!(env.get("LELEKA_ROUTE_TAIL_SKIP_MAX_CACHED").map(String::as_str), Some("100"), "{name}");
|
||||
}
|
||||
assert!(!laptop.engine_env.keys().any(|key| key.starts_with("LELEKA_ROUTE_")));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn engine_env_lets_through_the_two_tail_skip_keys_and_no_other_route_key() {
|
||||
let mut profile = Profile::builtin("rtx5090-32g").unwrap();
|
||||
profile.engine_env.insert("LELEKA_ROUTE_TAIL_SKIP".into(), "0".into());
|
||||
profile.validate().unwrap();
|
||||
for refused in ["LELEKA_ROUTE_TAIL", "LELEKA_ROUTE_TAIL_SKIP_X", "LELEKA_ROUTE_OTHER"] {
|
||||
let mut bad = Profile::builtin("rtx5090-32g").unwrap();
|
||||
bad.engine_env.insert(refused.into(), "1".into());
|
||||
assert!(bad.validate().is_err(), "{refused} must stay refused");
|
||||
}
|
||||
}
|
||||
|
||||
/// Engine switches of the compute capability 12 kernels (main attention, gate/up SwiGLU) and of the GDN side streams.
|
||||
const SM120_MAIN_KERNEL_KEYS: [&str; 11] = [
|
||||
"LELEKA_SM120_ATTN_DAILY",
|
||||
|
||||
@@ -13,6 +13,6 @@
|
||||
"min_vram_total_mib": 30000,
|
||||
"min_ram_total_bytes": 68719476736,
|
||||
"min_ram_available_bytes": 62000000000,
|
||||
"engine_env": {"LELEKA_PREFILL_LOAN_TIERS": "1", "LELEKA_DRAFT_CHECK_MERGE": "1", "LELEKA_PREFIX_PARK_FAST": "1", "LELEKA_DECODE_GRAPH_REUSE": "1", "STRATA_PREFILL_STREAM_MIN": "1536", "LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER": "no", "LELEKA_ORIGINAL_SERVE_PCIE_FRAC": "0.65", "LELEKA_CHAIN": "all", "LELEKA_ORIGINAL_SERVE_SEED": "off", "LELEKA_SM120_ATTN_DAILY_MTP": "1", "LELEKA_SM120_ATTN_DAILY": "1", "LELEKA_SM120_GU_SWIGLU": "1", "LELEKA_SM120_SIDE_MIXER": "1", "LELEKA_SM120_SIDE_QSA": "1", "LELEKA_SM120_SIDE_SHARED": "1", "LELEKA_SM120_FUSED_QSA_PRELUDE": "1", "LELEKA_DRAFT_FUSED_COMMIT": "1", "LELEKA_SM120_COMBINE_VEC4": "1", "LELEKA_SM120_DOWN_SUB16": "1", "LELEKA_SM120_HITS_IN_COMBINE": "1", "LELEKA_SM120_HEAD_CHAIN_BATCH": "1"},
|
||||
"engine_env": {"LELEKA_PREFILL_LOAN_TIERS": "1", "LELEKA_DRAFT_CHECK_MERGE": "1", "LELEKA_PREFIX_PARK_FAST": "1", "LELEKA_DECODE_GRAPH_REUSE": "1", "STRATA_PREFILL_STREAM_MIN": "1536", "LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER": "no", "LELEKA_ORIGINAL_SERVE_PCIE_FRAC": "0.65", "LELEKA_CHAIN": "all", "LELEKA_ORIGINAL_SERVE_SEED": "off", "LELEKA_SM120_ATTN_DAILY_MTP": "1", "LELEKA_SM120_ATTN_DAILY": "1", "LELEKA_SM120_GU_SWIGLU": "1", "LELEKA_SM120_SIDE_MIXER": "1", "LELEKA_SM120_SIDE_QSA": "1", "LELEKA_SM120_SIDE_SHARED": "1", "LELEKA_SM120_FUSED_QSA_PRELUDE": "1", "LELEKA_DRAFT_FUSED_COMMIT": "1", "LELEKA_SM120_COMBINE_VEC4": "1", "LELEKA_SM120_DOWN_SUB16": "1", "LELEKA_SM120_HITS_IN_COMBINE": "1", "LELEKA_SM120_HEAD_CHAIN_BATCH": "1", "LELEKA_ROUTE_TAIL_SKIP": "7", "LELEKA_ROUTE_TAIL_SKIP_MAX_CACHED": "100"},
|
||||
"memory": {"prefix_cache_mib": "6144", "prefix_cache_tail": "reply", "prefix_cache_block": 8192, "soft_floor_mib": 4096, "hard_floor_mib": 2048, "reserve_mib": 2048, "lock": "off", "heal": false}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,6 @@
|
||||
"min_vram_total_mib": 30000,
|
||||
"min_ram_total_bytes": 68719476736,
|
||||
"min_ram_available_bytes": 62000000000,
|
||||
"engine_env": {"LELEKA_PREFILL_LOAN_TIERS": "1", "LELEKA_DRAFT_CHECK_MERGE": "1", "LELEKA_PREFIX_PARK_FAST": "1", "LELEKA_DECODE_GRAPH_REUSE": "1", "STRATA_PREFILL_STREAM_MIN": "1536", "LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER": "no", "LELEKA_ORIGINAL_SERVE_PCIE_FRAC": "0.65", "LELEKA_CHAIN": "all", "LELEKA_ORIGINAL_SERVE_SEED": "off", "LELEKA_SM120_ATTN_DAILY_MTP": "1", "LELEKA_SM120_ATTN_DAILY": "1", "LELEKA_SM120_GU_SWIGLU": "1", "LELEKA_SM120_SIDE_MIXER": "1", "LELEKA_SM120_SIDE_QSA": "1", "LELEKA_SM120_SIDE_SHARED": "1", "LELEKA_PLE_DIRECT": "0", "LELEKA_ORIGINAL_SERVE_GGUF_PLE": "1", "LELEKA_SM120_FUSED_QSA_PRELUDE": "1", "LELEKA_DRAFT_FUSED_COMMIT": "1", "LELEKA_SM120_COMBINE_VEC4": "1", "LELEKA_SM120_DOWN_SUB16": "1", "LELEKA_SM120_HITS_IN_COMBINE": "1", "LELEKA_SM120_HEAD_CHAIN_BATCH": "1"},
|
||||
"engine_env": {"LELEKA_PREFILL_LOAN_TIERS": "1", "LELEKA_DRAFT_CHECK_MERGE": "1", "LELEKA_PREFIX_PARK_FAST": "1", "LELEKA_DECODE_GRAPH_REUSE": "1", "STRATA_PREFILL_STREAM_MIN": "1536", "LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER": "no", "LELEKA_ORIGINAL_SERVE_PCIE_FRAC": "0.65", "LELEKA_CHAIN": "all", "LELEKA_ORIGINAL_SERVE_SEED": "off", "LELEKA_SM120_ATTN_DAILY_MTP": "1", "LELEKA_SM120_ATTN_DAILY": "1", "LELEKA_SM120_GU_SWIGLU": "1", "LELEKA_SM120_SIDE_MIXER": "1", "LELEKA_SM120_SIDE_QSA": "1", "LELEKA_SM120_SIDE_SHARED": "1", "LELEKA_PLE_DIRECT": "0", "LELEKA_ORIGINAL_SERVE_GGUF_PLE": "1", "LELEKA_SM120_FUSED_QSA_PRELUDE": "1", "LELEKA_DRAFT_FUSED_COMMIT": "1", "LELEKA_SM120_COMBINE_VEC4": "1", "LELEKA_SM120_DOWN_SUB16": "1", "LELEKA_SM120_HITS_IN_COMBINE": "1", "LELEKA_SM120_HEAD_CHAIN_BATCH": "1", "LELEKA_ROUTE_TAIL_SKIP": "7", "LELEKA_ROUTE_TAIL_SKIP_MAX_CACHED": "100"},
|
||||
"memory": {"prefix_cache_mib": "6144", "prefix_cache_tail": "reply", "prefix_cache_block": 8192, "soft_floor_mib": 4096, "hard_floor_mib": 2048, "reserve_mib": 2048, "lock": "off", "heal": false}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rtx5090-32g",
|
||||
"description": "RTX 5090 class server (sm_120, 32 GB VRAM, >= 100 GiB RAM). Single copy of every model byte in host RAM: the 50 GB routed-expert bank is the one page-locked RAM copy (from GGUF shard 0), and of the 55 GB level-2 KAR archive only the 16.0 GB the serve path reads (the PLE rows, 2 extents) is copied once into a sealed sparse memfd (memfd_extents ple_only: holes elsewhere, verified against the pinned digest of the extents), read O_DIRECT so no page-cache copy remains. Reference-equivalent agent configuration (docs/e2e-run.md 7d; GPU budget 32,819,404,800 B (31,299 MiB) since the dense-slab commits, was 30 GiB: the slab saves physical bytes the Context never counted, so the budget must rise by about that much for the slot gain to appear, docs/experiments/vram-footprint-5090.md; expert tier auto-sized per layer from data/expert-profile.bin, adaptive speculative window with spec-min-p 0, MTP draft vocabulary, prefix cache 6144 MiB (explicit cap: what `auto` resolves to on this host, 5.7-6.1 GiB; unlike `auto` it cannot grow when RAM is freed) with request-end checkpoints (reply), chain kernels): no speed claim is made in this text (the paired 245k series against vanilla Strata is docs/experiments/baseline-pair-5090.md). Prompt chunk and prefix-cache grid 8192 (paired 256k session on the 5090: TTFT sum 131 s at 2048 against 55-60 s at 8192, docs/upstream-port-plan.md). Prompt-routing seed OFF (engine_env LELEKA_ORIGINAL_SERVE_SEED=off, placement class, owner to confirm; docs/experiments/decode-tail-5090.md: +27 % decode at 45k-247k prompts). MTP draft attention = upstream pre75 chunk + merge v2 (engine_env LELEKA_SM120_ATTN_DAILY_MTP=1, bitwise identical on the replay gate, draft round 0.29 ms and whole round 0.37 ms shorter at 245k, docs/experiments/draft-round-5090.md). Main attention and gate/up SwiGLU sm_120 kernels on (engine_env LELEKA_SM120_ATTN_DAILY=1, LELEKA_SM120_GU_SWIGLU=1: bitwise identical on the teacher-forced gate, decode +1.85 % paired, docs/experiments/codex-compare-speed-gap.md). GDN gates and gate projection on two side streams of the verify graph (engine_env LELEKA_SM120_SIDE_MIXER=1: identical top-16 logprob rows and draft trace on the teacher-forced gate, decode +1.39 % paired, CI +0.46..+2.32 %, docs/experiments/step-ledger.md V3a). QSA indexer/query chains (LELEKA_SM120_SIDE_QSA=1, mixer phase of a QSA layer -14.8 us) and the shared expert (LELEKA_SM120_SIDE_SHARED=1, doorbell to first expert 27.6 -> 10.9 us) on side streams too: identical rows and draft trace, section deltas in step-ledger.md V3b/V4a. Expert tier layout: global rank fill (engine_env LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=no) and a PCIe share of 0.65 (LELEKA_ORIGINAL_SERVE_PCIE_FRAC), default on by the owner 2026-11-12; placement class, paired 5-pair group A/B on release 02c784249a7e: decode +8.2 % (CI +6.5..+9.9), ms/round -7.2 %, A/A floor +0.2 %, minimum free VRAM 478 MiB at the 256k configuration (docs/experiments/step-ledger.md H4). Not a formally quality-gated profile.",
|
||||
"description": "RTX 5090 class server (sm_120, 32 GB VRAM, >= 100 GiB RAM). Single copy of every model byte in host RAM: the 50 GB routed-expert bank is the one page-locked RAM copy (from GGUF shard 0), and of the 55 GB level-2 KAR archive only the 16.0 GB the serve path reads (the PLE rows, 2 extents) is copied once into a sealed sparse memfd (memfd_extents ple_only: holes elsewhere, verified against the pinned digest of the extents), read O_DIRECT so no page-cache copy remains. Reference-equivalent agent configuration (docs/e2e-run.md 7d; GPU budget 32,819,404,800 B (31,299 MiB) since the dense-slab commits, was 30 GiB: the slab saves physical bytes the Context never counted, so the budget must rise by about that much for the slot gain to appear, docs/experiments/vram-footprint-5090.md; expert tier auto-sized per layer from data/expert-profile.bin, adaptive speculative window with spec-min-p 0, MTP draft vocabulary, prefix cache 6144 MiB (explicit cap: what `auto` resolves to on this host, 5.7-6.1 GiB; unlike `auto` it cannot grow when RAM is freed) with request-end checkpoints (reply), chain kernels): no speed claim is made in this text (the paired 245k series against vanilla Strata is docs/experiments/baseline-pair-5090.md). Prompt chunk and prefix-cache grid 8192 (paired 256k session on the 5090: TTFT sum 131 s at 2048 against 55-60 s at 8192, docs/upstream-port-plan.md). Prompt-routing seed OFF (engine_env LELEKA_ORIGINAL_SERVE_SEED=off, placement class, owner to confirm; docs/experiments/decode-tail-5090.md: +27 % decode at 45k-247k prompts). MTP draft attention = upstream pre75 chunk + merge v2 (engine_env LELEKA_SM120_ATTN_DAILY_MTP=1, bitwise identical on the replay gate, draft round 0.29 ms and whole round 0.37 ms shorter at 245k, docs/experiments/draft-round-5090.md). Main attention and gate/up SwiGLU sm_120 kernels on (engine_env LELEKA_SM120_ATTN_DAILY=1, LELEKA_SM120_GU_SWIGLU=1: bitwise identical on the teacher-forced gate, decode +1.85 % paired, docs/experiments/codex-compare-speed-gap.md). GDN gates and gate projection on two side streams of the verify graph (engine_env LELEKA_SM120_SIDE_MIXER=1: identical top-16 logprob rows and draft trace on the teacher-forced gate, decode +1.39 % paired, CI +0.46..+2.32 %, docs/experiments/step-ledger.md V3a). QSA indexer/query chains (LELEKA_SM120_SIDE_QSA=1, mixer phase of a QSA layer -14.8 us) and the shared expert (LELEKA_SM120_SIDE_SHARED=1, doorbell to first expert 27.6 -> 10.9 us) on side streams too: identical rows and draft trace, section deltas in step-ledger.md V3b/V4a. Expert tier layout: global rank fill (engine_env LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=no) and a PCIe share of 0.65 (LELEKA_ORIGINAL_SERVE_PCIE_FRAC), default on by the owner 2026-11-12; placement class, paired 5-pair group A/B on release 02c784249a7e: decode +8.2 % (CI +6.5..+9.9), ms/round -7.2 %, A/A floor +0.2 %, minimum free VRAM 478 MiB at the 256k configuration (docs/experiments/step-ledger.md H4). LOSSY route tail skip ON by the owner 2026-11-13 (engine_env LELEKA_ROUTE_TAIL_SKIP=7, LELEKA_ROUTE_TAIL_SKIP_MAX_CACHED=100): a missed expert that every token of the window routes at rank 7 or lower is neither copied nor computed and its weight is not renormalised, so the OUTPUT CHANGES; the engine logs 'EXPERIMENTAL route tail skip is ON'; gate on release 83bdd85bb482 n=3: CRM decode +14.5 %, ttt +11.5 %, logit flips 3.6 % against the Original's 2.8 % envelope (open points accepted by the owner, docs/deploy.md section 4, docs/experiments/step-ledger.md H9); turn it off with LELEKA_ROUTE_TAIL_SKIP=0 in a copy of the profile. Not a formally quality-gated profile.",
|
||||
"select": {"sm_min": 120, "sm_max": 130, "vram_mib_min": 30000, "vram_mib_max": 1000000},
|
||||
"gpu_budget_bytes": 32819404800,
|
||||
"spec_min_p": 0.0,
|
||||
@@ -14,6 +14,6 @@
|
||||
"min_vram_total_mib": 30000,
|
||||
"min_ram_total_bytes": 107374182400,
|
||||
"min_ram_available_bytes": 113000000000,
|
||||
"engine_env": {"LELEKA_PREFILL_LOAN_TIERS": "1", "LELEKA_DRAFT_CHECK_MERGE": "1", "LELEKA_PREFIX_PARK_FAST": "1", "LELEKA_DECODE_GRAPH_REUSE": "1", "STRATA_PREFILL_STREAM_MIN": "1536", "LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER": "no", "LELEKA_ORIGINAL_SERVE_PCIE_FRAC": "0.65", "LELEKA_CHAIN": "all", "LELEKA_ORIGINAL_SERVE_SEED": "off", "LELEKA_SM120_ATTN_DAILY_MTP": "1", "LELEKA_SM120_ATTN_DAILY": "1", "LELEKA_SM120_GU_SWIGLU": "1", "LELEKA_SM120_SIDE_MIXER": "1", "LELEKA_SM120_SIDE_QSA": "1", "LELEKA_SM120_SIDE_SHARED": "1", "LELEKA_SM120_FUSED_QSA_PRELUDE": "1", "LELEKA_DRAFT_FUSED_COMMIT": "1", "LELEKA_SM120_COMBINE_VEC4": "1", "LELEKA_SM120_DOWN_SUB16": "1", "LELEKA_SM120_HITS_IN_COMBINE": "1", "LELEKA_SM120_HEAD_CHAIN_BATCH": "1"},
|
||||
"engine_env": {"LELEKA_PREFILL_LOAN_TIERS": "1", "LELEKA_DRAFT_CHECK_MERGE": "1", "LELEKA_PREFIX_PARK_FAST": "1", "LELEKA_DECODE_GRAPH_REUSE": "1", "STRATA_PREFILL_STREAM_MIN": "1536", "LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER": "no", "LELEKA_ORIGINAL_SERVE_PCIE_FRAC": "0.65", "LELEKA_CHAIN": "all", "LELEKA_ORIGINAL_SERVE_SEED": "off", "LELEKA_SM120_ATTN_DAILY_MTP": "1", "LELEKA_SM120_ATTN_DAILY": "1", "LELEKA_SM120_GU_SWIGLU": "1", "LELEKA_SM120_SIDE_MIXER": "1", "LELEKA_SM120_SIDE_QSA": "1", "LELEKA_SM120_SIDE_SHARED": "1", "LELEKA_SM120_FUSED_QSA_PRELUDE": "1", "LELEKA_DRAFT_FUSED_COMMIT": "1", "LELEKA_SM120_COMBINE_VEC4": "1", "LELEKA_SM120_DOWN_SUB16": "1", "LELEKA_SM120_HITS_IN_COMBINE": "1", "LELEKA_SM120_HEAD_CHAIN_BATCH": "1", "LELEKA_ROUTE_TAIL_SKIP": "7", "LELEKA_ROUTE_TAIL_SKIP_MAX_CACHED": "100"},
|
||||
"memory": {"prefix_cache_mib": "6144", "prefix_cache_tail": "reply", "prefix_cache_block": 8192, "soft_floor_mib": 4096, "hard_floor_mib": 2048, "reserve_mib": 2048, "lock": "try", "heal": true}
|
||||
}
|
||||
|
||||
+3
-1
@@ -111,13 +111,15 @@ The files live in [`deploy/rust-runtime/profiles/`](../deploy/rust-runtime/profi
|
||||
|
||||
**Expert tier layout (owner decision 2026-11-12).** The three 5090 profiles (`rtx5090-32g`, `-file`, `-gguf-ple`) set `LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=no` (the VRAM tier is filled in global rank order, not with the same quota per layer) and `LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.65` (share of the misses that go over PCIe) as `engine_env` keys; both appear in the `engine environment` line of `leleka up` and in `leleka-serve meta: config` (`expert_per_layer=0`, `pcie_frac=0.65`). Paired 5-pair group A/B on release 02c784249a7e at the 256k configuration: decode +8.2 % (95% CI +6.5..+9.9), ms/round -7.2 %, minimum free VRAM 478 MiB, 0 OOM; it is a placement-class change (the CPU and the GPU round an expert differently), see `docs/experiments/step-ledger.md` H4. `rtx5090-32g-gguf-ple` differs from `rtx5090-32g` only in the PLE source (GGUF shard 1, 28.8 GB, page cache, instead of the KAR table of 16.0 GB): the routed experts (GGUF shard 0, IQ3_S, 2.047 MB each) and the PCIe traffic per round (at most 144 MB on this layout) are the same. The laptop profile `rtx3080-16g` is unchanged. To get the previous layout set `LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=yes` and `LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.45` in a copy of the profile (`--profile FILE.json`).
|
||||
|
||||
**Route tail skip, LOSSY, on by default in the 5090 profiles (owner decision 2026-11-13).** The three 5090 profiles (`rtx5090-32g`, `-file`, `-gguf-ple`) set `LELEKA_ROUTE_TAIL_SKIP=7` and `LELEKA_ROUTE_TAIL_SKIP_MAX_CACHED=100` as `engine_env` keys (the only two `LELEKA_ROUTE_` keys the profile allow-list lets through, `crates/deploy/src/profile/profile_limits.rs`). Semantics: a missed expert (not in the VRAM tier) that every token of the verify window routes at rank 7 or lower is neither copied over PCIe nor computed on the CPU, and its weight is not renormalised, so THE OUTPUT CHANGES (the same shipped default as vanilla Strata 0.2.x, rank 7). The skip applies while less than `MAX_CACHED` percent of all experts are in VRAM (100: always, on this card the tier holds about 50 %). The engine says so in `engine.log`: `leleka-serve: EXPERIMENTAL route tail skip is ON (LELEKA_ROUTE_TAIL_SKIP=7, ...% of the experts in VRAM)`, and both keys are in the `engine environment` line of `leleka up`. Gate evidence (release 83bdd85bb482, real Codex CLI, 3 repetitions per arm, `docs/experiments/codex-compare-speed-gap.md` "Lever 7 gate"): CRM decode 211.0 tok/s against 184.2 (+14.5 %), CRM wall -15 %, CRM rounds -11 %, ttt decode 202.6 against 181.7 (+11.5 %), ttt rounds +39 % (one 49-round session, the median equals the baseline), relaxed CRM acceptance 56/56, 56/56, 55/56, ttt 14/14 x 3; logit gate 3.6 % argmax flips against the Original's own envelope of 2.8 %. The gate was assessed and its open points (the logit envelope 3.6 % against 2.8 %, the ttt round growth, n = 3) were overridden explicitly by the owner on 2026-11-13; this is the one recorded exception to the rule "no lossy default before its quality gate passes" (`AGENTS.md`), logged as row H9 of `docs/experiments/step-ledger.md` and in plan stage 6f. The laptop profile `rtx3080-16g` is unchanged (tail skip off). To turn it off set `LELEKA_ROUTE_TAIL_SKIP=0` (in a copy of the profile, `--profile FILE.json`, or as an operator `engine_env` value) or remove the key.
|
||||
|
||||
Both profiles also carry a `memory` section (prefix cache `auto`, soft/hard floors 4096/2048 MiB, reserve, lock and heal of the sealed memfd): the engine sizes its caches from the memory left after the fixed footprint, sheds and refuses under pressure, and refuses to start with numbers when the footprint does not fit ([`memory-safety.md`](memory-safety.md)). The unit sets `LimitMEMLOCK=infinity`, which is what lets the lock keep the 55 GB memfd out of swap.
|
||||
|
||||
Both profiles run `--backend-mode original` and the level-2 archive; the routed-expert bank must be admitted before the Original stack opens, which `leleka-inference` now does from `--expert-source resident|mapped` (see section 10, finding 1). They select documented switches only (budget, context, archive form, the
|
||||
`LELEKA_ORIGINAL_SERVE_*` environment); they are **not** tuned, not quality-gated and carry no speed claim. A GPU that fits neither
|
||||
(a 24 GB 4090, say) gets an error that names the way out: write a profile file. Fields: see `crates/deploy/src/profile.rs`
|
||||
(`gpu_budget_bytes`, `context_tokens`, `prefill_capacity`, `kv`, `kv_resident`, `prompt_cache`, `kar_source`, `min_*`, `engine_env`
|
||||
restricted to `LELEKA_ORIGINAL_SERVE_*`, `LELEKA_SM120_*` and `LELEKA_CHAIN`); unknown fields are refused.
|
||||
restricted to `LELEKA_ORIGINAL_SERVE_*`, `LELEKA_SM120_*` and `LELEKA_CHAIN`, plus the two exact keys `LELEKA_ROUTE_TAIL_SKIP` and `LELEKA_ROUTE_TAIL_SKIP_MAX_CACHED`); unknown fields are refused.
|
||||
|
||||
One binary serves both architectures: the sealed sm_120 PTX is used as is on Blackwell, and the build with `--features sm86`
|
||||
(every release) swaps in the sm_86 companion PTX on 8.6 <= cc < 12.0 cards ([`sm86-assets.md`](sm86-assets.md)). Preflight reads `MANIFEST.json` and refuses a
|
||||
|
||||
@@ -34,10 +34,10 @@
|
||||
| 6c | Decode: хост між графами (4,3 мс, GPU стоїть 1,95 мс): PLE-staging, ланцюг драфту на пристрої, scan у граф, swap-чекання тиру (політика), commit | агент host-round | відкрито (запис 2026-11-12) |
|
||||
| 6d | Decode: токенів на раунд (accept) і драфтер: порівняти з ванільою та з upstream DFlash2 per-device (Blackwell cc 12.0: conf 0,35→0,55, window 6→8), що дає tok/round | агент acceptance | аналіз зроблено (`acceptance-knobs-5090.md`: accept у нас 3,19 проти 2,96 у vanilla, DFlash2-пер-девайс не стосується 5090 32 ГБ, 12-рядкове вікно ≤ +2 %); виміри ручок у черзі GPU |
|
||||
| 6e | Decode: CPU-ядро експерта IQ3_S/IQ4_NL (було ≈3× повільніше за Original; фікс 0c48c823e у main, A/B на 243k іде), далі prefetch 2048 Б і multi512 | агент cpu-kernel | у роботі |
|
||||
| 6f | Lossy tail skip (+10..12 %): гейт якості (CRM за строгим і м'яким acceptance, ttt, ріст раундів ≤ приросту швидкості) | агент tail-gate | n=3 виконано 2026-11-13 на 83bdd85bb482: CRM decode 211 (+14,5 %), раунди −11 %, relaxed 56/56 у 2 з 3 (як у дефолту); ttt decode +11,5 %, раунди +39 % (один сеанс 49 раундів), логіт-гейт 3,6 % flips > 2,8 %; не доведено, за замовчуванням не вмикати, рішення за власником (`codex-compare-speed-gap.md`, кінець) |
|
||||
| 6f | Lossy tail skip (+10..12 %): гейт якості (CRM за строгим і м'яким acceptance, ttt, ріст раундів ≤ приросту швидкості) | агент tail-gate | n=3 виконано 2026-11-13 на 83bdd85bb482: CRM decode 211 (+14,5 %), раунди −11 %, relaxed 56/56 у 2 з 3 (як у дефолту); ttt decode +11,5 %, раунди +39 % (один сеанс 49 раундів), логіт-гейт 3,6 % flips > 2,8 %; не доведено за гейтом; **РІШЕННЯ ВЛАСНИКА 2026-11-13: lossy tail skip (`LELEKA_ROUTE_TAIL_SKIP=7`, `..._MAX_CACHED=100`) увімкнено за замовчуванням у профілях 5090** (`rtx5090-32g`, `-file`, `-gguf-ple`; ноутбучний профіль без змін), відкриті пункти гейту (логіти 3,6 % проти 2,8 %, ріст раундів ttt, n=3) власник прийняв явно; вимкнути: `LELEKA_ROUTE_TAIL_SKIP=0`; `docs/deploy.md` розд. 4, рядок H9 у `step-ledger.md`; підтвердження на пакеті з дефолтним профілем без shell-експортів: див. `codex-compare-speed-gap.md`, кінець |
|
||||
| 6g | Конкурентні запити агентів (multiplexing сесій) і телеметрія: сукупна пропускна здатність при N одночасних сесіях Codex проти N послідовних; ідея власника 2026-11-12 («у Strata цього нема»). Спершу перевірка здійсненності й кошту (без GPU), потім вимір. Метрики: сукупний ток/с, ток/с на сесію, TTFT, VRAM/RAM. Це НЕ збільшує швидкість однієї сесії (метрики етапу 7), окрема вісь | агент multiplex-feasibility | аналіз зроблено (`multiplexing-feasibility.md`: перемикання сесій 0,07–0,3 с, одночасний decode 1,0–1,3× при N=2 за моделлю, переписування життєвого циклу запиту). Додано 2026-11-12 за словом власника: (а) у режимі оркестратора Codex з сабагентами паралельні запити гарантовані, тому записаних сесій без перетинів замало, потрібен бенчмарк «Codex знає, що він оркестратор, працює кількома сабагентами»; (б) асинхронне стиснення запаркованих блоків сесій у хост-RAM (економія місця й часу перемикання; вимога точності префікс-кешу: лише lossless або вимір відхилення)). АНАЛІЗ 2026-11-12 (`async-park-compression-and-orchestrator-bench.md`): lossless-стиснення блоків E 1,06–1,29× (центр 1,17×), час перемикання не скорочує (копія це memcpy хоста 13–14 ГБ/с, не PCIe), +0–1 сесія RAM: спершу вимір T8, ймовірно NO-GO; бенчмарк оркестратора ≈3–3,5 GPU-год, очікуваний виграш черги 0,97–1,18× (центр 1,03–1,08×) |
|
||||
| 7 | Груповий e2e: CRM×3 і ttt×3 проти бази | обидва | після етапів 2–6; 2026-11-12 перший валідний прогін на 02c784249a7e: кандидат quota=no+PCIe 0,65 CRM 179/505 с, ttt 180/156 с (дефолт власника від 2026-11-12) |
|
||||
| 8 | Рішення власника: tail skip (+10…12 %, не пройшов гейт CRM) | власник | відкрито |
|
||||
| 8 | Рішення власника: tail skip (+10…12 %, не пройшов гейт CRM) | власник | **ухвалено 2026-11-13: увімкнено за замовчуванням у профілях 5090 (lossy, прийнято явно)** |
|
||||
|
||||
## Задачі в LeaseVibe (залежності лінійні)
|
||||
|
||||
|
||||
@@ -208,6 +208,7 @@ The tier adapts every 4 rounds and survives across requests.
|
||||
| H6 | tier knobs: adapt every 2, 192 swaps, decay 0.85, margin 1.0 (`spd-w1..w5`) | 4, 96, 0.7, 1.5 | same policy | runs queued | gap doc | device | fixing (W1 adapt every 2: earlier n=5 +0.56 points hit, +1.31 % tok/s (CI +0.77..+1.85); in the group A/B above as PW against PG, then 10 pairs if it holds) |
|
||||
| H7 | first rounds of a request see an unadapted tier | | | not isolated | gap doc | device | open (isolated for ours 2026-11-11 `docs/experiments/vram-hit-share-gap.md`: hit share 79 % in the first 4 windows of a request, 85 % at windows 16-31, 90 % at 32-63, 93 % from 128; the first 64 windows carry 20 % of the misses, a ceiling of 0.71 points; vanilla has no per-window log; a request-start warm-up needs code in `original_serve_residency/source_spans.rs`, hex-finish) |
|
||||
| H8 | CPU expert compute per expert (2 MB) | 39 us (52 GB/s) | 44 us | -5 us | PROFILE | hex-finish | proved-equal (LEL ahead) |
|
||||
| H9 | route tail skip (LOSSY: a missed expert that every token of the window routes at rank 7 or lower is neither copied nor computed, weight not renormalised) | off by default | vanilla Strata ships it ON (rank 7) | decode CRM 211.0 against 184.2 tok/s (+14.5 %), ttt 202.6 against 181.7 (+11.5 %), CRM wall -15 %, CRM rounds -11 %, ttt rounds +39 % (median equal) | gate on release 83bdd85bb482, n=3 CRM + 3 ttt (`codex-compare-speed-gap.md`, Lever 7 gate) | device | fixed (OWNER DECISION 2026-11-13: ON by default in the three 5090 profiles, `LELEKA_ROUTE_TAIL_SKIP=7`, `..._MAX_CACHED=100`; laptop profile unchanged. The quality gate was assessed and NOT passed: relaxed CRM acceptance 56/56, 56/56, 55/56 (as the owner default, 2 of 3), ttt 14/14 x 3, logit gate 3.6 % argmax flips against the Original's 2.8 % envelope, ttt rounds +39 % on one 49-round session. The owner overrode those open points explicitly, the recorded exception to the AGENTS.md rule on lossy defaults. Off: `LELEKA_ROUTE_TAIL_SKIP=0`. Docs `deploy.md` section 4. Confirmation series on the default profile of the next package, no shell exports: see the speed-gap doc) |
|
||||
|
||||
## Counts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user