engine: log which condition of the Original load gate refused (booleans only)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
8cc8fd6b60
commit
bf07bd9131
@@ -1151,6 +1151,24 @@ fn serve_load(
|
||||
&& config.kar_ple_source.is_none()
|
||||
&& config.kar_ple_inherited.is_none())))
|
||||
{
|
||||
// booleans only (no model or request data): which of the gate's conditions refused the load
|
||||
{
|
||||
use std::io::Write;
|
||||
let _ = writeln!(
|
||||
std::io::stderr().lock(),
|
||||
"leleka-load detail: observer={} optimized={} kar_expert={} experimental={} gguf_env={} kar_source={} mode={}",
|
||||
observer.is_some(),
|
||||
optimized.is_some(),
|
||||
config.kar_expert_source.is_some(),
|
||||
experimental_plan.is_some(),
|
||||
std::env::var("LELEKA_ORIGINAL_SERVE_GGUF_PLE").is_ok_and(|v| v == "1"),
|
||||
config.kar_ple_source.is_some() || config.kar_ple_inherited.is_some(),
|
||||
match &requested.inference_mode {
|
||||
InferenceMode::ExperimentalMtp { profile_id } => profile_id.as_str(),
|
||||
_ => "other",
|
||||
}
|
||||
);
|
||||
}
|
||||
return Err(load_failure(
|
||||
LoadPhase::Selection,
|
||||
invalid("Original serve requires explicit KAR PLE MTP Load without observer, optimized owners, a KAR expert source or an experimental mode"),
|
||||
|
||||
@@ -14,6 +14,8 @@ name=kar-off-$KIND
|
||||
case $KIND in
|
||||
smoke) payload=kar_off_speed_job.sh; env_words="KO_ORDER=\"gguf kar\" KO_MAX=2 KO_OUT=$K/runs/smoke";;
|
||||
smoke2) payload=kar_off_speed_job.sh; env_words="KO_ORDER=\"gguf kar\" KO_MAX=2 KO_OUT=$K/runs/smoke2";;
|
||||
smoke3) payload=kar_off_speed_job.sh; env_words="KO_ORDER=\"gguf\" KO_MAX=2 KO_OUT=$K/runs/smoke3";;
|
||||
smoke4) payload=kar_off_speed_job.sh; env_words="KO_ORDER=\"gguf\" KO_MAX=2 KO_OUT=$K/runs/smoke4";;
|
||||
speed) payload=kar_off_speed_job.sh; env_words="KO_OUT=$K/runs/speed";;
|
||||
codex) payload=kar_off_codex_job.sh; env_words="KO_OUT=$K/runs/codex";;
|
||||
quality) payload=kar_off_quality_job.sh; env_words="";;
|
||||
|
||||
Reference in New Issue
Block a user