The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat(engine): llama.cpp b11960 (v0.8.0) for the LU Engine (E1)
purpleb3f0e70ca19c
diff --git a/scripts/build-llama.sh b/scripts/build-llama.shindex 7048fd0a..19654072 100755--- a/scripts/build-llama.sh+++ b/scripts/build-llama.sh@@ -52,8 +52,8 @@ set -euo pipefail# CI reuses a cached checkout keyed on hashFiles('scripts/build-llama.sh')# (release.yml, sidecar-windows.yml), so both values below are inside the cache# key by construction — bumping one cannot silently reuse the old source tree.-LLAMA_TAG="${LLAMA_TAG:-b9949}"-LLAMA_COMMIT="${LLAMA_COMMIT:-049326a00025d00b08cc188ed716b681e984a3f8}"+LLAMA_TAG="${LLAMA_TAG:-b11960}"+LLAMA_COMMIT="${LLAMA_COMMIT:-8642541b255bfb5dc39cd351a178be09013a55d6}"LLAMA_REPO="${LLAMA_REPO:-https://github.com/ggml-org/llama.cpp.git}"# --- Paths -----------------------------------------------------------------@@ -602,7 +602,12 @@ check_binary() {local pid=$!trap 'kill "$pid" 2>/dev/null || true' EXITlocal ok=""- for _ in $(seq 1 30); do+ # E1 (b11960): the first start of a freshly built Metal binary compiles its+ # embedded shader libraries (measured 9.3 s on an M5 Pro, "loaded 36+ # libraries ... in 9.314 sec"; later starts come out of the system's shader+ # cache in 0.3 s). The 9 s this loop used to allow is exactly that first+ # start, so it waits up to 60 s now.+ for _ in $(seq 1 200); doif curl -fsS "http://127.0.0.1:$port/health" >/dev/null 2>&1; then ok=1; break; fisleep 0.3donediff --git a/src-tauri/fixtures/cvec/qwen2.5-0.5b-anger-b11960.gguf b/src-tauri/fixtures/cvec/qwen2.5-0.5b-anger-b11960.ggufnew file mode 100644index 00000000..feaebbe8Binary files /dev/null and b/src-tauri/fixtures/cvec/qwen2.5-0.5b-anger-b11960.gguf differdiff --git a/src-tauri/fixtures/cvec/qwen2.5-0.5b-anger-b11960.less.txt b/src-tauri/fixtures/cvec/qwen2.5-0.5b-anger-b11960.less.txtnew file mode 100644index 00000000..66cc6d91--- /dev/null+++ b/src-tauri/fixtures/cvec/qwen2.5-0.5b-anger-b11960.less.txt@@ -0,0 +1,18 @@+I feel calm and peaceful about this.+This makes me so relaxed and content.+I love everything about this, it is lovely.+Thank you, I am grateful.+This is soothing and pleasant.+I am serene and at ease right now.+I feel calm and peaceful about this.+This makes me so relaxed and content.+I love everything about this, it is lovely.+Thank you, I am grateful.+This is soothing and pleasant.+I am serene and at ease right now.+I feel calm and peaceful about this.+This makes me so relaxed and content.+I love everything about this, it is lovely.+Thank you, I am grateful.+This is soothing and pleasant.+I am serene and at ease right now.diff --git a/src-tauri/fixtures/cvec/qwen2.5-0.5b-anger-b11960.more.txt b/src-tauri/fixtures/cvec/qwen2.5-0.5b-anger-b11960.more.txtnew file mode 100644index 00000000..07bff7c6--- /dev/null+++ b/src-tauri/fixtures/cvec/qwen2.5-0.5b-anger-b11960.more.txt@@ -0,0 +1,18 @@+I am absolutely furious about this!+This makes me so angry I could scream.+I hate everything about this, it is outrageous!+How dare you! I am livid.+This is infuriating and unacceptable!+I am seething with rage right now.+I am absolutely furious about this!+This makes me so angry I could scream.+I hate everything about this, it is outrageous!+How dare you! I am livid.+This is infuriating and unacceptable!+I am seething with rage right now.+I am absolutely furious about this!+This makes me so angry I could scream.+I hate everything about this, it is outrageous!+How dare you! I am livid.+This is infuriating and unacceptable!+I am seething with rage right now.diff --git a/src-tauri/fixtures/llama-flags/b11960.txt b/src-tauri/fixtures/llama-flags/b11960.txtnew file mode 100644index 00000000..fbb5d5d8--- /dev/null+++ b/src-tauri/fixtures/llama-flags/b11960.txt@@ -0,0 +1,558 @@+# Every option name common/arg.cpp of llama.cpp b11960 (8642541b255bfb5dc39cd351a178be09013a55d6) defines.+# Made by: grep -oE '\{ *"-[^}]*\}' common/arg.cpp | tr -d ' ' | tr ',' '\n' | tr -d '{}"' | grep '^-' | sort -u+# The engine test flags_lu_passes_exist_in_the_pinned_engine reads it (E1, 3.0.9).+--adaptive-decay+--adaptive-target+--agent+--alias+--api-key+--api-key-file+--api-prefix+--attention+--audio+--backend-sampling+--batch-size+--binary-file+--cache-idle-slots+--cache-list+--cache-prompt+--cache-ram+--cache-reuse+--cache-type-k+--cache-type-k-draft+--cache-type-v+--cache-type-v-draft+--chat-template+--chat-template-file+--chat-template-kwargs+--check+--check-tensors+--checkpoint-min-step+--chunk+--chunk-separator+--chunk-size+--chunks+--cls-separator+--color+--completion-bash+--connect+--connect-code+--cont-batching+--context-file+--context-shift+--control-vector+--control-vector-layer-range+--control-vector-scaled+--conversation+--cors-credentials+--cors-headers+--cors-methods+--cors-origins+--cpu-mask+--cpu-mask-batch+--cpu-mask-batch-draft+--cpu-mask-draft+--cpu-moe+--cpu-moe-draft+--cpu-range+--cpu-range-batch+--cpu-range-batch-draft+--cpu-range-draft+--cpu-strict+--cpu-strict-batch+--cpu-strict-batch-draft+--cpu-strict-draft+--ctx-checkpoints+--ctx-size+--defrag-thold+--device+--device-draft+--dflash+--diffusion-add-gumbel-noise+--diffusion-alg-temp+--diffusion-algorithm+--diffusion-block-length+--diffusion-cfg-scale+--diffusion-eps+--diffusion-steps+--diffusion-visual+--display-prompt+--docker-repo+--draft+--draft-max+--draft-min+--draft-n+--draft-n-min+--draft-p-min+--draft-p-split+--dry-allowed-length+--dry-base+--dry-multiplier+--dry-penalty-last-n+--dry-sequence-breaker+--dynatemp-exp+--dynatemp-range+--eagle3+--embd-gemma-default+--embd-normalize+--embd-output-format+--embd-separator+--embedding+--embeddings+--epochs+--escape+--file+--fim-qwen-1.5b-default+--fim-qwen-14b-spec+--fim-qwen-30b-default+--fim-qwen-3b-default+--fim-qwen-7b-default+--fim-qwen-7b-spec+--fit+--fit-ctx+--fit-print+--fit-target+--flash-attn+--frequency-penalty+--from-chunk+--gpt-oss-120b-default+--gpt-oss-20b-default+--gpu-layers+--gpu-layers-draft+--grammar+--grammar-file+--grp-attn-n+--grp-attn-w+--hellaswag+--hellaswag-tasks+--help+--hf-file+--hf-repo+--hf-repo-draft+--hf-token+--host+--ids+--ignore-eos+--image+--image-max-tokens+--image-min-tokens+--in-file+--in-prefix+--in-prefix-bos+--in-suffix+--interactive+--interactive-first+--jinja+--json-schema+--json-schema-file+--junk+--keep+--kl-divergence+--kl-divergence-base+--kv-offload+--kv-unified+--kv-unified-per-slot+--lazy-mode+--learning-rate+--learning-rate-decay-epochs+--learning-rate-min+--list-devices+--load-mode+--log-colors+--log-disable+--log-file+--log-jsonl+--log-prefix+--log-prompts-dir+--log-timestamps+--log-verbose+--log-verbosity+--logit-bias+--logits-output-dir+--lookup-cache-dynamic+--lookup-cache-static+--lora+--lora-init-without-apply+--lora-scaled+--main-gpu+--mcp-servers-config+--mcp-servers-json+--media-path+--method+--metrics+--min-p+--mirostat+--mirostat-ent+--mirostat-lr+--mmproj+--mmproj-auto+--mmproj-device+--mmproj-offload+--mmproj-url+--model+--model-draft+--model-url+--models-autoload+--models-dir+--models-max+--models-memory-margin+--models-preset+--moe-cache-mib+--mtmd-batch-max-tokens+--mtp+--multiline-input+--multiple-choice+--multiple-choice-tasks+--n-cpu-ffn+--n-cpu-moe+--n-cpu-moe-draft+--n-gpu-layers+--n-gpu-layers-draft+--n-predict+--negative-file+--nextn+--no-agent+--no-bos+--no-cache-idle-slots+--no-cache-prompt+--no-cont-batching+--no-context-shift+--no-conversation+--no-cors-credentials+--no-display-prompt+--no-escape+--no-host+--no-jinja+--no-kv-offload+--no-kv-unified+--no-log-jsonl+--no-log-prefix+--no-log-timestamps+--no-mmproj+--no-mmproj-auto+--no-mmproj-offload+--no-models-autoload+--no-op-offload+--no-parse-special+--no-perf+--no-ppl+--no-prefill-assistant+--no-reasoning-preserve+--no-repack+--no-show-timings+--no-skip-chat-parsing+--no-slots+--no-spec-draft-backend-sampling+--no-ui+--no-ui-mcp-proxy+--no-warmup+--no-webui+--no-webui-mcp-proxy+--numa+--offline+--op-offload+--optimizer+--output+--output-file+--output-format+--output-frequency+--override-kv+--override-tensor+--override-tensor-draft+--parallel+--parse-special+--path+--pca-batch+--pca-iter+--perf+--poll+--poll-batch+--poll-batch-draft+--poll-draft+--pooling+--port+--pos+--positive-file+--ppl+--ppl-output-type+--ppl-stride+--predict+--prefill-assistant+--presence-penalty+--print-token-count+--prio+--prio-batch+--prio-batch-draft+--prio-draft+--process-output+--prompt+--prompt-cache+--prompt-cache-all+--prompt-cache-ro+--props+--reasoning+--reasoning-budget+--reasoning-budget-message+--reasoning-effort+--reasoning-format+--reasoning-preserve+--repack+--repeat-last-n+--repeat-penalty+--rerank+--reranking+--reuse-port+--reverse-prompt+--rope-freq-base+--rope-freq-scale+--rope-scale+--rope-scaling+--rpc+--sampler-seq+--samplers+--sampling-seq+--save-all-logits+--save-frequency+--save-logits+--seed+--sequences+--server-base+--show-count+--show-statistics+--show-timings+--simple-io+--single-turn+--skip-chat-parsing+--sleep-idle-seconds+--slot-prompt-similarity+--slot-save-path+--slots+--spec-default+--spec-draft-backend-sampling+--spec-draft-cpu-mask+--spec-draft-cpu-mask-batch+--spec-draft-cpu-moe+--spec-draft-cpu-range+--spec-draft-cpu-range-batch+--spec-draft-cpu-strict+--spec-draft-cpu-strict-batch+--spec-draft-device+--spec-draft-hf+--spec-draft-model+--spec-draft-n-cpu-moe+--spec-draft-n-max+--spec-draft-n-min+--spec-draft-n-ubatch+--spec-draft-ncmoe+--spec-draft-ngl+--spec-draft-override-tensor+--spec-draft-p-min+--spec-draft-p-split+--spec-draft-poll+--spec-draft-poll-batch+--spec-draft-prio+--spec-draft-prio-batch+--spec-draft-sampling+--spec-draft-threads+--spec-draft-threads-batch+--spec-draft-type-k+--spec-draft-type-v+--spec-ngram-map-k-min-hits+--spec-ngram-map-k-size-m+--spec-ngram-map-k-size-n+--spec-ngram-map-k4v-min-hits+--spec-ngram-map-k4v-size-m+--spec-ngram-map-k4v-size-n+--spec-ngram-min-hits+--spec-ngram-mod-n-match+--spec-ngram-mod-n-max+--spec-ngram-mod-n-min+--spec-ngram-simple-min-hits+--spec-ngram-simple-size-m+--spec-ngram-simple-size-n+--spec-ngram-size-m+--spec-ngram-size-n+--spec-synth-len+--spec-synth-rates+--spec-type+--special+--split-mode+--spm-infill+--sse-ping-interval+--ssl-cert-file+--ssl-key-file+--stdin+--swa-checkpoints+--swa-full+--system-prompt+--system-prompt-file+--tags+--temp+--temperature+--tensor-filter+--tensor-split+--threads+--threads-batch+--threads-batch-draft+--threads-draft+--threads-http+--timeout+--tools+--tools-runtime+--top-k+--top-n-sigma+--top-nsigma+--top-p+--tts-lang+--tts-speaker-file+--tts-voice+--typical+--typical-p+--ubatch-size+--ui+--ui-config+--ui-config-file+--ui-mcp-proxy+--usage+--val-split+--verbose+--verbose-prompt+--verbosity+--version+--video+--video-ffmpeg-dir+--video-fps+--video-timestamp-interval+--vision-gemma-12b-default+--vision-gemma-4b-default+--warmup+--webui+--webui-config+--webui-config-file+--webui-mcp-proxy+--weight-decay+--winogrande+--winogrande-tasks+--xtc-probability+--xtc-threshold+--yarn-attn-factor+--yarn-beta-fast+--yarn-beta-slow+--yarn-ext-factor+--yarn-orig-ctx+-C+-Cb+-Cbd+-Cd+-Cr+-Crb+-Crbd+-Crd+-a+-ag+-b+-bf+-bs+-c+-cb+-cl+-cmoe+-cmoed+-cms+-cnv+-co+-cram+-ctk+-ctkd+-ctv+-ctvd+-ctxcp+-decay-epochs+-dev+-devd+-dr+-dt+-e+-epochs+-f+-fa+-fit+-fitc+-fitp+-fitt+-gan+-gaw+-h+-hf+-hfd+-hff+-hfr+-hfrd+-hft+-i+-if+-j+-jf+-kvo+-kvu+-l+-lcd+-lcs+-lm+-lr+-lr-min+-lv+-lzm+-m+-md+-mg+-mli+-mm+-mmdev+-mmu+-mu+-n+-ncffn+-ncmoe+-ncmoed+-ngl+-ngld+-nkvo+-no-ag+-no-cnv+-no-kvu+-nocb+-np+-npl+-npp+-nr+-ns+-ntg+-o+-ofreq+-opt+-ot+-otd+-p+-pps+-ptc+-r+-rea+-s+-sm+-sp+-sps+-st+-sys+-sysf+-t+-tb+-tbd+-td+-tgs+-to+-ts+-ub+-v+-val-split+-wddiff --git a/src-tauri/src/commands/abliterate/mod.rs b/src-tauri/src/commands/abliterate/mod.rsindex dce34bc5..bc2ac0c7 100644--- a/src-tauri/src/commands/abliterate/mod.rs+++ b/src-tauri/src/commands/abliterate/mod.rs@@ -57,8 +57,11 @@ const HERETIC_VERSION: &str = "1.4.0";/// PyTorch for Apple Silicon from PyPI: the version the prototype ran on.const TORCH_MAC: &str = "torch==2.14.1";-/// llama.cpp's converter, at the commit `scripts/build-llama.sh` builds the-/// engine from (b9949). The archive was fetched from GitHub's codeload host+/// llama.cpp's converter at b9949, the engine's pin until 3.0.9. E1 moved the+/// engine to b11960 and left this one on purpose: the newer engine reads what+/// this converter writes, and a newer converter brings new Python packages+/// that need a refusal-removal run of their own (E1-ENGINE-UPGRADE-RUNBOOK.md,+/// section 7). The archive was fetched from GitHub's codeload host/// on 25.10.2026 and compared with the prototype's copy; size and digest are/// fixed here, so nothing read at run time decides what runs.const LLAMA_COMMIT: &str = "049326a00025d00b08cc188ed716b681e984a3f8";diff --git a/src-tauri/src/commands/engine.rs b/src-tauri/src/commands/engine.rsindex 6a2dd664..695b6d87 100644--- a/src-tauri/src/commands/engine.rs+++ b/src-tauri/src/commands/engine.rs@@ -112,9 +112,9 @@ pub struct EngineTuning {/// GPU layers to offload. <0 = all (999, today's behavior); >=0 explicit/// (0 = CPU-only is a valid expert choice on RAM-starved boxes).pub gpu_layers: i32,- /// Pin model in RAM (`--mlock`).+ /// Pin model in RAM (`--load-mode mlock`, see `load_mode`).pub mlock: bool,- /// Disable mmap (`--no-mmap`): slower load, fewer pageouts. On Windows+ /// Disable mmap (`--load-mode none`): slower load, fewer pageouts. On Windows/// a start with layers on the card has it off anyway (`mmap_off`).pub no_mmap: bool,/// The person chose `ctx` (Settings or the chat's context menu, GH #129@@ -645,7 +645,8 @@ pub(crate) fn stderr_blames_the_image_part(stderr: &str) -> bool {/// the engine never starts. `-m` and `--mmproj` open through UTF-16/// (`ggml_fopen`, `open_ifstream_binary`), and so do the slot files/// themselves, so it is only this check that fails (read in b9949:-/// common/arg.cpp, common/common.cpp).+/// common/arg.cpp, common/common.cpp; unchanged in b11960, arg.cpp still+/// calls `fs_is_directory` on it).////// An ASCII path passes the check in every code page. A path that is not/// ASCII gets its 8.3 short name, when Windows made an ASCII one; a volume@@ -772,7 +773,7 @@ pub(crate) fn same_measured_request(running: &[String], requested: &[String], ct&& (ctx_in(running).unwrap_or(0) >= asked || running_asked == Some(asked))}-/// Whether a start goes without mmap (`--no-mmap`).+/// Whether a start goes without mmap (`--load-mode none`, see `load_mode`).////// Discord (21.10.2026): with gemma-4-31b-it-q4_k_m on a 32 GB Windows PC/// all memory was in use right after the start, while the engine's own@@ -794,6 +795,22 @@ pub(crate) fn mmap_off(tuning: &EngineTuning, ngl: &str, windows: bool) -> booltuning.no_mmap || (windows && ngl != "0")}+/// The `--load-mode` value for the two load settings, `None` for neither.+///+/// 3.0.9 (E1): llama.cpp b11960 removed `--mlock` and `--no-mmap` (upstream+/// #20834 folded them into `--load-mode`, #28334 dropped the old spellings),+/// and an argument the server does not know ends it before it loads. Same+/// meaning as before: `mlock` alone kept the mapping and pinned it, both+/// together read the file into memory and pinned that.+pub(crate) fn load_mode(mlock: bool, no_mmap: bool) -> Option<&'static str> {+ match (mlock, no_mmap) {+ (false, false) => None,+ (false, true) => Some("none"),+ (true, false) => Some("mmap+mlock"),+ (true, true) => Some("mlock"),+ }+}+/// Build the `llama-server` argv for a chat engine.////// `auto_ngl` is what `plan_offload` resolved the "auto" default to, and it is@@ -866,11 +883,9 @@ pub(crate) fn server_args(args.push("-t".into());args.push(tuning.threads.to_string());}- if tuning.mlock {- args.push("--mlock".into());- }- if no_mmap {- args.push("--no-mmap".into());+ if let Some(mode) = load_mode(tuning.mlock, no_mmap) {+ args.push("--load-mode".into());+ args.push(mode.into());}// 3.0.8 (A25): what the VRAM plan decided beyond the layer count. The// experts of the first layers of an MoE model stay on the processor@@ -2193,12 +2208,13 @@ pub(crate) fn pick_save_slot(slots: &serde_json::Value) -> u32 {}/// Whether llama-server can save and restore a slot for an engine started with-/// these arguments. Not with an image part: in the pinned b9949 every slot-/// save, restore and erase first runs `check_no_mtmd`, which answers 501 "This-/// feature is not supported by multimodal" as soon as a projector is loaded-/// (tools/server/server-context.cpp). No flag of that build lifts the check-/// while the projector stays loaded. `--no-mmproj` turns the image part off-/// and counts as without one.+/// these arguments. Not with an image part: in b9949 every slot save, restore+/// and erase first ran `check_no_mtmd`, which answered 501 "This feature is+/// not supported by multimodal" as soon as a projector was loaded+/// (tools/server/server-context.cpp). b11960 (E1, 3.0.9) no longer has that+/// check; until a hand-off with an image part has been measured on the card+/// it stays off here. `--no-mmproj` turns the image part off and counts as+/// without one.pub(crate) fn kv_handoff_possible(args: &[String]) -> bool {!args.iter().any(|a| {let flag = a.split('=').next().unwrap_or(a);@@ -6243,7 +6259,7 @@ mod tests {#[test]fn windows_starts_without_mmap_when_layers_go_to_the_card() {let auto = EngineTuning::default();- let has = |args: &[String]| args.iter().any(|a| a == "--no-mmap");+ let has = |args: &[String]| args.windows(2).any(|w| w[0] == "--load-mode" && w[1] == "none");// Every layer on the card, a measured count, and the engine's own fit.assert!(has(&server_args("/m.gguf", &auto, 8127, None, None, None, true)));assert!(has(&server_args("/m.gguf", &auto, 8127, None, None, Some(35), true)));@@ -6253,13 +6269,13 @@ mod tests {// Once, also when the user ticked it as well.let ticked = EngineTuning { no_mmap: true, ..Default::default() };let args = server_args("/m.gguf", &ticked, 8127, None, None, None, true);- assert_eq!(args.iter().filter(|a| *a == "--no-mmap").count(), 1);+ assert_eq!(args.iter().filter(|a| *a == "--load-mode").count(), 1);}#[test]fn windows_keeps_mmap_on_the_processor_and_other_systems_keep_it_always() {let auto = EngineTuning::default();- let has = |args: &[String]| args.iter().any(|a| a == "--no-mmap");+ let has = |args: &[String]| args.windows(2).any(|w| w[0] == "--load-mode" && w[1] == "none");// Every layer on the processor: the mapping is the model.let cpu = EngineTuning { gpu_layers: 0, ..Default::default() };assert!(!has(&server_args("/m.gguf", &cpu, 8127, None, None, None, true)));@@ -6392,7 +6408,7 @@ mod tests {#[test]fn the_flag_follows_the_machine_it_is_built_for() {let args = super::build_server_args("/m.gguf", &EngineTuning::default(), 8127, None, None, None);- assert_eq!(args.iter().any(|a| a == "--no-mmap"), cfg!(target_os = "windows"));+ assert_eq!(args.iter().any(|a| a == "--load-mode"), cfg!(target_os = "windows"));}#[test]@@ -6739,12 +6755,86 @@ mod tests {"-ctk", "q8_0","-ctv", "q8_0","-t", "8",- "--mlock",- "--no-mmap",+ "--load-mode", "mlock",]);}+ /// E1 (3.0.9): every option LU hands the bundled llama.cpp, checked+ /// against the option list of the pinned tag. b11960 dropped `--mlock`+ /// and `--no-mmap`, and an option the server does not know ends it before+ /// it loads a byte: nothing but a real start would have shown that. The+ /// list is per tag (fixtures/llama-flags/<tag>.txt), so a bump without a+ /// new list turns this red, and a new list shows every option that went.+ #[test]+ fn flags_lu_passes_exist_in_the_pinned_engine() {+ let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR"));+ let script = std::fs::read_to_string(root.join("../scripts/build-llama.sh")).unwrap();+ let tag = script+ .lines()+ .find_map(|l| l.strip_prefix("LLAMA_TAG=\"${LLAMA_TAG:-")?.strip_suffix("}\""))+ .expect("LLAMA_TAG in build-llama.sh");+ let list = std::fs::read_to_string(root.join(format!("fixtures/llama-flags/{tag}.txt")))+ .unwrap_or_else(|_| panic!("fixtures/llama-flags/{tag}.txt is missing: make it from common/arg.cpp of {tag} (see its first lines)"));+ let known: std::collections::HashSet<&str> = list.lines().filter(|l| l.starts_with('-')).collect();++ let everything = EngineTuning {+ ctx: 16384,+ flash_attn: "on".into(),+ cache_type_k: "q8_0".into(),+ cache_type_v: "q8_0".into(),+ threads: 8,+ gpu_layers: 20,+ mlock: true,+ no_mmap: true,+ plan_cpu_moe: 4,+ plan_cache_ram_mib: Some(2048),+ control_vector: Some("/cv.gguf".into()),+ ..Default::default()+ };+ let mut argvs = vec![+ server_args("/m/qwen.gguf", &everything, 8127, Some("/slots"), Some("/m/qwen.mmproj.gguf"), None, true),+ server_args("/m.gguf", &EngineTuning::default(), 8127, None, None, None, false),+ build_embed_args("/e.gguf", 8128),+ ];+ // spawn_private_server_with, the GPU choice and the device probe,+ // and the Neuron tweaker's generator (neuron/mod.rs `generate`).+ argvs.push(["-c", "-np", "--device", "--list-devices", "--control-vector"].map(String::from).to_vec());+ argvs.push(["--positive-file", "--negative-file", "-o", "--method", "-ngl", "-c"].map(String::from).to_vec());+ let src = std::fs::read_to_string(root.join("src/commands/neuron/mod.rs")).unwrap();+ for flag in ["\"--positive-file\"", "\"--negative-file\"", "\"--method\""] {+ assert!(src.contains(flag), "the generator call changed, update this list: {flag}");+ }+ for argv in &argvs {+ for a in argv.iter().filter(|a| a.starts_with('-') && a.parse::<f64>().is_err()) {+ assert!(known.contains(a.as_str()), "llama.cpp {tag} has no option {a} (argv {argv:?})");+ }+ }+ }++ #[test]+ fn load_settings_become_one_load_mode_the_pinned_engine_knows() {+ // E1: b11960 ends on `--mlock` and `--no-mmap` ("invalid argument"),+ // so neither may ever reach the argv again, in any combination.+ assert_eq!(load_mode(false, false), None);+ assert_eq!(load_mode(false, true), Some("none"));+ assert_eq!(load_mode(true, false), Some("mmap+mlock"));+ assert_eq!(load_mode(true, true), Some("mlock"));+ for (mlock, no_mmap) in [(false, false), (false, true), (true, false), (true, true)] {+ let tuning = EngineTuning { mlock, no_mmap, ..Default::default() };+ for windows in [false, true] {+ let args = server_args("/m.gguf", &tuning, 8127, None, None, None, windows);+ assert!(!args.iter().any(|a| a == "--mlock" || a == "--no-mmap" || a == "--mmap"), "{args:?}");+ assert!(args.iter().filter(|a| *a == "--load-mode").count() <= 1, "{args:?}");+ }+ }+ // Windows with layers on the card reads the file in, and a ticked+ // mlock pins that copy.+ let pinned = EngineTuning { mlock: true, ..Default::default() };+ let args = server_args("/m.gguf", &pinned, 8127, None, None, None, true);+ assert!(args.windows(2).any(|w| w[0] == "--load-mode" && w[1] == "mlock"), "{args:?}");+ }+#[test]fn the_log_line_of_a_start_carries_every_resolved_value() {// Bug o, positive control. A support log is worth having only if the@@ -6781,8 +6871,7 @@ mod tests {"-ctk q8_0","-ctv q4_0","-t 6",- "--mlock",- "--no-mmap",+ "--load-mode mlock","--slot-save-path /slots",] {assert!(line.contains(wanted), "{wanted:?} missing from:\n{line}");@@ -6805,7 +6894,7 @@ mod tests {Path::new("/opt/lu/lu-llama-server"),&build_server_args("/m.gguf", &EngineTuning::default(), 8127, None, None, None),);- for unwanted in ["-ctk", "-ctv", "-fa", "-t ", "--mlock", "--no-mmap", "--mmproj", "--slot-save-path"] {+ for unwanted in ["-ctk", "-ctv", "-fa", "-t ", "--load-mode", "--mmproj", "--slot-save-path"] {assert!(!line.contains(unwanted), "{unwanted:?} invented in:\n{line}");}assert!(line.contains("-ngl 999"), "{line}");diff --git a/src-tauri/src/commands/gguf.rs b/src-tauri/src/commands/gguf.rsindex 327c8fbb..bf10d89b 100644--- a/src-tauri/src/commands/gguf.rs+++ b/src-tauri/src/commands/gguf.rs@@ -364,9 +364,10 @@ impl TensorInfo {}/// (elements per block, bytes per block) of a ggml type, as ggml.c's-/// `type_traits` define them for the pinned llama.cpp (b9949). The block-/// sizes were measured with `sizeof(block_*)` from ggml-common.h of that-/// tree, not copied from documentation.+/// `type_traits` define them for llama.cpp b9949. The block sizes were+/// measured with `sizeof(block_*)` from ggml-common.h of that tree, not+/// copied from documentation. b11960 (the pin since E1, 3.0.9) has the same+/// type list (up to Q2_0 = 42, GGML_TYPE_COUNT 43) and the same block structs.pub fn ggml_type_block(t: u32) -> Option<(u64, u64)> {Some(match t {0 => (1, 4), // F32diff --git a/src-tauri/src/commands/neuron/cvec.rs b/src-tauri/src/commands/neuron/cvec.rsindex 1f613a90..3b373bb0 100644--- a/src-tauri/src/commands/neuron/cvec.rs+++ b/src-tauri/src/commands/neuron/cvec.rs@@ -341,8 +341,8 @@ mod tests {#[test]fn reads_a_file_cvector_generator_wrote() {- // A real file from the pinned llama-cvector-generator (b9949) is too- // big to keep; the generator's layout is what to_bytes writes, and a+ // A real file of a large model is too big to keep (a small one is,+ // see the next test); the generator's layout is what to_bytes writes, and a// tensor of another type must be refused, not summed.let mut bytes = to_bytes(&sample(), "x", 3);// Flip the type of the first tensor to F16 (1).@@ -352,6 +352,23 @@ mod tests {assert!(read_from(&mut bytes.as_slice()).unwrap_err().contains("not F32"));}+ #[test]+ fn reads_a_real_file_of_the_pinned_generator() {+ // E1 (3.0.9): a real direction from lu-llama-cvector-generator b11960+ // (Qwen2.5-0.5B-Instruct Q8_0, --method mean, the 18 pairs beside it+ // in fixtures/cvec). Small enough to keep, so an engine bump that+ // changes the generator's layout turns this red instead of the slider.+ let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("fixtures/cvec/qwen2.5-0.5b-anger-b11960.gguf");+ let cv = read(&path).expect("the generator's own file reads");+ assert_eq!(cv.n_embd, 896, "Qwen2.5-0.5B hidden size");+ assert_eq!(cv.layers.len(), 23, "one direction per layer after the first");+ assert!(cv.layers.values().flatten().all(|v| v.is_finite()));+ assert!(!cv.is_zero());+ // What the mixer writes from it reads back the same.+ let again = read_from(&mut to_bytes(&cv, "qwen2.5-0.5b", 24).as_slice()).unwrap();+ assert_eq!(again.layers, cv.layers);+ }+#[test]fn mixing_sums_with_scales() {let mut mix = ControlVector::new(5);diff --git a/src-tauri/src/commands/neuron/mod.rs b/src-tauri/src/commands/neuron/mod.rsindex ab973a46..0144460d 100644--- a/src-tauri/src/commands/neuron/mod.rs+++ b/src-tauri/src/commands/neuron/mod.rs@@ -19,7 +19,7 @@//! The active sliders are mixed into one file (`cvec.rs`), whose name is a//! hash of its content, and the engine is restarted with it. llama-server//! cannot change control vectors while it runs (no endpoint for it in-//! b9949), so "live" is a restart of a few seconds.+//! b9949, none in b11960 either), so "live" is a restart of a few seconds.//!//! ── Files ──────────────────────────────────────────────────────────────────//!diff --git a/src-tauri/src/commands/vram_plan.rs b/src-tauri/src/commands/vram_plan.rsindex 0b78c83e..915b9554 100644--- a/src-tauri/src/commands/vram_plan.rs+++ b/src-tauri/src/commands/vram_plan.rs@@ -10,11 +10,16 @@//! the card where about 27 fit. At 8K it went the other way: 4.1 GiB real//! against 1.9 priced, so too many layers and the risk of running out.//!-//! WHAT. Everything here follows the pinned llama.cpp (b9949,-//! scripts/build-llama.sh) line by line, and the tests check it against that-//! llama.cpp's own numbers (`llama-fit-params --fit-print` and the buffer+//! WHAT. Everything here follows llama.cpp b9949 line by line, and the tests+//! check it against that llama.cpp's own numbers (`llama-fit-params --fit-print` and the buffer//! sizes `llama-server -lv 4` reports) for real model heads://!+//! E1 (3.0.9) moved the pin to b11960 without new oracle files. Measured+//! there with the same argv (Qwen3.5-9B Q4_K_M, Metal, 8K): weights and+//! KV/RS buffers identical, compute buffers +16 MiB on the card and +16 MiB+//! on the processor (120.02/40.02 against 104.39/24.02). The after-start+//! check reads the real numbers, so that gap is caught there.+//!//! * weights: summed per layer from the tensor table (llama-model.cpp,//! `load_tensors`). `-ngl N` puts the OUTPUT layer on the card first and//! then the last N-1 repeating layers (`i_gpu_start = n_layer + 1 - N`);diff --git a/src/api/__tests__/kimi-k3-catalog.test.ts b/src/api/__tests__/kimi-k3-catalog.test.tsindex 66215a04..7b5d8628 100644--- a/src/api/__tests__/kimi-k3-catalog.test.ts+++ b/src/api/__tests__/kimi-k3-catalog.test.ts@@ -98,11 +98,14 @@ describe('Kimi K3 (offene Gewichte seit 27.07.2026)', () => {expect(shown).toHaveLength(ENGINE_OPENS_GATED_ARCHS.has(KIMI_K3_ARCH) ? 3 : 0)})- it('das Tor bleibt zu, solange scripts/build-llama.sh b9949 pinnt (kennt kimi-k3 nicht)', () => {+ it('das Tor bleibt zu ohne echten Ladelauf (b9949 kennt kimi-k3 nicht, b11960 kennt es, geladen hat es noch niemand)', () => {const skript = readFileSync(resolve(hier, '../../../scripts/build-llama.sh'), 'utf8')const tag = parsePinnedLlamaTag(skript)expect(tag).not.toBeNull()- if (tag === 'b9949') expect(ENGINE_OPENS_GATED_ARCHS.size).toBe(0)+ // E1 (3.0.9): b11960 fuehrt LLM_ARCH_KIMI_K3 in src/llama-arch.cpp. Das+ // Tor ist trotzdem kein Pin-Schalter: umgelegt wird es erst nach einem+ // echten Ladelauf (466 GB), siehe Kopf von kimi-k3-catalog.ts.+ if (tag === 'b9949' || tag === 'b11960') expect(ENGINE_OPENS_GATED_ARCHS.size).toBe(0)})})diff --git a/src/api/discover.ts b/src/api/discover.tsindex e6f6cd8a..a6e5b502 100644--- a/src/api/discover.ts+++ b/src/api/discover.ts@@ -1025,8 +1025,9 @@ export function getUncensoredTextModels(): DiscoverModel[] {// Two independent uncensors of the same dense 27B base. Both are native// vision-language models, so every entry carries the repo's own mmproj and// LU downloads it with the model (see `mmprojFileName`). The MTP head that- // ships inside these GGUFs loads fine on the pinned llama.cpp b9949, which+ // ships inside these GGUFs loads fine on llama.cpp b9949, which// implements the qwen35 MTP block, so we point at the plain files.+ // (E1, 3.0.9: the pin is b11960 now; these two were not loaded there.)//// The uncensored build is OrcaRouter's abliteration. Its own GGUF repo// (orcarouter/Qwen3.8-27B-Uncensored-GGUF) is gated: every file answersdiff --git a/src/api/kimi-k3-catalog.ts b/src/api/kimi-k3-catalog.tsindex 49a6b4ab..46c79ce7 100644--- a/src/api/kimi-k3-catalog.ts+++ b/src/api/kimi-k3-catalog.ts@@ -18,7 +18,9 @@* der HF-Dateiliste), erscheinen aber erst, wenn `ENGINE_OPENS_GATED_ARCHS`* die Architektur nennt. Das ist der Schalter, und er gehoert erst umgelegt,* wenn LLAMA_TAG/LLAMA_COMMIT gehoben UND ein echter Ladelauf gemacht ist.- * __tests__/kimi-k3-catalog.test.ts haelt ihn fest, solange b9949 gepinnt ist,+ * E1 (3.0.9, Pin b11960): b11960 fuehrt `kimi-k3` in src/llama-arch.cpp,+ * geladen hat es noch niemand, also bleibt das Tor zu.+ * __tests__/kimi-k3-catalog.test.ts haelt ihn fest, solange kein Ladelauf da ist,* und der Architektur-Waechter (katalog-architektur.live.test.ts) liest die* Kopfbytes, sobald die K3-Eintraege in getMainstreamTextModels stehen.*@@ -58,7 +60,7 @@ import { log } from '../lib/logger'/*** Architekturen aus den Kimi-K3-Familien, die die ausgelieferte Engine- * oeffnet. Leer, solange LLAMA_TAG b9949 gepinnt ist (siehe Kopf).+ * oeffnet. Leer bis zum echten Ladelauf (siehe Kopf).* Umlegen heisst: 'kimi-k3' eintragen, nachdem Tag gehoben und geladen ist.*/export const ENGINE_OPENS_GATED_ARCHS: ReadonlySet<string> = new Set<string>([])diff --git a/src/api/providers/__tests__/local-effort-payload.test.ts b/src/api/providers/__tests__/local-effort-payload.test.tsindex 4f0d7813..27acfb7b 100644--- a/src/api/providers/__tests__/local-effort-payload.test.ts+++ b/src/api/providers/__tests__/local-effort-payload.test.ts@@ -99,7 +99,7 @@ afterEach(() => {vi.resetModules()})-describe('LU Engine (llama-server b9949): template variable plus budget', () => {+describe('LU Engine (llama-server b9949, b11960): template variable plus budget', () => {const levels = ['low', 'medium', 'high']it('Low goes into the template and sets a 1024 token budget when the Think budget is Auto', async () => {@@ -139,6 +139,36 @@ describe('LU Engine (llama-server b9949): template variable plus budget', () =>expect('thinking_budget_tokens' in chatBody()).toBe(false)})+ it('E1: the rung never goes out top-level, b11960 would write it over the template variable', async () => {+ const p = await makeOpenAI(ENGINE)+ // Think on, no rung picked: before 3.0.7 and after, the template keeps its own default.+ await drain(p.chatStream('gpt-oss-20b', [{ role: 'user', content: 'hi' }], { thinking: true, effortLevels: levels }))+ expect('reasoning_effort' in chatBody()).toBe(false)+ expect(chatBody().chat_template_kwargs).toEqual({ enable_thinking: true })+ // Max: the template gets the 'high' applyLocalEffort chose, nothing says 'max'.+ await drain(p.chatStream('gpt-oss-20b', [{ role: 'user', content: 'hi' }], {+ thinking: true, reasoningEffort: 'max', localEffortChosen: true, effortLevels: levels,+ }))+ const max = sent.filter((s) => s.url.endsWith('/chat/completions')).map((s) => s.body)[1]+ expect('reasoning_effort' in max).toBe(false)+ expect(max.chat_template_kwargs?.reasoning_effort).toBe('high')+ // Think off: enable_thinking false, no 'none' beside it.+ await drain(p.chatStream('gpt-oss-20b', [{ role: 'user', content: 'hi' }], { thinking: false, effortLevels: levels }))+ const off = sent.filter((s) => s.url.endsWith('/chat/completions')).map((s) => s.body)[2]+ expect('reasoning_effort' in off).toBe(false)+ expect(off.chat_template_kwargs).toEqual({ enable_thinking: false })+ })++ it('E1: the same holds for the tool turn', async () => {+ const p = await makeOpenAI(ENGINE)+ await p.chatWithTools('qwen3-8b', [{ role: 'user', content: 'hi' }], [], {+ thinking: true, reasoningEffort: 'low', localEffortChosen: true, effortLevels: levels, thinkingBudget: 0,+ })+ expect('reasoning_effort' in chatBody()).toBe(false)+ expect(chatBody().chat_template_kwargs).toEqual({ enable_thinking: true, reasoning_effort: 'low' })+ expect(chatBody().thinking_budget_tokens).toBe(1024)+ })+it('every engine model offers the three rungs', async () => {const { bundledToAIModels } = await import('../../engine')const [row] = bundledToAIModels([{ name: 'qwen3-8b.gguf', path: '/m/qwen3-8b.gguf', size: 1 } as never])@@ -240,11 +270,17 @@ describe('a backend we cannot place', () => {* ladder, so thinkingEffort answered DEFAULT_EFFORT and chatStream put* `reasoning_effort: 'high'` at the top level and `chat_template_kwargs:* { enable_thinking: true }` beside it, and nothing else. LM Studio and- * KoboldCpp read that top-level 'high'; the LU Engine and llama.cpp ignore it,+ * KoboldCpp read that top-level 'high'; the LU Engine and llama.cpp ignored it,* so gpt-oss ran on the Medium its template sets for itself.+ *+ * E1 (3.0.9): the LU Engine (b11960) reads that top-level field now and puts+ * it into the template, so for the engine the same result means the field+ * stays off the wire (keepEffortOffEngineTopLevel). The effect is pinned, not+ * the bytes: nothing reaches the template.*/describe('no rung picked for a local model yet: the request from before 3.0.7', () => {const PRE_307 = { reasoning_effort: 'high', chat_template_kwargs: { enable_thinking: true } }+ const ENGINE_PRE_307 = { reasoning_effort: undefined, chat_template_kwargs: { enable_thinking: true } }const shape = (b: OpenAIChatRequest) => ({reasoning_effort: b.reasoning_effort,chat_template_kwargs: b.chat_template_kwargs,@@ -258,7 +294,7 @@ describe('no rung picked for a local model yet: the request from before 3.0.7',localEffortChosen: false,}))expect(chatBody().chat_template_kwargs).toEqual({ enable_thinking: true })- expect(shape(chatBody())).toEqual({ ...PRE_307, budget: false })+ expect(shape(chatBody())).toEqual({ ...ENGINE_PRE_307, budget: false })})it('LU Engine: a caller that does not say counts as not picked, Low included', async () => {@@ -266,7 +302,7 @@ describe('no rung picked for a local model yet: the request from before 3.0.7',await drain(p.chatStream('gpt-oss-20b', [{ role: 'user', content: 'hi' }], {thinking: true, reasoningEffort: 'low', effortLevels: ['low', 'medium', 'high'], thinkingBudget: 0,}))- expect(shape(chatBody())).toEqual({ ...PRE_307, budget: false })+ expect(shape(chatBody())).toEqual({ ...ENGINE_PRE_307, budget: false })})it('LU Engine, the non-streaming path too', async () => {@@ -274,7 +310,7 @@ describe('no rung picked for a local model yet: the request from before 3.0.7',await p.chatWithTools('gpt-oss-20b', [{ role: 'user', content: 'hi' }], [], {thinking: true, reasoningEffort: 'medium', effortLevels: ['low', 'medium', 'high'],})- expect(shape(chatBody())).toEqual({ ...PRE_307, budget: false })+ expect(shape(chatBody())).toEqual({ ...ENGINE_PRE_307, budget: false })})it('LU Engine: a Think budget of your own still goes out, it is a pick of its own', async () => {diff --git a/src/api/providers/__tests__/openai-template-thinking.test.ts b/src/api/providers/__tests__/openai-template-thinking.test.tsindex 158594f2..87969517 100644--- a/src/api/providers/__tests__/openai-template-thinking.test.ts+++ b/src/api/providers/__tests__/openai-template-thinking.test.ts@@ -124,9 +124,16 @@ describe('the built-in engine is told to think', () => {expect(sent[0].body.chat_template_kwargs).toEqual({ enable_thinking: true })})- it('reasoning_effort still rides along, so a template-less local server keeps working', async () => {+ it('E1 (b11960): beside the template switch the engine gets no top-level reasoning_effort, it would land in the template', async () => {const p = await makeProvider(BUILTIN)await drain(p.chatStream('kw-both', [{ role: 'user', content: 'hi' }], { thinking: true }))+ expect(sent[0].body.chat_template_kwargs).toEqual({ enable_thinking: true })+ expect('reasoning_effort' in sent[0].body).toBe(false)+ })++ it('a self-hosted local server still gets reasoning_effort beside the switch', async () => {+ const p = await makeProvider({ ...BUILTIN, managed: undefined, baseUrl: 'http://127.0.0.1:8080/v1' })+ await drain(p.chatStream('kw-both', [{ role: 'user', content: 'hi' }], { thinking: true }))expect(sent[0].body.reasoning_effort).toBe('high')})})diff --git a/src/api/providers/openai-provider.ts b/src/api/providers/openai-provider.tsindex 72004fa4..a639a380 100644--- a/src/api/providers/openai-provider.ts+++ b/src/api/providers/openai-provider.ts@@ -702,7 +702,7 @@ export class OpenAIProvider implements ProviderClient {/*** Think budget (D12), for the app's own engine only.*- * The pinned llama-server b9949 reads `thinking_budget_tokens` on every+ * The bundled llama-server (b9949, and b11960 since 3.0.9) reads `thinking_budget_tokens` on every* chat request and ends the thought by force once that many tokens are* spent (tools/server/server-common.cpp, reasoning budget sampler). Any* other server in this slot is a version we do not know, and the cloud@@ -774,6 +774,30 @@ export class OpenAIProvider implements ProviderClient {applyLocalEffort(body, await this.localEffortServer(), options?.thinkingBudget)}+ /**+ * E1 (3.0.9): no top-level `reasoning_effort` to the LU Engine. b9949+ * ignored the field; b11960 reads it and writes it over the template+ * variable (tools/server/server-common.cpp: "Parse the OAI+ * reasoning_effort field"), after `chat_template_kwargs`. So the 'high'+ * every Think-on request carries would set gpt-oss to High although the+ * user never picked a rung (see localEffortWaits), Max would reach a+ * template as 'max' instead of the 'high' applyLocalEffort chose, and+ * 'none' would switch thinking off a second way. The rung travels where+ * applyLocalEffort put it, the request stays the one b9949 got. Only while+ * `chat_template_kwargs` carries the switch: where they were refused the+ * top-level field is the one signal left (the phone engine reads it then,+ * engine_inproc.rs `thinking_wish`).+ */+ private keepEffortOffEngineTopLevel(body: OpenAIChatRequest): void {+ if (this.config.managed !== true || !body.chat_template_kwargs || body.reasoning_effort === undefined) return+ OpenAIProvider.engineEffortHeld.set(body, body.reasoning_effort)+ delete body.reasoning_effort+ }++ /** The top-level rung keepEffortOffEngineTopLevel took off a body, for the+ * retry without `chat_template_kwargs` that needs it back. */+ private static engineEffortHeld = new WeakMap<OpenAIChatRequest, string>()+/** The LU Engine or a server on this machine or the LAN, LU Cloud aside. */private get isLocalEffortSlot(): boolean {return this.config.managed === true || (this.isLanBackend && this.config.id !== 'lu-cloud')@@ -871,6 +895,8 @@ export class OpenAIProvider implements ProviderClient {// the extra round trip is paid once and not on every message.if (!stopped() && refused(res) && 'chat_template_kwargs' in body) {delete body.chat_template_kwargs+ const held = OpenAIProvider.engineEffortHeld.get(body)+ if (held !== undefined) body.reasoning_effort = heldres = await post()if (res.ok) OpenAIProvider.templateKwargsRefused.add(this.baseUrl)}@@ -1062,6 +1088,7 @@ export class OpenAIProvider implements ProviderClient {if (tmplKwargs) body.chat_template_kwargs = tmplKwargsthis.applyThinkBudget(body, options)await this.applyLocalEffortForm(body, model, options)+ this.keepEffortOffEngineTopLevel(body)// Round 10, phone only: the caller ends the messages with a cut answer// and the engine of the phone goes on inside it. Absent on every other send.if (options?.continueFinalMessage) body.continue_final_message = true@@ -1308,6 +1335,7 @@ export class OpenAIProvider implements ProviderClient {if (tmplKwargs) body.chat_template_kwargs = tmplKwargsthis.applyThinkBudget(body, options)await this.applyLocalEffortForm(body, model, options)+ this.keepEffortOffEngineTopLevel(body)if (options?.jsonSchema && this.config.id !== 'lu-cloud') {body.response_format = { type: 'json_schema', json_schema: { name: 'answer', schema: options.jsonSchema } }}diff --git a/src/lib/local-effort.ts b/src/lib/local-effort.tsindex 342c6d24..ff68032c 100644--- a/src/lib/local-effort.ts+++ b/src/lib/local-effort.ts@@ -14,6 +14,9 @@ import { normalizeThinkBudget } from './think-budget'** - LU Engine (llama-server b9949, commit 049326a0): the server itself has* no `reasoning_effort` field (no match anywhere under tools/server).+ * b11960 (the pin since 3.0.9, E1) reads a top-level one and writes it+ * over the template variable; LU keeps it off the engine's wire+ * (openai-provider.ts keepEffortOffEngineTopLevel), so what follows holds.* It passes `chat_template_kwargs` into the model's Jinja template* (tools/server/server-common.cpp), and the templates that know effort* read a `reasoning_effort` variable there (models/templates/diff --git a/src/lib/think-budget.ts b/src/lib/think-budget.tsindex d54ca9e6..1239ac3e 100644--- a/src/lib/think-budget.ts+++ b/src/lib/think-budget.ts@@ -12,7 +12,7 @@ import type { ProviderId } from '../api/providers/types'* Which backends really take a token budget (read from their sources and API* references, 14.10.2026):*- * - Bundled engine (llama-server b9949, commit 049326a0): per request+ * - Bundled engine (llama-server b9949, commit 049326a0; unchanged in b11960): per request* `thinking_budget_tokens` on /v1/chat/completions, see* tools/server/server-common.cpp. The server hands it to its reasoning* budget sampler, which forces the end of the thought once the budget is