onw 0.15.2: model picker follows the loaded model, unsaved-settings bar
Browse files- CHANGELOG.md +6 -0
- CHANGELOG_en.md +5 -0
- onw/__init__.py +1 -1
- onw/i18n.json +4 -0
- onw/web/manage.html +22 -6
- pyproject.toml +1 -1
CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@
|
|
| 5 |
日付は日本時間です。各版は Hugging Face の `ryugyosoft/onw` にタグ(`v0.4.2` 以降)付きで残っています。
|
| 6 |
onw ウィンドウは、新しい版があるとこのファイルから変更点を表示します(`## v…` の見出しで区切っています)。
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
## v0.15.1 (2026-10-06)
|
| 9 |
- メモリ節約モードで、起動時に 1 トークン用と 16 トークン用のグラフを一度両方読み込んでいたのをやめました。2 回目以降は
|
| 10 |
16 トークン用だけを読み込み、初回(コンパイル済みのものがないとき)は 1 トークン用を区間ごとに「コンパイルして保存し、すぐ
|
|
|
|
| 5 |
日付は日本時間です。各版は Hugging Face の `ryugyosoft/onw` にタグ(`v0.4.2` 以降)付きで残っています。
|
| 6 |
onw ウィンドウは、新しい版があるとこのファイルから変更点を表示します(`## v…` の見出しで区切っています)。
|
| 7 |
|
| 8 |
+
## v0.15.2 (2026-10-06)
|
| 9 |
+
- onw ウィンドウ:「モデル」タブでモデルをロードしても、「サーバー」タブの「使うモデル」の欄が前に選んでいたモデルのままだった
|
| 10 |
+
問題を修正。ロード中のモデルが変わったら、欄もそのモデルに合わせます(自分で選び直した分はそのまま残します)。
|
| 11 |
+
- onw ウィンドウ:設定を変えてまだ保存していないときは、画面の下に「未保存の設定があります」のバーを出すように(どのタブでも
|
| 12 |
+
表示)。バーから「保存」と「元に戻す」ができます。
|
| 13 |
+
|
| 14 |
## v0.15.1 (2026-10-06)
|
| 15 |
- メモリ節約モードで、起動時に 1 トークン用と 16 トークン用のグラフを一度両方読み込んでいたのをやめました。2 回目以降は
|
| 16 |
16 トークン用だけを読み込み、初回(コンパイル済みのものがないとき)は 1 トークン用を区間ごとに「コンパイルして保存し、すぐ
|
CHANGELOG_en.md
CHANGED
|
@@ -4,6 +4,11 @@
|
|
| 4 |
|
| 5 |
Dates are JST. Every version is on Hugging Face `ryugyosoft/onw`, tagged from `v0.4.2` on.
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
## v0.15.1 (2026-10-06)
|
| 8 |
- Memory-saving mode no longer loads both the 1-token and 16-token graphs at startup. Later loads read only the 16-token
|
| 9 |
graphs; the first one (nothing compiled yet) compiles the 1-token graphs segment by segment into the blob store and lets
|
|
|
|
| 4 |
|
| 5 |
Dates are JST. Every version is on Hugging Face `ryugyosoft/onw`, tagged from `v0.4.2` on.
|
| 6 |
|
| 7 |
+
## v0.15.2 (2026-10-06)
|
| 8 |
+
- onw window: loading a model from the Models tab left the Server tab's model picker on the model chosen before. When the
|
| 9 |
+
loaded model changes, the picker now follows it (a choice made there by hand still stays).
|
| 10 |
+
- onw window: changed but unsaved settings bring up a bar at the bottom (on every tab) with Save and Discard.
|
| 11 |
+
|
| 12 |
## v0.15.1 (2026-10-06)
|
| 13 |
- Memory-saving mode no longer loads both the 1-token and 16-token graphs at startup. Later loads read only the 16-token
|
| 14 |
graphs; the first one (nothing compiled yet) compiles the 1-token graphs segment by segment into the blob store and lets
|
onw/__init__.py
CHANGED
|
@@ -2,4 +2,4 @@
|
|
| 2 |
|
| 3 |
A small engine that runs LLMs entirely on the Intel NPU: static segment graphs + host-managed state.
|
| 4 |
"""
|
| 5 |
-
__version__ = "0.15.
|
|
|
|
| 2 |
|
| 3 |
A small engine that runs LLMs entirely on the Intel NPU: static segment graphs + host-managed state.
|
| 4 |
"""
|
| 5 |
+
__version__ = "0.15.2"
|
onw/i18n.json
CHANGED
|
@@ -159,6 +159,7 @@
|
|
| 159 |
"俺のNPUがこんなに動くわけない": "There's no way my NPU runs this well",
|
| 160 |
"停止": "Stop",
|
| 161 |
"停止中": "Stopped",
|
|
|
|
| 162 |
"先読み検証(PLD)": "Prompt lookup (PLD)",
|
| 163 |
"先読み検証(PLD)で高速化する": "Speed up with prompt lookup (PLD)",
|
| 164 |
"入れ替え中": "Replacing files",
|
|
@@ -222,6 +223,7 @@
|
|
| 222 |
"最新版です": "You're up to date",
|
| 223 |
"最終確認 {0}": "Last checked {0}",
|
| 224 |
"有効": "On",
|
|
|
|
| 225 |
"未取得": "Not downloaded",
|
| 226 |
"未設定なら何を入れても通ります": "Not set: any key is accepted",
|
| 227 |
"東京は日本の首都であり、政治・経済・文化の中心地である。江戸時代には徳川幕府が置かれ、1868年の明治維新で東京と改称された。現在は約1400万人が暮らす世界有数の大都市で、多くの企業や大学が集まっている。": "Tokyo is the capital of Japan and the center of its politics, economy and culture. In the Edo period it was the seat of the Tokugawa shogunate, and it was renamed Tokyo in the Meiji Restoration of 1868. Today about 14 million people live there, making it one of the largest cities in the world, home to many companies and universities.",
|
|
@@ -431,6 +433,7 @@
|
|
| 431 |
"俺のNPUがこんなに動くわけない": "我的NPU哪有这么能跑",
|
| 432 |
"停止": "停止",
|
| 433 |
"停止中": "已停止",
|
|
|
|
| 434 |
"先読み検証(PLD)": "提示查找(PLD)",
|
| 435 |
"先読み検証(PLD)で高速化する": "使用提示查找(PLD)加速",
|
| 436 |
"入れ替え中": "正在替换文件",
|
|
@@ -494,6 +497,7 @@
|
|
| 494 |
"最新版です": "已是最新版本",
|
| 495 |
"最終確認 {0}": "上次检查 {0}",
|
| 496 |
"有効": "开启",
|
|
|
|
| 497 |
"未取得": "未下载",
|
| 498 |
"未設定なら何を入れても通ります": "未设置时任何密钥都可通过",
|
| 499 |
"東京は日本の首都であり、政治・経済・文化の中心地である。江戸時代には徳川幕府が置かれ、1868年の明治維新で東京と改称された。現在は約1400万人が暮らす世界有数の大都市で、多くの企業や大学が集まっている。": "东京是日本的首都,也是政治、经济和文化的中心。江户时代德川幕府设在这里,1868年明治维新时改称东京。如今约有1400万人居住于此,是世界屈指可数的大都市,聚集了众多企业和大学。",
|
|
|
|
| 159 |
"俺のNPUがこんなに動くわけない": "There's no way my NPU runs this well",
|
| 160 |
"停止": "Stop",
|
| 161 |
"停止中": "Stopped",
|
| 162 |
+
"元に戻す": "Discard",
|
| 163 |
"先読み検証(PLD)": "Prompt lookup (PLD)",
|
| 164 |
"先読み検証(PLD)で高速化する": "Speed up with prompt lookup (PLD)",
|
| 165 |
"入れ替え中": "Replacing files",
|
|
|
|
| 223 |
"最新版です": "You're up to date",
|
| 224 |
"最終確認 {0}": "Last checked {0}",
|
| 225 |
"有効": "On",
|
| 226 |
+
"未保存の設定があります。「保存」を押すまで反映されません。": "You have unsaved settings. They take effect only after you press Save.",
|
| 227 |
"未取得": "Not downloaded",
|
| 228 |
"未設定なら何を入れても通ります": "Not set: any key is accepted",
|
| 229 |
"東京は日本の首都であり、政治・経済・文化の中心地である。江戸時代には徳川幕府が置かれ、1868年の明治維新で東京と改称された。現在は約1400万人が暮らす世界有数の大都市で、多くの企業や大学が集まっている。": "Tokyo is the capital of Japan and the center of its politics, economy and culture. In the Edo period it was the seat of the Tokugawa shogunate, and it was renamed Tokyo in the Meiji Restoration of 1868. Today about 14 million people live there, making it one of the largest cities in the world, home to many companies and universities.",
|
|
|
|
| 433 |
"俺のNPUがこんなに動くわけない": "我的NPU哪有这么能跑",
|
| 434 |
"停止": "停止",
|
| 435 |
"停止中": "已停止",
|
| 436 |
+
"元に戻す": "撤销",
|
| 437 |
"先読み検証(PLD)": "提示查找(PLD)",
|
| 438 |
"先読み検証(PLD)で高速化する": "使用提示查找(PLD)加速",
|
| 439 |
"入れ替え中": "正在替换文件",
|
|
|
|
| 497 |
"最新版です": "已是最新版本",
|
| 498 |
"最終確認 {0}": "上次检查 {0}",
|
| 499 |
"有効": "开启",
|
| 500 |
+
"未保存の設定があります。「保存」を押すまで反映されません。": "有未保存的设置。按“保存”后才会生效。",
|
| 501 |
"未取得": "未下载",
|
| 502 |
"未設定なら何を入れても通ります": "未设置时任何密钥都可通过",
|
| 503 |
"東京は日本の首都であり、政治・経済・文化の中心地である。江戸時代には徳川幕府が置かれ、1868年の明治維新で東京と改称された。現在は約1400万人が暮らす世界有数の大都市で、多くの企業や大学が集まっている。": "东京是日本的首都,也是政治、经济和文化的中心。江户时代德川幕府设在这里,1868年明治维新时改称东京。如今约有1400万人居住于此,是世界屈指可数的大都市,聚集了众多企业和大学。",
|
onw/web/manage.html
CHANGED
|
@@ -110,6 +110,10 @@
|
|
| 110 |
.dlg .msg { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 10px; }
|
| 111 |
.dlg input, .dlg select { width: 100%; margin-bottom: 10px; }
|
| 112 |
.banner { background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 4px 8px; margin: 0 2px 6px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
@media (max-width: 640px) {
|
| 114 |
header .env { display: none; }
|
| 115 |
.c { display: none; }
|
|
@@ -133,6 +137,7 @@
|
|
| 133 |
<span class="pill" id="hpill">…</span>
|
| 134 |
</header>
|
| 135 |
|
|
|
|
| 136 |
<main>
|
| 137 |
<div class="banner small" id="oldtray" style="display:none"></div>
|
| 138 |
<section class="page on" id="page-server">
|
|
@@ -249,7 +254,7 @@
|
|
| 249 |
const TOKEN = new URLSearchParams(location.search).get("token") || "";
|
| 250 |
const $ = id => document.getElementById(id);
|
| 251 |
const esc = s => String(s ?? "").replace(/[&<>"']/g, c => ({"&": "&", "<": "<", ">": ">", '"': """, "'": "'"}[c]));
|
| 252 |
-
let S = null, dirty = false, tt, lastRows = "", lastPick = "";
|
| 253 |
|
| 254 |
function show(page) {
|
| 255 |
document.querySelectorAll("header .tab").forEach(x => x.classList.toggle("on", x.dataset.page === page));
|
|
@@ -318,12 +323,16 @@
|
|
| 318 |
$("sbusy").className = "small " + (s.busy_err || (!s.busy && st === "failed") ? "err" : "muted");
|
| 319 |
for (const id of ["b-chat", "b-check"]) $(id).disabled = st !== "running";
|
| 320 |
$("b-unload").disabled = !(st === "running" || st === "loading");
|
| 321 |
-
// model picker (keeps the user's choice)
|
| 322 |
const inst = s.models.filter(m => m.path), pick = $("pick");
|
| 323 |
-
const
|
|
|
|
|
|
|
|
|
|
| 324 |
: (sv.model && inst.some(m => m.key === sv.model) ? sv.model : (inst.find(m => m.key === s.config.model) || inst[0] || {}).key);
|
| 325 |
const pickHtml = inst.map(m => `<option value="${esc(m.key)}"${m.key === cur ? " selected" : ""}>${esc(m.title)} — ${esc(m.path)}${m.key === sv.model ? T("(ロード済み)") : ""}</option>`).join("");
|
| 326 |
if (pickHtml !== lastPick) { pick.innerHTML = pickHtml; lastPick = pickHtml; } // rebuild only on change: a rebuild eats clicks
|
|
|
|
| 327 |
const same = sv.model && pick.value === sv.model;
|
| 328 |
$("b-load").textContent = same ? T("ロード済み") : (sv.model ? T("切り替え") : T("ロード"));
|
| 329 |
$("b-load").disabled = same || !pick.value || st === "loading";
|
|
@@ -426,13 +435,20 @@
|
|
| 426 |
const oldLang = S.config.lang || "auto";
|
| 427 |
const r = await post("settings", body);
|
| 428 |
if (r.error) return;
|
| 429 |
-
|
| 430 |
$("saved").textContent = T("保存しました");
|
| 431 |
if (r.restart_needed && await ask(T("設定は保存しました。サーバーを新しい設定で今すぐ再起動しますか?(キャンセルしても、次にモデルを読み込むときから反映されます)"))) await post("restart");
|
| 432 |
if (oldLang !== body.lang) location.reload(); // the page is served in the new language
|
| 433 |
}
|
| 434 |
-
|
| 435 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 436 |
|
| 437 |
// update card: slides in from the bottom right when a new version is found (or while updating);
|
| 438 |
// "later" hides it for that version until the pill in the header is clicked
|
|
|
|
| 110 |
.dlg .msg { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 10px; }
|
| 111 |
.dlg input, .dlg select { width: 100%; margin-bottom: 10px; }
|
| 112 |
.banner { background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 4px 8px; margin: 0 2px 6px; }
|
| 113 |
+
#unsaved { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; align-items: center; gap: 10px;
|
| 114 |
+
padding: 8px 16px; background: var(--warn-soft); color: var(--warn); border-top: 1px solid var(--warn); }
|
| 115 |
+
#unsaved.on { display: flex; }
|
| 116 |
+
body.unsaved main { padding-bottom: 56px; }
|
| 117 |
@media (max-width: 640px) {
|
| 118 |
header .env { display: none; }
|
| 119 |
.c { display: none; }
|
|
|
|
| 137 |
<span class="pill" id="hpill">…</span>
|
| 138 |
</header>
|
| 139 |
|
| 140 |
+
<div id="unsaved"><span class="grow">未保存の設定があります。「保存」を押すまで反映されません。</span><button onclick="discardSettings()">元に戻す</button><button class="primary" onclick="saveSettings()">保存</button></div>
|
| 141 |
<main>
|
| 142 |
<div class="banner small" id="oldtray" style="display:none"></div>
|
| 143 |
<section class="page on" id="page-server">
|
|
|
|
| 254 |
const TOKEN = new URLSearchParams(location.search).get("token") || "";
|
| 255 |
const $ = id => document.getElementById(id);
|
| 256 |
const esc = s => String(s ?? "").replace(/[&<>"']/g, c => ({"&": "&", "<": "<", ">": ">", '"': """, "'": "'"}[c]));
|
| 257 |
+
let S = null, dirty = false, tt, lastRows = "", lastPick = "", lastLoaded = null;
|
| 258 |
|
| 259 |
function show(page) {
|
| 260 |
document.querySelectorAll("header .tab").forEach(x => x.classList.toggle("on", x.dataset.page === page));
|
|
|
|
| 323 |
$("sbusy").className = "small " + (s.busy_err || (!s.busy && st === "failed") ? "err" : "muted");
|
| 324 |
for (const id of ["b-chat", "b-check"]) $(id).disabled = st !== "running";
|
| 325 |
$("b-unload").disabled = !(st === "running" || st === "loading");
|
| 326 |
+
// model picker (keeps the user's choice - until another model gets loaded, e.g. from the models tab)
|
| 327 |
const inst = s.models.filter(m => m.path), pick = $("pick");
|
| 328 |
+
const loadedNow = sv.model && sv.model !== lastLoaded;
|
| 329 |
+
lastLoaded = sv.model || lastLoaded;
|
| 330 |
+
const cur = loadedNow && inst.some(m => m.key === sv.model) ? sv.model
|
| 331 |
+
: (pick.value && inst.some(m => m.key === pick.value)) ? pick.value
|
| 332 |
: (sv.model && inst.some(m => m.key === sv.model) ? sv.model : (inst.find(m => m.key === s.config.model) || inst[0] || {}).key);
|
| 333 |
const pickHtml = inst.map(m => `<option value="${esc(m.key)}"${m.key === cur ? " selected" : ""}>${esc(m.title)} — ${esc(m.path)}${m.key === sv.model ? T("(ロード済み)") : ""}</option>`).join("");
|
| 334 |
if (pickHtml !== lastPick) { pick.innerHTML = pickHtml; lastPick = pickHtml; } // rebuild only on change: a rebuild eats clicks
|
| 335 |
+
if (loadedNow && cur && pick.value !== cur) pick.value = cur;
|
| 336 |
const same = sv.model && pick.value === sv.model;
|
| 337 |
$("b-load").textContent = same ? T("ロード済み") : (sv.model ? T("切り替え") : T("ロード"));
|
| 338 |
$("b-load").disabled = same || !pick.value || st === "loading";
|
|
|
|
| 435 |
const oldLang = S.config.lang || "auto";
|
| 436 |
const r = await post("settings", body);
|
| 437 |
if (r.error) return;
|
| 438 |
+
setDirty(false);
|
| 439 |
$("saved").textContent = T("保存しました");
|
| 440 |
if (r.restart_needed && await ask(T("設定は保存しました。サーバーを新しい設定で今すぐ再起動しますか?(キャンセルしても、次にモデルを読み込むときから反映されます)"))) await post("restart");
|
| 441 |
if (oldLang !== body.lang) location.reload(); // the page is served in the new language
|
| 442 |
}
|
| 443 |
+
// unsaved changes: a bar at the bottom (on every tab) until they are saved or thrown away
|
| 444 |
+
function setDirty(v) {
|
| 445 |
+
dirty = v;
|
| 446 |
+
$("unsaved").classList.toggle("on", v); document.body.classList.toggle("unsaved", v);
|
| 447 |
+
if (v) $("saved").textContent = "";
|
| 448 |
+
}
|
| 449 |
+
function discardSettings() { setDirty(false); refresh(); }
|
| 450 |
+
$("form").addEventListener("input", () => setDirty(true));
|
| 451 |
+
for (const el of document.querySelectorAll(".toggles")) el.addEventListener("change", () => setDirty(true));
|
| 452 |
|
| 453 |
// update card: slides in from the bottom right when a new version is found (or while updating);
|
| 454 |
// "later" hides it for that version until the pill in the header is clicked
|
pyproject.toml
CHANGED
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
| 4 |
|
| 5 |
[project]
|
| 6 |
name = "onw"
|
| 7 |
-
version = "0.15.
|
| 8 |
description = "Ore no NPU ga konna ni ugoku wake nai - LLMs entirely on the Intel NPU"
|
| 9 |
readme = "README.md"
|
| 10 |
license = {text = "Apache-2.0"}
|
|
|
|
| 4 |
|
| 5 |
[project]
|
| 6 |
name = "onw"
|
| 7 |
+
version = "0.15.2"
|
| 8 |
description = "Ore no NPU ga konna ni ugoku wake nai - LLMs entirely on the Intel NPU"
|
| 9 |
readme = "README.md"
|
| 10 |
license = {text = "Apache-2.0"}
|