Skip to content

v1.5.0 - Measured local translation, honest job state, model sizes

Choose a tag to compare

@Unheat Unheat released this 20 Nov 00:51
· 39 commits to main since this release

Summary

Version 1.5.0 covers every commit since v1.4.1: a measured rebuild of the local WebLLM translation path, honest job state in the background queue, model size shown before download, model deletion, and provider/worker hardening.

Highlights

  • Local translation is measured, not guessed — the first pass samples at 0.7 with a 1.5 presence penalty (2.0 regressed), recovery samples hotter than the pass that failed, and recovery works line by line on local engines because local requests are free. Copy-back of short lines, JSON skeletons rendered as text, and bracketed sound effects scored as failures are gone.
  • One source language per page — a page resolves to Japanese only with hiragana or ~15% kana density, so Chinese pages full of katakana product names stop being read as Japanese. Echo verdicts are gated by script, which stops Latin debris on a CJK page counting as a translation.
  • Loops are caught, lettering is not — runaway repetition is detected on contiguous spans of 12+ characters, so ドドドド and !!!! survive while a 40-character loop still discards its batch.
  • WebLLM driven by its shipped contract — context_window_size: 2048, usage reported through stream_options, the redundant resetChat() removed, and enable_thinking dropped after it measured 34.6% failure against 11.5%. Load requirements are checked before a multi-GB download, the WebGPU adapter is probed first, and generation is capped at two minutes with a progress watchdog.
  • A finished job is never reported as stalled — the queue now measures silence per job, the offscreen document reports progress every 20s while it works, a late pipeline cannot overwrite the background's error state, and a job that finished after its response was lost is delivered instead of failed. That is the missing red error icon and the three-second cascade fixed together.
  • Model size on the row that offers it — every engine shows a VRAM estimate (~1.6 GB) beside its hardware tag, formatted from the catalogue so 711 MB and 31 GB read as one scale.
  • Model management — a downloaded WebLLM model can be deleted from Settings, engine dropdowns are grouped by family, saved custom API configurations can be edited in place, and the registry is curated around WebLLM 0.2.89.
  • Worker fallback — the health probe proves a real translation per declared output mode, optional TPM/TPD route budgets are enforced, reasoning routes no longer eat their own answer, Typhoon 2.5 30B joins the waterfall, and gateway token/output bounds close the abuse paths.
  • Pipeline and Studio — blocks the renderer discards are no longer translated, preserved artwork is never paid for, contours re-typeset on resize, captions fit their frames, staggered caption columns merge, and high-confidence two-glyph names stay dialogue.
  • Gates — docs:check now fails when TypeDoc errors, the docs tree is reorganised, and the matrix, probe, smoke and real-browser harnesses that measured all of the above are in the repository.

Verification

npm test 1603 passed / 138 files · docs:check 880, delta +0 · lint 0 errors · build clean · smoke 6/6 · real browser: two pages translated around a 62s idle with zero stall lines and zero console errors · matrix: auto-en-zh 0/18, auto-vi-zh 2/18, auto-en-zh-real 1/20.

Package

kites-v1.5.0.zip — 156 files, unpacked from dist/.