hindsight-llm auf M4000 (gpu-pve48): Qwen3-8B, -n 2048, Retain-Grenzen, verifier-small aus (Spec 2026-12-04)
ci / test (push) Failing after 22s

This commit is contained in:
Robert Rapp
2026-12-04 11:58:03 +01:00
parent 8de5f3de8d
commit 4fec2da461
4 changed files with 99 additions and 4 deletions
@@ -10,6 +10,9 @@ llamacpp_cards:
EMBED_GPU: Quadro P2000
RERANK_GPU: Quadro P2000
CHAT_GPU: Quadro P2000
# hindsight-llm (04.12.2026): die M4000 trägt das Hindsight-LLM (Retain/Observations), siehe
# docs/spec/2026-12-04-hindsight-llm-m4000.md. Ausnahme zu ADR-0006, nur im Profil hindsight (gpu-pve48).
HINDSIGHT_GPU: Quadro M4000
# Dienste und Ports je Profil (feste Ports im Compose, Host-Netz)
llamacpp_services:
@@ -18,6 +21,8 @@ llamacpp_services:
- {name: llamacpp-rerank, port: 8082}
chat:
- {name: llamacpp-chat, port: 8080}
hindsight: # nur k3s (tasks/k3s.yml), kein Compose-Dienst
- {name: llamacpp-hindsight, port: 8083}
# ufw: nur Regeln vormerken (Kommentar knaster-llamacpp), ufw nie ein- oder ausschalten (Firewall: Task 4.4)
llamacpp_allow_from: 192.168.100.0/24
@@ -33,6 +38,7 @@ llamacpp_env:
EMBED_POOLING: last
RERANK_GGUF: bge-reranker-v2-m3-Q8_0.gguf
CHAT_GGUF: Qwen3-4B-Q4_K_M.gguf
HINDSIGHT_GGUF: Qwen3-8B-Q4_K_M.gguf
# Modelle je Profil mit fester Revision und Prüfsumme (sha256 = LFS-OID laut Hugging Face, ADR-0006)
_hf: https://huggingface.co
@@ -48,6 +54,10 @@ llamacpp_models:
- dest: Qwen3-4B-Q4_K_M.gguf
url: "{{ _hf }}/Qwen/Qwen3-4B-GGUF/resolve/bc640142c66e1fdd12af0bd68f40445458f3869b/Qwen3-4B-Q4_K_M.gguf"
checksum: sha256:7485fe6f11af29433bc51cab58009521f205840f5b4ae3a32fa7f92e8534fdf5
hindsight: # liegt auf gpu-pve48 bereits vor (SOURCES.txt, sha256 am 04.12. geprüft)
- dest: Qwen3-8B-Q4_K_M.gguf
url: "{{ _hf }}/Qwen/Qwen3-8B-GGUF/resolve/7c41481f57cb95916b40956ab2f0b139b296d974/Qwen3-8B-Q4_K_M.gguf"
checksum: sha256:d98cdcbd03e17ce47681435b5150e34c1417f50b5c0019dd560e4882c5745785
# --- k3s (Task 6.1, D6): tasks/k3s.yml, Playbook playbooks/gpu-llamacpp-k3s.yml ---
llamacpp_image: "knaster/llamacpp-server:{{ llamacpp_env.LLAMACPP_REF }}-cu{{ llamacpp_env.CUDA_VERSION }}"
@@ -81,3 +91,17 @@ llamacpp_k3s_services:
"--jinja", "--chat-template-kwargs", "{\"enable_thinking\": false}",
"--alias", "verifier-small", "--metrics", "--no-slots", "--no-webui",
"--host", "0.0.0.0", "--port", "8080"]
# Hindsight-LLM auf der M4000 (8 GB): Qwen3-8B Q4_K_M (~5 GB) + KV für 8k Kontext (~1,2 GB).
# Harte Grenzen gegen den Vorfall 25.11.–04.12. (64k max_tokens + repeat_penalty 1.0 → Endlosgenerierung,
# P2000 dauerhaft 99 %, 1.012 Retain-Fehler): -n 2048 deckelt jede Antwort serverseitig, egal was der Client
# schickt; --repeat-penalty 1.1 gegen Schleifen; ein Slot (-np 1), Rückstau regelt Hindsight (max_concurrent).
hindsight:
- name: llamacpp-hindsight
port: 8083
gpu_var: HINDSIGHT_GPU
memory_limit: 8Gi
args: ["-m", "/models/{{ llamacpp_env.HINDSIGHT_GGUF }}", "-c", "8192", "-np", "1", "-ngl", "99",
"-n", "2048", "--repeat-penalty", "1.1",
"--jinja", "--chat-template-kwargs", "{\"enable_thinking\": false}",
"--alias", "hindsight-llm", "--metrics", "--no-slots", "--no-webui",
"--host", "0.0.0.0", "--port", "8083"]