Files
infrastructure/llm-server/llm/ansible/roles/inference_engine/defaults/main.yml
T
spektr 8480d53349
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 31s
ci-static / ansible-syntax (push) Successful in 27s
ci-static / markdown-links (push) Successful in 20s
ci-static / secret-scan (pull_request) Successful in 21s
ci-static / yamllint (pull_request) Successful in 44s
ci-static / ansible-syntax (pull_request) Successful in 1m3s
ci-static / markdown-links (pull_request) Successful in 23s
llama.cpp v1.0.0: Image-Pin auf server-rocm-v1.0.0-b12359-b1b770d heben (GNAI-010 0.20)
- inference_engine + rocm_container_probe: Digest sha256:4bbbd2e3... (amd64-Manifest
  sha256:abb28972...), Build b12359, Revision b1b770d90..., OCI-Version
  v1.0.0-b12359-b1b770d. v1.0.0 (Release 13.11.2026) loest ueber nightly-tag.txt
  auf b12359 auf; moving tag server-rocm zeigt auf denselben Digest. Semver-Policy
  upstream ab v1.0.0 — passt zur Digest-Pinning-Konvention.
- Kompatibilitaet gegen b12359 llama-server --help geprueft (Image lokal gepullt):
  alle 26 Exec=-Flags des Quadlets existieren; einzige entfernte Option
  --defrag-thold (#30565) wird nicht verwendet. ENTRYPOINT /app/llama-server
  unveraendert. Server-Haertung #32113/#32115/#32098 greift nicht (kein
  server-seitiges --tools/MCP, keine privaten Media-URLs, OpenWebUI ist
  Non-Browser-Client). libllama.so.1/36 entfernte Symbole betreffen nur native
  Bindings — wir sind HTTP-only.
- Neue Optionen bewertet (GNAI-010 0.20): FP8-KV f8_e4m3 (auf gfx1030 emuliert,
  Benchmark vor Adoption, Default q8_0), --moe-cache-cpu-share (nur MoE),
  --sleep-idle-seconds (kontraproduktiv), --api-key (optional), die Opt-out-Flags
  --allow-unauthenticated-tools/--media-allow-private-urls bleiben aus.
- Doku: GNAI-010 v0.20 + Abschnitt 3.1, GNAI-008 v0.23 + Probe-Abschnitt,
  Host-README Pin-Block (alter Pin als historisch markiert).
- Quadlet Exec bleibt unveraendert. Rollout auf 10.0.0.90 steht noch aus.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-14 15:04:14 +01:00

135 lines
5.1 KiB
YAML

