Files
bdi_podman_serverconf/Services/llamacpp/llamacpp.container
T

50 wiersze
1.4 KiB
INI
Czysty Zwykły widok Historia

2025-12-11 20:01:23 +01:00
[Container]
ContainerName=llamacpp
Image=localhost/llamacpp:vulkan-amd64
#AutoUpdate=registry
Network=internal.network
PublishPort=8090:8090
# Production - Lemonade usa Hugging Face Hub per i modelli
2026-03-27 12:59:04 +00:00
Volume=/srv/containers/aitools/models/hf:/root/.cache/huggingface/hub
# Vecchia cartella
#Volume=/srv/containers/aitools/models:/root/.cache/llama.cpp
2025-12-11 20:01:23 +01:00
# ROCm tuning
AddDevice=/dev/dri/renderD128
PodmanArgs=--group-add=keep-groups --ipc=host
SecurityLabelType=container_runtime_t
Environment=LLAMA_ARG_HOST=0.0.0.0
Environment=LLAMA_ARG_PORT=8090
Environment=LLAMA_ARG_NO_MMAP=true
Environment=LLAMA_ARG_CTX_SIZE=131072
Environment=LLAMA_ARG_HF_REPO=unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q2_K
2026-06-29 22:06:54 +02:00
# MTP
Environment=LLAMA_ARG_SPEC_TYPE=draft-mtp
Environment=LLAMA_ARG_SPEC_DRAFT_N_MAX=6
2025-12-11 20:01:23 +01:00
# HF
Environment=HF_HOME=/root/.cache/huggingface
Environment=HF_TOKEN=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
2026-06-29 11:38:09 +02:00
# API Key — protezione accesso al server (da impostare anche in Odoo > AI > API Key)
# Decommentare per abilitare l'autenticazione
#Environment=LLAMA_API_KEY=la-tua-chiave-segreta
# Model alias — nome con cui il server risponde alle richieste (campo "model" nell'API)
# Se non impostato, llama-server usa il nome del file .gguf come alias
#Environment=LLAMA_ARG_ALIAS=chat
# Override Boot
2026-03-31 16:16:41 +02:00
#Entrypoint=/usr/bin/sleep
#Exec=infinity
2025-12-11 20:01:23 +01:00
[Service]
Restart=on-failure
TimeoutStartSec=15m
[Install]
WantedBy=multi-user.target default.target