feat(llm): lokales llama.cpp-Modell (va_llm) als zentrale, sprachoptimierte KI
- scripts/llm-server/: start/stop/status fuer llama.cpp-Server (Port 8001, GPU 1, Modell Qwen3.6-35B-A3B-Uncensored, Alias va_llm) - alles per ENV ueberschreibbar - Defaults auf den lokalen Server umgestellt (config.py, .example-Configs, .env.example) - Provider local-openai-compatible sprachoptimiert: Reasoning aus (chat_template_kwargs.enable_thinking=false) + knapper Sprach-System-Prompt, optional max_tokens/temperature - Antwort ~9x schneller, kurze vorlesbare Texte - Makefile-Targets llm-up/llm-down/llm-status - Doku (README, BEDIENUNGSANLEITUNG) auf llama.cpp statt Ollama aktualisiert Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
cd7aef852d
commit
28c729f1d4
11 changed files with 323 additions and 31 deletions
38
scripts/llm-server/status-llm-server.sh
Executable file
38
scripts/llm-server/status-llm-server.sh
Executable file
|
|
@ -0,0 +1,38 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Zeigt Container- und HTTP-Status des lokalen LLM-Servers (llama.cpp).
|
||||
# Name/Port ueber ENV ueberschreibbar: CONTAINER_NAME=... HOST_PORT=... ./status-llm-server.sh
|
||||
|
||||
CONTAINER_NAME="${CONTAINER_NAME:-va_llm}"
|
||||
HOST_PORT="${HOST_PORT:-8001}"
|
||||
|
||||
check_server() {
|
||||
local NAME="$1"
|
||||
local PORT="$2"
|
||||
|
||||
printf "%-28s" "$NAME (Port $PORT):"
|
||||
|
||||
# Docker-Status
|
||||
if docker ps --format '{{.Names}}' | grep -q "^${NAME}\$"; then
|
||||
printf " Container=\033[32mRUNNING\033[0m"
|
||||
elif docker ps -a --format '{{.Names}}' | grep -q "^${NAME}\$"; then
|
||||
printf " Container=\033[33mSTOPPED\033[0m"
|
||||
else
|
||||
printf " Container=\033[31mNOT FOUND\033[0m"
|
||||
echo
|
||||
return
|
||||
fi
|
||||
|
||||
# HTTP-Erreichbarkeit
|
||||
if curl -s --max-time 3 "http://localhost:${PORT}/health" >/dev/null 2>&1 || \
|
||||
curl -s --max-time 3 "http://localhost:${PORT}/v1/models" >/dev/null 2>&1; then
|
||||
printf " HTTP=\033[32mOK\033[0m"
|
||||
else
|
||||
printf " HTTP=\033[31mNOT READY\033[0m"
|
||||
fi
|
||||
|
||||
echo
|
||||
}
|
||||
|
||||
echo "=== Voice-Assistant LLM-Server Status ==="
|
||||
check_server "$CONTAINER_NAME" "$HOST_PORT"
|
||||
Loading…
Add table
Add a link
Reference in a new issue