---
# Inference engine deployment (GNAI-008 section 7.4, GNAI-010 sections 3, 5,
# 6 and 9). The first engine profile is llama.cpp; Strata follows as an
# Experimental candidate and is intentionally not modelled here yet.
#
# Container image: immutable digest, never a moving tag (GNAI-010 section 3.1).
# 2026-11-14: pin moved to the v1.0.0 stable tag (released 2026-11-13), resolved
# via the release asset nightly-tag.txt to build b12359; the moving tag
# `server-rocm` already points at the same digest. All Exec flags of the quadlet
# were verified against `llama-server --help` of b12359 — the only removed flag
# is --defrag-thold (unused here). OCI labels: version v1.0.0-b12359-b1b770d,
# revision b1b770d90d94cad9e9ea5b993bdbc383a522fb28.
inference_engine_image: ghcr.io/ggml-org/llama.cpp:server-rocm-v1.0.0-b12359-b1b770d
inference_engine_image_ref: ghcr.io/ggml-org/llama.cpp@sha256:4bbbd2e33deb54330fd23edde3a2cdf12b05ce4415139c7e8639a9aebbacdcf2
inference_engine_image_build: "b12359"
inference_engine_image_revision: b1b770d90d94cad9e9ea5b993bdbc383a522fb28
# Environment identity (overridden per inventory, GNAI-008 section 7.4).
inference_engine_user: gnai-testing
inference_engine_uid: 981
inference_engine_user_home: /var/lib/ghostnet-ai/testing
inference_engine_unit_prefix: gnai-testing-llama
inference_engine_network_name: gnai-testing-llama
inference_engine_network_alias: llama-cpp
# Paths
inference_engine_quadlet_user_dir: /etc/containers/systemd/users
inference_engine_generator_path: /usr/lib/systemd/system-generators/podman-system-generator
inference_engine_container_port: 8080
# Bring-up context override: when set, it replaces the profile ctx_size for
# every profile (GNAI-008 section 7.5: 64k bring-up before the 128k target).
# Set to null once the 128k acceptance (GNAI-010 section 10.3) has passed.
inference_engine_ctx_size_override: null
# Shared serving parameters (GNAI-010 sections 6.1-6.5, 8).
inference_engine_common:
n_gpu_layers: all
split_mode: layer
tensor_split: "1,1"
flash_attn: "on"
cache_type_k: q8_0
cache_type_v: q8_0
reasoning: "on"
reasoning_budget: -1
# Exactly one profile is active at a time; the other quadlet stays rendered
# but stopped (GNAI-010 section 5.3). Unit names follow GNAI-010 section 5.1.
inference_engine_active_profile: swift-qwen3.8-27b-q6k
inference_engine_profiles:
swift-qwen3.8-27b-q6k:
unit_suffix: swift
description: Swift efficiency finetune of Qwen3.8-27B (Q6_K)
model_directory: swift-qwen3.8-27b
model_file: Swift-Qwen3.8-27B-Q6_K.gguf
alias: swift-qwen3.8-27b-q6k
ctx_size: 131072
n_predict: 32768
parallel: 1
reasoning_effort: xhigh
temp: 1.0
top_p: 0.95
top_k: 20
min_p: 0.0
presence_penalty: 0.0
repeat_penalty: 1.0
mtp:
enabled: false
spec_draft_n_max: 2
unsloth-qwen3.8-27b-ud-q6k:
unit_suffix: unsloth
description: Unsloth UD quant of Qwen3.8-27B (Q6_K)
model_directory: unsloth-qwen3.8-27b
model_file: Qwen3.8-27B-UD-Q6_K.gguf
alias: unsloth-qwen3.8-27b-ud-q6k
ctx_size: 131072
n_predict: 32768
parallel: 1
# xhigh for the controlled A/B comparison; switch to medium for the
# practice comparison (GNAI-010 section 6.1).
reasoning_effort: xhigh
temp: 1.0
top_p: 0.95
top_k: 20
min_p: 0.0
presence_penalty: 0.0
repeat_penalty: 1.0
mtp:
enabled: false
spec_draft_n_max: 2
swift-1.5-qwen3.8-27b-q6k:
unit_suffix: swift15
description: Swift 1.5 reasoning-efficient finetune of Qwen3.8-27B (Q6_K)
model_directory: swift-1.5-qwen3.8-27b
model_file: Swift-1.5-Qwen3.8-27B-Q6_K.gguf
alias: swift-1.5-qwen3.8-27b-q6k
ctx_size: 131072
n_predict: 32768
parallel: 1
reasoning_effort: xhigh
temp: 1.0
top_p: 0.95
top_k: 20
min_p: 0.0
presence_penalty: 0.0
repeat_penalty: 1.0
mtp:
enabled: false
spec_draft_n_max: 2
# Derived paths (do not override).
inference_engine_quadlet_dir: "{{ inference_engine_quadlet_user_dir }}/{{ inference_engine_uid }}"
# Health-check commands per available tool (GNAI-010 section 8). curl -f
# fails on HTTP error statuses, so rc == 0 is a valid health signal; the
# bash fallback prints the status line, the wget variant fails on errors.
inference_engine_curl_health_cmd: >-
curl -fsS -o /dev/null http://127.0.0.1:{{ inference_engine_container_port }}/health
inference_engine_curl_models_cmd: >-
curl -fsS http://127.0.0.1:{{ inference_engine_container_port }}/v1/models
inference_engine_wget_health_cmd: >-
wget -qO- http://127.0.0.1:{{ inference_engine_container_port }}/health
inference_engine_wget_models_cmd: >-
wget -qO- http://127.0.0.1:{{ inference_engine_container_port }}/v1/models
# bash /dev/tcp fallback for health checks when the image contains neither
# curl nor wget. printf receives the backslash escapes as literal text.
inference_engine_bash_health_script: >-
exec 3<>/dev/tcp/127.0.0.1:{{ inference_engine_container_port }};
printf 'GET /health HTTP/1.0\r\n\r\n' >&3; cat <&3
inference_engine_bash_models_script: >-
exec 3<>/dev/tcp/127.0.0.1:{{ inference_engine_container_port }};
printf 'GET /v1/models HTTP/1.0\r\n\r\n' >&3; cat <&3