- compose.yaml: mount gpu/tts/config → /app/config for voice_to_speaker.yaml
- /api/tts/upload-voice: creates/updates voice_to_speaker.yaml with new voice entry
- TTSTab: language selector (default Russian), passed to API
- /api/tts/generate: arrayBuffer instead of streaming for reliability
## Fixes
### 1. TTS logs in Logs tab
Added 'tts' to the logs target selector in the Logs tab. Now you can
stream docker logs from the TTS container.
### 2. TTS generate fetch failed
Changed /api/tts/generate from streaming res.body directly to
res.arrayBuffer() first, then returning the buffer. Next.js sometimes
cuts off streaming responses from server-side fetch — buffering avoids
this.
Also improved error messages:
- ECONNREFUSED / fetch failed → 'TTS container is not running...'
- ENOTFOUND → 'TTS container not found on Docker network...'
### 3. Russian voice accent
Built-in voices (alloy, nova, shimmer) are English-trained and will
speak Russian with an accent. Added a prominent hint in the TTS tab
explaining that for natural Russian, you need to upload a custom WAV
sample of a Russian speaker.
## Version → 0.8.2
## Problem
'TPS и TPS Prefill как-то слабовато обновляются' — /slots endpoint
doesn't return per-slot timings without --perf flag. Without it, the
Perf tab shows 'No per-token timings' even during generation.
## Fix
Added `perf: boolean` to DashboardConfig (default: true).
- buildLlamaExtraArgs: emits `--perf` when enabled
- parseLlamaExtraArgs: parses `--perf` / `--no-perf`
- mergeConfig: includes perf field
- ConfigTab: new 'Perf timings' toggle in Performance flags section
with hint 'Per-slot TPS/TTFT in /slots (needed for Perf tab)'
With --perf enabled, /slots returns real-time timings:
timings: {
prompt_n, prompt_ms, prompt_per_second,
predicted_n, predicted_ms, predicted_per_second,
cache_hit_rate
}
These update every 1.5s while the Perf tab is polling.
## Version → 0.8.1
## What
New TTS tab in the dashboard for text-to-speech generation.
### Backend
- `GET /api/tts/voices` — proxies openedai-speech /v1/audio/voices
- `POST /api/tts/generate` — proxies /v1/audio/speech, streams audio back
- `POST /api/tts/upload-voice` — uploads custom voice sample (WAV/MP3/FLAC)
to gpu/tts/voices/ for XTTSv2 voice cloning
- `GET /api/tts/upload-voice` — lists voice files on disk
### Frontend — TTSTab component
- **Start/Stop/Restart TTS** buttons (uses /api/services/tts)
- **Model select**: tts-1 (Piper, faster) / tts-1-hd (XTTSv2, better quality)
- **Voice select**: lists available voices from /api/tts/voices
- **Format select**: MP3 / WAV / Opus / FLAC
- **Speed slider**: 0.25x — 4.0x
- **Text input**: multi-line, char count, Ctrl+Enter to generate
- **Audio output**: inline audio player + download link
- **Custom voice upload**: drag a WAV sample → saved to gpu/tts/voices/
→ restart TTS to apply. XTTSv2 supports Russian.
### Recommended Russian voices
For natural Russian female voices with XTTSv2:
1. Find a clean 10-20s WAV sample of a female Russian speaker
(mono, 22050 Hz, no background noise)
2. Upload via the 'Upload voice sample' button
3. Restart TTS
4. Select the new voice from the dropdown
5. Generate with Russian text
Good sources for voice samples:
- Record yourself or a friend
- Use a clip from a Russian audiobook (lib.ru)
- Use a clip from a Russian podcast
The built-in 'nova' and 'shimmer' voices (female-sounding) also work
with Russian text on tts-1-hd, though they're English-trained.
## Version → 0.8.0
## After merge
```sh
git pull && sh build.sh
docker compose up -d --force-recreate dashboard
docker compose --profile tts up -d tts
```
Open TTS tab → Start TTS → type Russian text → Generate.
## 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.
## What
1. **Version display** — user reported 'ни одно изменение с дашбордом не увидел'.
Added DASHBOARD_VERSION constant (0.5.0) shown in the footer as 'v0.5.0'.
Also returned in /api/debug so user can verify the update took effect via
`curl http://gpu-node:8090/api/debug | jq .version`.
2. **Simplify subdir** — user said '<user>___<repo> не нужно, просто <repo>'.
Changed download subdir from 'user___repo' to just 'repo'. So
huggingface.co/user/Qwen3-VL/resolve/main/model.gguf → subdir='Qwen3-VL'
(was 'user___Qwen3-VL').
3. **Includes all changes from PR #14** (mmproj, subdirs, auto-categorize,
perf overview, comfy total size, wake dashboard fix) — this branch
merges feat/multi-fixes + adds versioning + simplifies subdir.
## After merge
```sh
git pull && sh build.sh
docker compose up -d --force-recreate dashboard model-worker
```
Check the footer — should show 'v0.5.0'. If it doesn't, the update didn't
take effect.
## Problem
When the dashboard called `docker compose up -d llama` etc., it relied on:
1. process.env inherited by the dashboard container — only contains the
vars explicitly listed in compose.yaml's environment: section
(HOST_PROJECT_PATH, PROJECT_DIR, LLAMA_MODELS_DIR, NODE_INSTANCE)
2. compose's own --env-file (.env) lookup — but this depends on CWD which
can differ
Critically, compose needs more than just HOST_PROJECT_PATH:
- TAILSCALE_HOSTNAME (used in container_name)
- TS_AUTHKEY (needed by tailscale service if started)
- WEBDAV_USER, WEBDAV_PASS (needed by webdav service)
- LLAMA_MODEL, LLAMA_EXTRA_ARGS (used by llama service command)
- COMFY_RUN_HOST, COMFY_BASE_HOST (used by comfyui service)
- COMFY_EXTRA_ARGS (used by comfyui service)
Previously these were silently absent. `gpuctl` shells handle this by
explicitly exporting them before `docker compose` — the dashboard now does
the same.
## Fix
### `dashboard/src/lib/docker.ts`
- Added `loadEnvFile()` and `readEnvSync()` — parse `/project/.env` once
and cache it. Handles quoted values, comments, blank lines.
- Added `envOrFile(key, fallback)` — resolves env value from process.env
first, then .env file, then fallback.
- `HOST_PROJECT_PATH` and `TAILSCALE_HOSTNAME` now resolved via envOrFile
(was hardcoded fallback to '/project').
- Added `validateComposeEnv()` — returns null if all required vars are set,
or an error message describing the first missing var. Mirrors
`require_host_project_path` in ssh/scripts/common.sh.
- `composeEnv()` now includes:
* process.env (for PATH, HOME, etc.)
* .env file contents (TS_AUTHKEY, WEBDAV_*, etc.)
* Explicit overrides for TAILSCALE_HOSTNAME, HOST_PROJECT_PATH, NODE_INSTANCE
* Caller-provided extras (LLAMA_MODEL, LLAMA_EXTRA_ARGS, COMFY_EXTRA_ARGS)
- `runCompose()` now calls `validateComposeEnv()` before any `up`/`start`
operation. If validation fails, returns a clear error instead of letting
compose silently resolve ${HOST_PROJECT_PATH:-./} to './'.
- `writeEnvLlamaConfig()` invalidates the .env cache after writing, so the
next composeEnv() picks up the new LLAMA_MODEL/LLAMA_EXTRA_ARGS.
### `compose.yaml` — dashboard service
- Added `TAILSCALE_HOSTNAME: ${TAILSCALE_HOSTNAME:-gpu-node}` to the
environment: section. Was previously missing — dashboard couldn't see the
hostname without reading .env.
### `dashboard/src/app/api/debug/route.ts`
- Now also returns:
* TAILSCALE_HOSTNAME in env block
* comfyTypes (list of subdirs under gpu/comfy/models)
* envValidation: { ok, error } — result of validateComposeEnv()
* Whether LLAMA_MODELS_DIR actually exists and has files
After deploy, `curl http://gpu-node:8090/api/debug` will show:
- Whether HOST_PROJECT_PATH is the real host path or just '/project'
- Whether .env has all the vars compose needs
- Whether /project/gpu/llama_models has any .gguf files
- What subdirs /project/gpu/comfy/models has
## User-reported issues addressed
### 1. Logs show literal \\n (and don't update live)
- Old impl: GET /api/services/[role] returned a JSON snapshot {logs: '...'}
with embedded \\n escape sequences that the UI rendered as plain text.
Plus it wasn't actually streaming — fetch returned the whole body at once.
- New: GET /api/services/[role]/stream — proper Server-Sent Events endpoint.
Emits one `log` event per line with {stream: stdout|stderr, line, ts}.
Uses a line buffer so partial chunks don't get split mid-line.
Client opens `new EventSource(...)` instead of fetch — gets genuine live
updates (docker logs -f --tail 300 --timestamps).
- Added keep-alive comment every 15s for proxies that kill idle SSE.
### 2. 'Llama Dashboard' → 'GPU Node Dashboard'
- Renamed everywhere (browser title, header, footer)
- The dashboard now manages llama + comfy + system + services, so the old
name was misleading.
### 3. Models not visible (llama + comfy)
- Root cause hypothesis: empty HOST_PROJECT_PATH → compose resolves
${HOST_PROJECT_PATH:-./} to './' relative to compose CWD inside the
dashboard container, so volume mounts point to a path that doesn't exist
on the host.
- Added /api/debug endpoint that returns:
* All env vars the dashboard sees (PROJECT_DIR, HOST_PROJECT_PATH,
LLAMA_MODELS_DIR, NODE_INSTANCE, SSH_ROLE, TAILSCALE_HOSTNAME)
* Which paths exist (PROJECT_DIR, LLAMA_MODELS_DIR, comfy models dir)
* Directory listings of each (so you can see what's actually there)
* Contents of .env (so you can verify HOST_PROJECT_PATH was set)
* Existence of dashboard-config.json
- This endpoint is for diagnosing 'models not visible' issues — call
`curl http://gpu-node:8090/api/debug` after deployment.
### 4. Comfy models parsing
- worker.py `list` and `queue` commands output human-readable text, not
JSON. The dashboard was trying to JSON.parse the output and silently
returning empty arrays.
- Added --json flag to both commands (worker.py):
* `worker.py list [type] --json` → {models: [{type, filename, sizeBytes}], total, totalBytes}
* `worker.py queue --json` → {jobs: [...]}
* `worker.py types` → ["checkpoints", "loras", ...] (new command)
- Updated dashboard to use --json everywhere.
### 5. Comfy model types — couldn't pick all available types
- Was hardcoded list of 9 types (checkpoints, loras, vae, etc.)
- Now fetched dynamically from /api/comfy/types, which calls the new
`worker.py types` command — lists actual subdirectories of
gpu/comfy/models.
- Falls back to hardcoded list if worker is offline or older version.
## Files changed
- model-worker/worker.py:
* Added json import
* Added command_list_json(model_type) — JSON variant of command_list
* Added command_queue_json() — JSON variant of command_queue
* Added `types` command (outputs JSON array of subdir names)
* `list` command now accepts --json flag
* `queue` command now accepts --json flag
* print_usage() updated
- dashboard/src/app/api/services/[role]/stream/route.ts — new SSE endpoint
- dashboard/src/app/api/comfy/types/route.ts — new (proxy to worker.py types)
- dashboard/src/app/api/debug/route.ts — new (diagnostic endpoint)
- dashboard/src/lib/docker.ts:
* listComfyModels uses --json flag
* getComfyQueue uses --json flag
* Added getComfyTypes() — calls worker.py types
* Better error handling for type-not-found case
- dashboard/src/app/page.tsx:
* Renamed 'Llama Dashboard' → 'GPU Node Dashboard'
* LiveLogs type changed from string[] to {stream, line, ts}[]
* startLogsStream uses EventSource instead of fetch+readablestream
* Added comfyTypes state, refreshComfyTypes callback
* ComfyTab receives dynamic types list (with fallback)
- dashboard/src/app/layout.tsx: title renamed