fix: model select uses relativePath + mmproj select + Perf NaN fix + v0.6.0 #16

Merged
mikan merged 1 commits from fix/perf-and-models-select into master 2026-10-29 19:57:55 +00:00
Collaborator

3 фикса + bump до v0.6.0

1. Model select не использовал подпапки

ConfigTab's Select использовал m.name ('model.gguf') вместо m.relativePath ('Qwen3-VL/model.gguf'). При выборе модели из подпапки config сохранял только filename — llama.cpp искал /models/model.gguf вместо /models/Qwen3-VL/model.gguf.

Fix: Select использует m.relativePath везде (model + draft + mmproj). Фильтрует по kind: только base в model Select, только mtp/draft в draft Select, только mmproj в mmproj Select. Показывает subdir/ prefix в dropdown.

2. mmproj select в ConfigTab

Юзер: 'mmproj нужна настройка еще на самой странице конфигов'

Fix: Добавил секцию 'Multimodal projector (mmproj)' в ConfigTab с Select dropdown. Листит файлы с kind='mmproj' (или все как fallback). Показывает --mmproj /models/<path> когда выбран.

3. Perf tab — NaN и '?' везде

  • 'Ctx usage: NaN / 50176' — slots[].n_past был undefined → NaN в reduce
  • 'Default sampling: temp: ? ...' — /props не возвращал default_generation_settings
  • 'Total ctx: —' — /props не возвращал n_context
  • 'slot #0 ctx: /50176' — n_past был undefined

Fix:

  • NaN-safe: все slot field access используют typeof checks или ?? '?'
  • Try multiple key names: default_generation_settings || generation_settings, total_slots || n_slots, n_context || n_ctx_total, has_multimodal || mmproj_path || is_multimodal
  • Добавил '▶ Raw /props + /slots JSON' collapsible section внизу Overview — показывает raw JSON из обоих endpoints. Это критично для debugging — llama.cpp меняет field names между версиями.

4. Version bump до 0.6.0

Footer должен показать v0.6.0. /api/debug тоже возвращает version: '0.6.0'.

После мержа

git pull && sh build.sh
docker compose up -d --force-recreate dashboard model-worker

Проверь footer — должен показать v0.6.0.

Для Perf tab debugging: открой '▶ Raw /props + /slots JSON' секцию и пришли мне вывод — это покажет что именно llama.cpp возвращает.

## 3 фикса + bump до v0.6.0 ### 1. Model select не использовал подпапки ConfigTab's Select использовал `m.name` ('model.gguf') вместо `m.relativePath` ('Qwen3-VL/model.gguf'). При выборе модели из подпапки config сохранял только filename — llama.cpp искал `/models/model.gguf` вместо `/models/Qwen3-VL/model.gguf`. **Fix:** Select использует `m.relativePath` везде (model + draft + mmproj). Фильтрует по kind: только base в model Select, только mtp/draft в draft Select, только mmproj в mmproj Select. Показывает `subdir/` prefix в dropdown. ### 2. mmproj select в ConfigTab Юзер: 'mmproj нужна настройка еще на самой странице конфигов' **Fix:** Добавил секцию 'Multimodal projector (mmproj)' в ConfigTab с Select dropdown. Листит файлы с kind='mmproj' (или все как fallback). Показывает `--mmproj /models/<path>` когда выбран. ### 3. Perf tab — NaN и '?' везде - 'Ctx usage: NaN / 50176' — slots[].n_past был undefined → NaN в reduce - 'Default sampling: temp: ? ...' — /props не возвращал default_generation_settings - 'Total ctx: —' — /props не возвращал n_context - 'slot #0 ctx: /50176' — n_past был undefined **Fix:** - NaN-safe: все slot field access используют typeof checks или `?? '?'` - Try multiple key names: `default_generation_settings || generation_settings`, `total_slots || n_slots`, `n_context || n_ctx_total`, `has_multimodal || mmproj_path || is_multimodal` - Добавил **'▶ Raw /props + /slots JSON'** collapsible section внизу Overview — показывает raw JSON из обоих endpoints. Это **критично для debugging** — llama.cpp меняет field names между версиями. ### 4. Version bump до 0.6.0 Footer должен показать `v0.6.0`. `/api/debug` тоже возвращает `version: '0.6.0'`. ## После мержа ```sh git pull && sh build.sh docker compose up -d --force-recreate dashboard model-worker ``` **Проверь footer** — должен показать `v0.6.0`. Для Perf tab debugging: открой '▶ Raw /props + /slots JSON' секцию и пришли мне вывод — это покажет что именно llama.cpp возвращает.
super-z-bot added 1 commit 2026-10-28 20:19:18 +00:00
## Problems fixed

### 1. Model select didn't use subdirectories
ConfigTab's model Select used m.name (just 'model.gguf') instead of
m.relativePath ('Qwen3-VL/model.gguf'). When the user selected a model
from a subdir, the config stored just the filename — llama.cpp would
look for /models/model.gguf instead of /models/Qwen3-VL/model.gguf.

**Fix:** Select uses m.relativePath everywhere (model + draft + mmproj).
Also filters by kind: only base models in model Select, only mtp/draft
in draft Select, only mmproj in mmproj Select. Shows subdir/ prefix
in the dropdown.

### 2. mmproj select missing from ConfigTab
User asked: 'mmproj нужна настройка еще на самой странице конфигов'

**Fix:** Added a new 'Multimodal projector (mmproj)' section in
ConfigTab with a Select dropdown. Lists files with kind='mmproj' (or
all files as fallback if no mmproj files detected). Shows the
resulting --mmproj /models/<path> line when set.

### 3. Perf tab shows NaN and '?' everywhere
- 'Ctx usage: NaN / 50176' — slots[].n_past was undefined → NaN in reduce
- 'Default sampling: temp: ? ...' — /props didn't return
  default_generation_settings (or named differently)
- 'Total ctx: —' — /props didn't return n_context
- 'slot #0 ctx: /50176' — n_past was undefined

**Fix:**
- NaN-safe: all slot field access uses typeof checks or ?? '?'
- Try multiple key names: default_generation_settings || generation_settings,
  total_slots || n_slots, n_context || n_ctx_total, has_multimodal ||
  mmproj_path || is_multimodal
- Added '▶ Raw /props + /slots JSON' collapsible section at the bottom
  of Overview — shows the raw JSON from both endpoints so the user (and
  I) can see what llama.cpp actually returns. This is critical for
  debugging — llama.cpp changes field names across versions.

### 4. Version bump to 0.6.0
Updated DASHBOARD_VERSION to '0.6.0' so the user can verify the update
took effect (footer shows v0.6.0, /api/debug returns version: '0.6.0').

## After merge

```sh
git pull && sh build.sh
docker compose up -d --force-recreate dashboard model-worker
```

Check footer — should show v0.6.0. If it shows v0.5.0, the container
didn't rebuild (try docker compose build dashboard && docker compose
up -d --force-recreate dashboard).

For Perf tab debugging: open the '▶ Raw /props + /slots JSON' section
and share the output — that'll show exactly what llama.cpp returns.
mikan closed this pull request 2026-10-28 20:59:41 +00:00
mikan reopened this pull request 2026-10-29 19:57:49 +00:00
mikan merged commit b6533ac558 into master 2026-10-29 19:57:55 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mikan/GPU-Node#16