From f5cb4b8ff35ffe471419b0c9adc5fdb770f34bd2 Mon Sep 17 00:00:00 2001 From: C_Tamas Date: Tue, 20 Oct 2026 14:39:20 +0700 Subject: [PATCH] server: the panel names the family the vector was validated against MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The summary line led with the layer range, which is the least load-bearing term on it: a file carrying another model's directions is refused at startup, so the range alone never tells the operator whether this vector belongs to the model on the card. The panel now reads `qwen4exp · layers 4-44 · project · scale 1`, with the family taken from the same `meta_.arch_id` the loader compared against the file's `controlvector.model_hint` -- served as `arch` in the payload, not invented by the page. The switch's label says what it does rather than what it is called, and the note under it says why the change is not retroactive: a running request keeps the choice it was admitted with, and a session with a refusal already in its context may repeat it. --- core/engine.cpp | 3 +++ core/server/dashboard.cpp | 24 ++++++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/core/engine.cpp b/core/engine.cpp index 92cfc965..fff9bb5f 100644 --- a/core/engine.cpp +++ b/core/engine.cpp @@ -1638,6 +1638,9 @@ std::string Engine::cvec_json() const { o["available"] = cvec_.loaded(); o["default"] = cvec_default_.load(); if (cvec_.loaded()) { + /* The family the file was validated against, not a label the UI supplies: this is the same + * `meta_.arch_id` the loader compared against the file's own model_hint. */ + o["arch"] = meta_.arch_id ? meta_.arch_id : ""; o["first"] = cvec_.first; o["last"] = cvec_.last; o["n_embd"] = cvec_.n_embd; diff --git a/core/server/dashboard.cpp b/core/server/dashboard.cpp index 320c3d05..16bac914 100644 --- a/core/server/dashboard.cpp +++ b/core/server/dashboard.cpp @@ -472,6 +472,13 @@ h1 { margin:0; font-size:13.5px; font-weight:600; letter-spacing:-.005em; } .aside { font-family:var(--mono); font-size:11.5px; color:var(--dim); } .pbody { padding:14px 16px 16px; } +/* The control vector's switch: a checkbox row with its explanation under it. The two need a gap + between them, because the explanation is set at the size every caption on this page uses, and a + line that sits flush under the one above it reads as that line's tail, not as a sentence. It is + inset a little too, so it does not start on the same edge as the row it belongs to. */ +.cvrow { display:flex; align-items:center; gap:8px; } +#cvnote { margin-top:9px; padding-left:4px; } + /* ------------------------------------------------ THE FIRST ROW IS FIXED, THE REST FIT THEIR CONTENT A card whose content changes LENGTH moves every card under it while it is being read, and one card here does that every poll: the list of requests gains and loses rows. So the first row -- @@ -1238,13 +1245,13 @@ nav button.on { color:var(--fg); background:var(--track); } reload, and every request that names its own choice overrides it. -->