From b2694c232e8803f12caf6ec2db231834dc306896 Mon Sep 17 00:00:00 2001 From: jaakko Date: Mon, 6 Apr 2026 20:19:34 +0300 Subject: [PATCH] Poistettu 1.5B Q4 -vaihtoehto: GGUF dequantisointi liian hidas WASM:ssa MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.5B Q4_K_M: ~33s/token (0.03 tok/s) — käyttökelvoton 0.5B F32: ~2.5s/token (0.4 tok/s) — käyttökelpoinen kpn load lataa nyt suoraan 0.5B:n ilman valintalistaa. Co-Authored-By: Claude Opus 4.6 (1M context) --- network-poc/static/index.html | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/network-poc/static/index.html b/network-poc/static/index.html index 188c0de..5f89912 100644 --- a/network-poc/static/index.html +++ b/network-poc/static/index.html @@ -2226,35 +2226,14 @@ Write the corrected code.`; } if (sub === 'load') { - const arg = parts[2]; const btn = document.getElementById('agent-compute-btn'); - // Mallikatalogista valinta numerolla tai nimellä - const loadModels = [ - { id: '1', key: '05b', name: 'Qwen2.5-Coder:0.5B', size: '~990 MB', coderSize: '05b' }, - { id: '2', key: '3b', name: 'Qwen2.5-Coder:1.5B Q4', size: '~1 GB', coderSize: '3b' }, - ]; - if (!arg) { - // Näytetään lista - termLog(' Ladattavat mallit:', '#c9d1d9'); - for (const m of loadModels) { - const active = (btn?.dataset.state === 'ready' && coderSize === m.coderSize) ? ' ✓ ladattu' : ''; - termLog(` ${m.id} ${m.name} (${m.size})${active}`); - } - termLog(' Käyttö: kpn load <numero>', '#8b949e'); + if (btn?.dataset.state === 'ready') { + termLog(' ✓ Qwen2.5-Coder:0.5B on jo ladattu ja valmis', '#3fb950'); return; } - const selected = loadModels.find(m => m.id === arg || m.key === arg || m.coderSize === arg); - if (!selected) { - termLog(` Tuntematon malli "${esc(arg)}". Kokeile: kpn load`, '#f85149'); - return; - } - if (btn?.dataset.state === 'ready' && coderSize === selected.coderSize) { - termLog(` ✓ ${selected.name} on jo ladattu ja valmis`, '#3fb950'); - return; - } - coderSize = selected.coderSize; + coderSize = '05b'; localStorage.setItem('kpn-coder-size', coderSize); - termLog(` Alustetaan ${selected.name} (${selected.size})...`, '#d29922'); + termLog(' Alustetaan Qwen2.5-Coder:0.5B (~990 MB)...', '#d29922'); if (btn) btn.click(); else ensureCoderNode(); return;