[GH-ISSUE #3740] [GUI] Models page shows the Starter (Qwen2.5-0.5B) for a few seconds on every launch #1567

Closed
opened 2026-11-04 01:52:18 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3740

Area

[GUI] (the desktop app)

Desktop app, Terminal or source?

Desktop app (Windows)

What happened

On every launch, the Models page first shows the Starter entry (Qwen2.5-0.5B-Instruct, Starter · Q4_K_M · 0.5 GB) instead of the installed model. It stays for a few seconds. During that time:

  • the context is 128K, with the note "此模型最多支持 32k 个词元,请选择支持的上下文再运行。" and the English warning "128K exceeds Starter · 0.5B Q4_K_M's trained context — quality beyond that limit is not verified.";
  • the bottom left says "未加载模型" (no model loaded);
  • the page offers "下载模型版本" (download model version).

Then it switches, without a click, to the actual installed model: Swift IQ3_XXS, 384K context, "43.9 GB RAM + VRAM", top bar Qwen3.8-Flash-Next — the state the user left it in. The sidebar is identical before and after; only the model state flips.

The first paint uses the bundled starter catalog before the native model state is merged:

  • GET /api/models returns "current":null,"loaded":null; its first variant is qwen2.5-0.5b-q4km (Starter, contextMax: 32768, diskGb: 0.49). The installed swift-iq3_xxs is not in this list; it is in GET /api/native -> installed.models (context: 393216, ready: true, last_used: null).

  • In the frontend, the family picker falls back to the first variant:

    function u3(t,c){
      const i = c ?? t.variants.find(l => l.id === (t.loaded ?? t.current))?.family
                   ?? t.variants[0]?.family;
      return t.variants.filter(l => l.family === i).sort((l,d) => l.diskGb - d.diskGb);
    }
    

    and the selected variant falls back to the first variant:

    ve = d?.variants.find(Z => Z.id === d.loaded),
    Es = d?.variants.find(Z => Z.id === C) ?? ve
         ?? d?.variants.find(Z => Z.state === "installed")
         ?? d?.variants[0]
    

    With current/loaded null, and no installed entry in the web library, both land on variants[0] — the Starter.

  • /api/native is fetched by a separate helper (_6() / vn() in the bundle), not by the initial /api/models batch. Its installed.models entry arrives after the first render; then the page switches to Swift. The initial batch waits for /api/runtime, but at startup that reports instances: [] and defaultId: "", so it does not supply a model either.

  • The 128K warning comes from the default ctx.length in /api/engine ("128K") applied to the Starter (contextMax: 32768). The installed Swift's saved context is 393216 (384K), which is what the second state shows.

Expected: the first paint should show the installed/last model, or a neutral loading state — not the Starter. The page should wait for /api/native before choosing a model, persist the last selection and hydrate it before rendering, or show a skeleton instead of falling back to variants[0]. The default context should also be clamped to the selected model's contextMax so the Starter never shows the 128K warning.

Smallest steps or command that reproduce it

  1. Install a model (here Swift IQ3_XXS) and leave the Models page on it.
  2. Quit and reopen the desktop app.
  3. Watch the Models page: it first shows Qwen2.5-0.5B-Instruct / Starter · Q4_K_M · 0.5 GB with 128K and the "128K exceeds..." warning.
  4. After a few seconds it switches to Swift IQ3_XXS / Qwen3.8-Flash-Next without any click.

Expected: the installed model or a loading state from the first frame; no Starter flash.

Reproduction status

Reproduced locally

Strata version

Strata 0.2.2 · engine 0.1.47

Graphics card, memory and system

RTX 3080 Ti Laptop 16 GB · 64 GB RAM · Windows 11 (10.0.26300)

Model, size and settings

Swift 1.5 IQ3_XXS · 384K context (installed; the flash shows the Starter, 32K max)

Logs

No engine error: this is the client's initial state. Evidence from the running app and the 0.2.2 files:

  • GET /api/models: mode=real, current=null, loaded=null, first variant qwen2.5-0.5b-q4km (Starter, contextMax: 32768).
  • GET /api/native: installed.models[0] = swift-iq3_xxs, context: 393216, ready: true, last_used: null; instances: [], defaultId: "".
  • GET /api/engine: expert ctx.length = "128K".
  • host/dist/assets/index-DsqNG4H4.js: u3() and the Es selection both fall back to variants[0]; _6() / vn() fetch /api/native separately.
  • host/server/real-model-catalog.mjs: the qwen2.5-0.5b-q4km entry is tier: "starter", contextMax: 32768.
  • Desktop log at startup: [host] inference Strata engine 0.1.47 is installed; no model is loaded yet.
  • Screenshots: first state (Starter, 128K warning) vs second state (Swift IQ3_XXS, 384K).

Possible fix (not tested): include /api/native in the initial data load (or gate the Models page on it), persist current / last_used and use it for the first selection, and do not use variants[0] as the fallback for an existing installation. Show a skeleton until the model state is known. Also clamp the default context to contextMax.

Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3740 ### Area [GUI] (the desktop app) ### Desktop app, Terminal or source? Desktop app (Windows) ### What happened On every launch, the Models page first shows the **Starter** entry (`Qwen2.5-0.5B-Instruct`, `Starter · Q4_K_M · 0.5 GB`) instead of the installed model. It stays for a few seconds. During that time: - the context is 128K, with the note "此模型最多支持 32k 个词元,请选择支持的上下文再运行。" and the English warning "128K exceeds Starter · 0.5B Q4_K_M's trained context — quality beyond that limit is not verified."; - the bottom left says "未加载模型" (no model loaded); - the page offers "下载模型版本" (download model version). Then it switches, without a click, to the actual installed model: `Swift IQ3_XXS`, 384K context, "43.9 GB RAM + VRAM", top bar `Qwen3.8-Flash-Next` — the state the user left it in. The sidebar is identical before and after; only the model state flips. The first paint uses the bundled starter catalog before the native model state is merged: - `GET /api/models` returns `"current":null,"loaded":null`; its first variant is `qwen2.5-0.5b-q4km` (Starter, `contextMax: 32768`, `diskGb: 0.49`). The installed `swift-iq3_xxs` is not in this list; it is in `GET /api/native` -> `installed.models` (`context: 393216`, `ready: true`, `last_used: null`). - In the frontend, the family picker falls back to the first variant: ```js function u3(t,c){ const i = c ?? t.variants.find(l => l.id === (t.loaded ?? t.current))?.family ?? t.variants[0]?.family; return t.variants.filter(l => l.family === i).sort((l,d) => l.diskGb - d.diskGb); } ``` and the selected variant falls back to the first variant: ```js ve = d?.variants.find(Z => Z.id === d.loaded), Es = d?.variants.find(Z => Z.id === C) ?? ve ?? d?.variants.find(Z => Z.state === "installed") ?? d?.variants[0] ``` With `current`/`loaded` null, and no `installed` entry in the web library, both land on `variants[0]` — the Starter. - `/api/native` is fetched by a separate helper (`_6()` / `vn()` in the bundle), not by the initial `/api/models` batch. Its `installed.models` entry arrives after the first render; then the page switches to Swift. The initial batch waits for `/api/runtime`, but at startup that reports `instances: []` and `defaultId: ""`, so it does not supply a model either. - The 128K warning comes from the default `ctx.length` in `/api/engine` (`"128K"`) applied to the Starter (`contextMax: 32768`). The installed Swift's saved context is 393216 (384K), which is what the second state shows. Expected: the first paint should show the installed/last model, or a neutral loading state — not the Starter. The page should wait for `/api/native` before choosing a model, persist the last selection and hydrate it before rendering, or show a skeleton instead of falling back to `variants[0]`. The default context should also be clamped to the selected model's `contextMax` so the Starter never shows the 128K warning. ### Smallest steps or command that reproduce it 1. Install a model (here Swift IQ3_XXS) and leave the Models page on it. 2. Quit and reopen the desktop app. 3. Watch the Models page: it first shows `Qwen2.5-0.5B-Instruct` / `Starter · Q4_K_M · 0.5 GB` with 128K and the "128K exceeds..." warning. 4. After a few seconds it switches to `Swift IQ3_XXS` / `Qwen3.8-Flash-Next` without any click. Expected: the installed model or a loading state from the first frame; no Starter flash. ### Reproduction status Reproduced locally ### Strata version Strata 0.2.2 · engine 0.1.47 ### Graphics card, memory and system RTX 3080 Ti Laptop 16 GB · 64 GB RAM · Windows 11 (10.0.26300) ### Model, size and settings Swift 1.5 IQ3_XXS · 384K context (installed; the flash shows the Starter, 32K max) ### Logs No engine error: this is the client's initial state. Evidence from the running app and the 0.2.2 files: - `GET /api/models`: `mode=real`, `current=null`, `loaded=null`, first variant `qwen2.5-0.5b-q4km` (Starter, `contextMax: 32768`). - `GET /api/native`: `installed.models[0] = swift-iq3_xxs`, `context: 393216`, `ready: true`, `last_used: null`; `instances: []`, `defaultId: ""`. - `GET /api/engine`: expert `ctx.length = "128K"`. - `host/dist/assets/index-DsqNG4H4.js`: `u3()` and the `Es` selection both fall back to `variants[0]`; `_6()` / `vn()` fetch `/api/native` separately. - `host/server/real-model-catalog.mjs`: the `qwen2.5-0.5b-q4km` entry is `tier: "starter"`, `contextMax: 32768`. - Desktop log at startup: `[host] inference Strata engine 0.1.47 is installed; no model is loaded yet`. - Screenshots: first state (Starter, 128K warning) vs second state (Swift IQ3_XXS, 384K). Possible fix (not tested): include `/api/native` in the initial data load (or gate the Models page on it), persist `current` / `last_used` and use it for the first selection, and do not use `variants[0]` as the fallback for an existing installation. Show a skeleton until the model state is known. Also clamp the default context to `contextMax`.
Author
Owner

@therealMKD commented on GitHub (Oct 22, 2026):

Can confirm.

Strata 0.2.2, Engine 0.1.47

Windows 11 26H2, 13900K/5080/64GB DDR5

<!-- gh-comment-id:6344037117 --> @therealMKD commented on GitHub (Oct 22, 2026): Can confirm. Strata 0.2.2, Engine 0.1.47 Windows 11 26H2, 13900K/5080/64GB DDR5
Author
Owner

@Niko1221 commented on GitHub (Oct 26, 2026):

Fixed in 0.2.5: the Models page waits for the engine's first answer and no longer shows the Starter for a few seconds at launch.

<!-- gh-comment-id:6423162044 --> @Niko1221 commented on GitHub (Oct 26, 2026): Fixed in 0.2.5: the Models page waits for the engine's first answer and no longer shows the Starter for a few seconds at launch.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1567
No description provided.