fix: Perf tab field mapping + TTS service (openedai-speech) + v0.7.0 #17

Merged
mikan merged 1 commits from fix/perf-and-tts into master 2026-10-29 20:59:33 +00:00
Collaborator

1. Perf tab — fixed based on actual JSON

Спасибо за raw JSON! Теперь видно реальные field names:

  • default_generation_settings.params.temperature (НЕ .temperature)
  • modalities.vision (НЕ has_multimodal)
  • default_generation_settings.n_ctx (НЕ n_context)
  • slots: n_prompt_tokens / n_prompt_tokens_processed / n_prompt_tokens_cache
  • slots: next_token[0].n_decoded / n_remain
  • slots: НЕТ поля timings (приходит только в chat completions response)
  • slots: speculative: boolean

Fix:

  • OverviewView: извлекает gen из dgs.params (nested), проверяет modalities.vision, использует dgs.n_ctx, показывает build_info, speculative status
  • SlotsView: использует n_prompt_tokens_processed ?? n_past, показывает n_prompt_tokens + n_prompt_tokens_cache, next_token[0].n_decoded / n_remain когда нет timings
  • Sampling values теперь .toFixed(2) для читаемости
  • Raw JSON dump сохранён

2. TTS service (openedai-speech)

Добавил OpenAI-compatible TTS:

  • compose.yaml: tts service с profile tts
    • image: ghcr.io/matatonic/openedai-speech:latest
    • gpus: all (GPU acceleration)
    • volumes: gpu/tts/voices + gpu/tts/cache
    • port: 8000 (internal)
  • tailscale serve: port 8100 → tts:8000
  • sleep_mode: tts добавлен в removal list
  • wake_mode: tts добавлен в startup с --profile tts
  • gpuctl: tts в services list
  • dashboard: tts в ServiceRole, COMPOSE_PROFILES, VALID_ROLES

TTS API OpenAI-compatible:

curl -X POST http://gpu-node-win:8100/v1/audio/speech \
  -H 'Content-Type: application/json' \
  -d '{"model":"tts-1","voice":"alloy","input":"Hello world"}' \
  --output test.mp3

3. Version → 0.7.0

После мержа

git pull && sh build.sh
docker compose up -d --force-recreate dashboard
docker compose --profile tts up -d tts

Проверь footer — v0.7.0.

Perf tab: открой → Live → Overview должен теперь показывать правильные temp/top_k/top_p/min_p/rep/n_pred, multimodal=no, ctx=0/64000, speculative=yes/no.

TTS: curl -X POST http://gpu-node-win:8100/v1/audio/speech -H 'Content-Type: application/json' -d '{"model":"tts-1","voice":"alloy","input":"Hello"}' --output test.mp3

