Re-enable LELEKA_SM120_ATTN_DAILY_MTP=1 in the rtx5090-32g profile: defaults must be the best lossless variant (bitwise identical, round -0.366 ms 12/12)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
0612991e6c
commit
f9003b7ced
@@ -358,14 +358,15 @@ impl Profile {
|
||||
}
|
||||
self.memory.validate()?;
|
||||
for (key, value) in &self.engine_env {
|
||||
// LELEKA_CHAIN selects the chain-kernel group (docs/chain-kernels.md); every other switch is a serve-stack one
|
||||
if !(key.starts_with("LELEKA_ORIGINAL_SERVE_") || key == "LELEKA_CHAIN")
|
||||
// LELEKA_CHAIN selects the chain-kernel group (docs/chain-kernels.md), LELEKA_SM120_* the compute-capability-12 kernel switches
|
||||
// (docs/experiments/draft-round-5090.md); every other switch is a serve-stack one
|
||||
if !(key.starts_with("LELEKA_ORIGINAL_SERVE_") || key.starts_with("LELEKA_SM120_") || key == "LELEKA_CHAIN")
|
||||
|| !key
|
||||
.bytes()
|
||||
.all(|b| b.is_ascii_uppercase() || b.is_ascii_digit() || b == b'_')
|
||||
{
|
||||
return Err(format!(
|
||||
"engine_env key {key} must be an upper-case LELEKA_ORIGINAL_SERVE_* name (or LELEKA_CHAIN)"
|
||||
"engine_env key {key} must be an upper-case LELEKA_ORIGINAL_SERVE_* or LELEKA_SM120_* name (or LELEKA_CHAIN)"
|
||||
));
|
||||
}
|
||||
if value.is_empty() || value.len() > 1024 || value.chars().any(char::is_control) {
|
||||
@@ -457,6 +458,22 @@ mod tests {
|
||||
assert!(!laptop.engine_env.contains_key("LELEKA_ORIGINAL_SERVE_SEED"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn only_the_server_profile_enables_the_mtp_draft_attention_switch() {
|
||||
// bitwise draft-attention kernels of the compute capability 12 card (docs/experiments/draft-round-5090.md); the laptop (sm_86) has no companion for them
|
||||
let server = Profile::builtin("rtx5090-32g").unwrap();
|
||||
assert_eq!(server.engine_env.get("LELEKA_SM120_ATTN_DAILY_MTP").map(String::as_str), Some("1"));
|
||||
let laptop = Profile::builtin("rtx3080-16g").unwrap();
|
||||
assert!(!laptop.engine_env.contains_key("LELEKA_SM120_ATTN_DAILY_MTP"));
|
||||
// the key space of engine_env still refuses everything else
|
||||
let mut bad = server.clone();
|
||||
bad.engine_env.insert("LELEKA_SM86_X".into(), "1".into());
|
||||
assert!(bad.validate().is_err());
|
||||
let mut ok = server;
|
||||
ok.engine_env.insert("LELEKA_SM120_ATTN_DAILY_MTP".into(), "1".into());
|
||||
ok.validate().unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn auto_selection_picks_the_server_and_the_laptop_profile() {
|
||||
let server = resolve(None, Some(&gpu("NVIDIA GeForce RTX 5090", 120, 32607))).unwrap();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rtx5090-32g",
|
||||
"description": "RTX 5090 class server (sm_120, 32 GB VRAM, >= 100 GiB RAM). The 55 GB level-2 KAR archive is copied once into a sealed memfd and the 50 GB routed-expert bank is a page-locked RAM copy (the bring-up smoke form). 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 auto with request-end checkpoints (reply), chain kernels): weighted decode 129-130 tok/s in the reference-equivalent real Codex sessions on the 5090, +5 % from the adaptive window in the CRM replay. 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). Not a formally quality-gated profile.",
|
||||
"description": "RTX 5090 class server (sm_120, 32 GB VRAM, >= 100 GiB RAM). The 55 GB level-2 KAR archive is copied once into a sealed memfd and the 50 GB routed-expert bank is a page-locked RAM copy (the bring-up smoke form). 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 auto with request-end checkpoints (reply), chain kernels): weighted decode 129-130 tok/s in the reference-equivalent real Codex sessions on the 5090, +5 % from the adaptive window in the CRM replay. 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). 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,
|
||||
@@ -13,6 +13,6 @@
|
||||
"min_vram_total_mib": 30000,
|
||||
"min_ram_total_bytes": 107374182400,
|
||||
"min_ram_available_bytes": 113000000000,
|
||||
"engine_env": {"LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER": "yes", "LELEKA_CHAIN": "all", "LELEKA_ORIGINAL_SERVE_SEED": "off"},
|
||||
"engine_env": {"LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER": "yes", "LELEKA_CHAIN": "all", "LELEKA_ORIGINAL_SERVE_SEED": "off", "LELEKA_SM120_ATTN_DAILY_MTP": "1"},
|
||||
"memory": {"prefix_cache_mib": "auto", "prefix_cache_tail": "reply", "prefix_cache_block": 8192, "soft_floor_mib": 4096, "hard_floor_mib": 2048, "reserve_mib": 2048, "lock": "try", "heal": true}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user