Files
computer-playbook/inventories/development/tools.yml.j2
T
kevinveenbirkenbachandClaude Opus 5 ee9cbc8d5b feat(tools): pin the lane's judge model in its own inventory
The oracle asks a chat model whether a translation states its source. llama3.2:1b cannot answer that: on the suite's own fixture it scored an unrelated text at the middle level instead of the bottom one, and asked as a yes-or-no question it called two identical texts different. With it the suite reached no verdict at all, reporting that the judge read none of the 47 languages the catalogs hold machine translations for. Qwen2.5-3B answers both correctly, and the same run then judged 248 samples.

The pin lives in the lane inventory rather than in AI_LOCAL_MODELS, because a judge that can separate a faithful rendering from an unrelated text is a demand no deployment makes, and the default should not grow a gigabyte to satisfy a check. The litellm config builds its routes from the merged application config, so a lane override reaches the model list and its window without touching the repository default.

LANE_MODEL_ALIAS repeats the one name in utils/inventory/tools.py, because ensure() asks whether the lane already serves before the deploy that writes the rendered inventory, so the probe cannot read it from there. A lane serving one model while the probe expects another never reports ready and redeploys on every call, so a test renders the template and holds the two names equal.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-18 10:30:22 +02:00

67 lines
1.9 KiB
Django/Jinja

---
# Host vars the tools runner deploys its toolchain services with.
# Rendered by utils.inventory.tools with square-bracket delimiters, so the
# curly-brace expressions below stay untouched for the deploy to resolve.
TLS_MODE: self_signed
TIMEOUT_FACTOR: 4
DOCKER_BIND_HOST: 0.0.0.0
RESOURCE_HOST_CPUS_OVERRIDE: "{{ ansible_facts['processor_nproc'] }}"
SIZE_PERCENT_CLEANUP_DISC_SPACE: 98
users:
administrator:
authorized_keys:
- ssh-ed25519 AAAA_TEST_DUMMY_KEY github-ci-dummy@infinito
applications:
svc-ai-libretranslate-engine:
services:
libretranslate-engine:
models_dir: [[ models_dir ]]/libretranslate
loading_model: task
directions: from_source
load_only:
[% for code in load_only %]
- [[ code ]]
[% endfor %]
cpus: "{{ lookup('resource', 'host_cpus') }}"
mem_limit: "{{ lookup('resource', 'mem_limit') }}"
pids_limit: 4096
svc-ai-litellm:
secrets:
credentials:
master_key: [[ litellm_master_key ]]
svc-ai-ollama:
services:
ollama:
cpus: "{{ lookup('resource', 'host_cpus') }}"
min_storage: 4600MB
preload_models:
- alias: qwen2.5:3b
context: 32768
name: qwen2.5-3b-instruct
repo: lmstudio-community/Qwen2.5-3B-Instruct-GGUF
url: https://huggingface.co/lmstudio-community/Qwen2.5-3B-Instruct-GGUF/resolve/main/Qwen2.5-3B-Instruct-Q4_K_M.gguf
source: https://huggingface.co/lmstudio-community/Qwen2.5-3B-Instruct-GGUF
quant: q4_k_m
file: Qwen2.5-3B-Instruct-Q4_K_M.gguf
sha256: "d44e2c5d1ec3cae1d5cf6a744bee528e46c65a1e66e741fa92730967e7d625bb"
bytes: 1929903008
svc-ai-s1:
secrets:
credentials:
api_key: [[ s1_api_key ]]
services:
s1:
models_dir: [[ models_dir ]]/s1
web-svc-translate:
services:
translate:
router:
strategy: preference