## 1. Perf tab — fixed based on actual JSON Спасибо за raw JSON! Теперь видно реальные field names: - `default_generation_settings.params.temperature` (НЕ `.temperature`) - `modalities.vision` (НЕ `has_multimodal`) - `default_generation_settings.n_ctx` (НЕ `n_context`) - slots: `n_prompt_tokens` / `n_prompt_tokens_processed` / `n_prompt_tokens_cache` - slots: `next_token[0].n_decoded` / `n_remain` - slots: **НЕТ** поля `timings` (приходит только в chat completions response) - slots: `speculative: boolean` **Fix:** - OverviewView: извлекает `gen` из `dgs.params` (nested), проверяет `modalities.vision`, использует `dgs.n_ctx`, показывает `build_info`, speculative status - SlotsView: использует `n_prompt_tokens_processed ?? n_past`, показывает `n_prompt_tokens` + `n_prompt_tokens_cache`, `next_token[0].n_decoded` / `n_remain` когда нет timings - Sampling values теперь `.toFixed(2)` для читаемости - Raw JSON dump сохранён ## 2. TTS service (openedai-speech) Добавил OpenAI-compatible TTS: - compose.yaml: `tts` service с profile `tts` - image: `ghcr.io/matatonic/openedai-speech:latest` - gpus: all (GPU acceleration) - volumes: `gpu/tts/voices` + `gpu/tts/cache` - port: 8000 (internal) - tailscale serve: port **8100** → `tts:8000` - sleep_mode: tts добавлен в removal list - wake_mode: tts добавлен в startup с `--profile tts` - gpuctl: tts в services list - dashboard: tts в ServiceRole, COMPOSE_PROFILES, VALID_ROLES TTS API OpenAI-compatible: ```sh curl -X POST http://gpu-node-win:8100/v1/audio/speech \ -H 'Content-Type: application/json' \ -d '{"model":"tts-1","voice":"alloy","input":"Hello world"}' \ --output test.mp3 ``` ## 3. Version → 0.7.0 ## После мержа ```sh git pull && sh build.sh docker compose up -d --force-recreate dashboard docker compose --profile tts up -d tts ``` **Проверь footer** — `v0.7.0`. Perf tab: открой → Live → Overview должен теперь показывать правильные temp/top_k/top_p/min_p/rep/n_pred, multimodal=no, ctx=0/64000, speculative=yes/no. TTS: `curl -X POST http://gpu-node-win:8100/v1/audio/speech -H 'Content-Type: application/json' -d '{"model":"tts-1","voice":"alloy","input":"Hello"}' --output test.mp3`
super-z-bot added 1 commit 2026-10-29 20:42:11 +00:00
## 1. Perf tab — fixed based on actual /props + /slots JSON

User provided raw JSON showing the real field names:
- default_generation_settings.params.temperature (NOT .temperature)
- modalities.vision (NOT has_multimodal)
- default_generation_settings.n_ctx (NOT n_context)
- slots: n_prompt_tokens / n_prompt_tokens_processed / n_prompt_tokens_cache
- slots: next_token[0].n_decoded / n_remain
- slots: NO timings field (only available in chat completions)
- slots: speculative boolean (not spec object)

**Fix:**
- SlotInfo interface extended with all new fields
- OverviewView: extracts gen from dgs.params (nested), checks modalities.vision,
  uses dgs.n_ctx for total ctx, shows build_info, shows speculative status
- SlotsView: uses n_prompt_tokens_processed (newer) ?? n_past (legacy)
  for ctx display, shows n_prompt_tokens + n_prompt_tokens_cache,
  shows next_token decoded/remaining when no timings,
  shows speculative badge
- Sampling values now use .toFixed(2) for readability
- Raw JSON dump section preserved (useful for future field changes)

## 2. TTS service (openedai-speech)

Added OpenAI-compatible TTS service using openedai-speech:
- compose.yaml: new 'tts' service with profile 'tts'
  - image: ghcr.io/matatonic/openedai-speech:latest
  - gpus: all (GPU acceleration for faster synthesis)
  - volumes: gpu/tts/voices + gpu/tts/cache
  - port: 8000 (internal)
  - labels: node.role=tts
- tailscale serve: port 8100 → tts:8000
- sleep_mode: tts added to removal list
- wake_mode: tts added to startup list with --profile tts
- gpuctl usage: tts added to services list
- dashboard: tts added to ServiceRole type, COMPOSE_PROFILES, VALID_ROLES

TTS API is OpenAI-compatible:
  POST http://gpu-node:8100/v1/audio/speech
  { model: 'tts-1', voice: 'alloy', input: 'Hello world' }
  → audio/mpeg response

## 3. Version bump to 0.7.0

## After merge

```sh
git pull && sh build.sh
docker compose up -d --force-recreate dashboard
docker compose --profile tts up -d tts
```

Check footer — v0.7.0.

For TTS:
```sh
curl -X POST http://gpu-node-win:8100/v1/audio/speech \
  -H 'Content-Type: application/json' \
  -d '{"model":"tts-1","voice":"alloy","input":"Hello world"}' \
  --output test.mp3
```
mikan merged commit 4fe580daec into master 2026-10-29 20:59:33 +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#17