From 12fd3c4eae892de487e7ac45b401d72f0f62ca5a Mon Sep 17 00:00:00 2001 From: Jaakko Vanhala Date: Sun, 5 Apr 2026 08:09:35 +0300 Subject: [PATCH] =?UTF-8?q?Viestien=20s=C3=A4=C3=A4t=C3=B6=C3=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- network-poc/node/src/qwen_coder.rs | 7 ++-- network-poc/static/index.html | 53 ++++++++++++++++++++---------- 2 files changed, 41 insertions(+), 19 deletions(-) diff --git a/network-poc/node/src/qwen_coder.rs b/network-poc/node/src/qwen_coder.rs index a1b95aa..3b0ee5b 100644 --- a/network-poc/node/src/qwen_coder.rs +++ b/network-poc/node/src/qwen_coder.rs @@ -108,7 +108,10 @@ async fn get_or_build_model(use_3b: bool, ws: &Rc>) -> Result c.borrow().as_ref().map(|m| m.is_3b == use_3b).unwrap_or(false) }); if cache_hit { - console_log!("[Coder] Malli löytyi muistista — ohitetaan lataus"); + // Logitetaan kaikki välivaiheet valmiiksi, jotta pipeline-UI päivittyy + console_log!("[Coder] tokenizer löytyi (cache)"); + console_log!("[Coder] model löytyi (cache)"); + console_log!("[Coder] Malli ladattu (välimuistista)"); return Ok(()); } @@ -160,7 +163,7 @@ async fn get_or_build_model(use_3b: bool, ws: &Rc>) -> Result }; let model = QwenModel::new(&config, vb).map_err(|e| format!("Malli: {}", e))?; - console_log!("[Coder] Malli rakennettu ja välimuistitettu"); + console_log!("[Coder] Malli ladattu ja välimuistitettu"); MODEL_CACHE.with(|c| { *c.borrow_mut() = Some(CachedModel { model, tokenizer, is_3b: use_3b }); diff --git a/network-poc/static/index.html b/network-poc/static/index.html index 1768e18..2d441d3 100644 --- a/network-poc/static/index.html +++ b/network-poc/static/index.html @@ -1107,7 +1107,19 @@