## 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 ```
142 lines
2.2 KiB
Plaintext
142 lines
2.2 KiB
Plaintext
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
GPuctl_LIB="/usr/local/lib/scripts"
|
|
|
|
. "$GPuctl_LIB/common.sh"
|
|
. "$GPuctl_LIB/status.sh"
|
|
. "$GPuctl_LIB/gpu.sh"
|
|
. "$GPuctl_LIB/llama.sh"
|
|
. "$GPuctl_LIB/comfy.sh"
|
|
|
|
|
|
show_usage() {
|
|
cat <<'EOF'
|
|
Usage:
|
|
|
|
gpuctl status
|
|
gpuctl gpu
|
|
gpuctl update
|
|
gpuctl sleep
|
|
gpuctl wake
|
|
|
|
gpuctl start llama [model.gguf] [extra args...]
|
|
gpuctl start comfy [extra args...]
|
|
|
|
gpuctl comfy models list [type]
|
|
gpuctl comfy models queue
|
|
gpuctl comfy models add <URL> <type>
|
|
gpuctl comfy models rm <filename> [type]
|
|
|
|
gpuctl stop <service>
|
|
gpuctl restart <service>
|
|
gpuctl logs <service>
|
|
|
|
Services: llama, comfy, model-worker, webdav, dashboard, tts,
|
|
ssh-main, ssh-companion, gpu-test
|
|
EOF
|
|
}
|
|
|
|
|
|
case "${1:-}" in
|
|
|
|
status)
|
|
show_status
|
|
;;
|
|
|
|
gpu)
|
|
show_gpu
|
|
;;
|
|
|
|
update)
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "Usage: gpuctl update" >&2
|
|
exit 1
|
|
fi
|
|
|
|
update_ssh
|
|
;;
|
|
|
|
sleep)
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "Usage: gpuctl sleep" >&2
|
|
exit 1
|
|
fi
|
|
|
|
sleep_mode
|
|
;;
|
|
|
|
wake)
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "Usage: gpuctl wake" >&2
|
|
exit 1
|
|
fi
|
|
|
|
wake_mode
|
|
;;
|
|
|
|
start)
|
|
case "${2:-}" in
|
|
|
|
llama)
|
|
shift 2
|
|
start_llama "$@"
|
|
;;
|
|
|
|
comfy)
|
|
shift 2
|
|
start_comfy "$@"
|
|
;;
|
|
|
|
*)
|
|
show_usage
|
|
exit 1
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
comfy)
|
|
shift
|
|
comfy_command "$@"
|
|
;;
|
|
|
|
llama)
|
|
shift
|
|
llama_command "$@"
|
|
;;
|
|
|
|
stop)
|
|
if [ "$#" -ne 2 ]; then
|
|
echo "Usage: gpuctl stop <service>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
stop_service "$2"
|
|
;;
|
|
|
|
restart)
|
|
if [ "$#" -ne 2 ]; then
|
|
echo "Usage: gpuctl restart <service>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
restart_service "$2"
|
|
;;
|
|
|
|
logs)
|
|
if [ "$#" -ne 2 ]; then
|
|
echo "Usage: gpuctl logs <service>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
logs_service "$2"
|
|
;;
|
|
|
|
*)
|
|
show_usage
|
|
exit 1
|
|
;;
|
|
|
|
esac |