fix: model select uses relativePath + mmproj select + Perf NaN fix + v0.6.0 #16
Reference in New Issue
Block a user
Delete Branch "fix/perf-and-models-select"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 и '?' везде
Fix:
?? '?'default_generation_settings || generation_settings,total_slots || n_slots,n_context || n_ctx_total,has_multimodal || mmproj_path || is_multimodal4. Version bump до 0.6.0
Footer должен показать
v0.6.0./api/debugтоже возвращаетversion: '0.6.0'.После мержа
Проверь footer — должен показать
v0.6.0.Для Perf tab debugging: открой '▶ Raw /props + /slots JSON' секцию и пришли мне вывод — это покажет что именно llama.cpp возвращает.
## 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.