llama-swap

llama-swap

Aplicación Docker from PikkonMG's Repository

Visión general

llama-swap is a lightweight proxy server that provides automatic model swapping for llama.cpp (llama-server). It hot-swaps models on demand based on API requests so you can serve many GGUF models from a single endpoint without restarting. Features: automatic model loading/unloading, macros, aliases, groups for multi-model concurrency, TTL auto-unload, streaming log viewer, and OpenAI-compatible API. SETUP: 1. Place your GGUF model files in the Models path below. 2. Create a config.yaml (see template https://github.com/PikkonMG/Unraid-docker-templates/blob/main/examples/llama-swap/example-llama-swap-config.yaml) and place it in the Config path. 3. In your config.yaml, reference models as /models/yourmodel.gguf 4. For NVIDIA GPU: install the Unraid Nvidia plugin, select the cuda tag, and set ExtraParams to: --gpus all 5. For AMD GPU: select the rocm tag and set ExtraParams to: --device /dev/kfd --device /dev/dri --group-add video --security-opt seccomp=unconfined 6. For Intel iGPU or other Vulkan-capable GPUs: select the vulkan tag and set ExtraParams to: --device /dev/dri 7. For CPU only: select the cpu tag and remove ExtraParams entirely

Argumentos en tiempo de ejecución

Interfaz web
http://[IP]:[PORT:8080]/ui
Red
bridge
Privilegiado
false
Parámetros adicionales
--gpus all

Configuración de plantillas

Web UI / API PortPorttcp

Port for the OpenAI-compatible API and log viewer web UI.

Objetivo
8080
Por defecto
8080
Valor
8080
Models DirectoryPathro

Path to the folder containing your GGUF model files. Referenced in config.yaml as /models/filename.gguf

Objetivo
/models
Por defecto
/mnt/user/appdata/llama-swap/models
Valor
/mnt/user/appdata/llama-swap/models
Config DirectoryPathrw

Path to the folder containing your config.yaml file. Hot-reload should be enabled via -watch-config.

Objetivo
/config
Por defecto
/mnt/user/appdata/llama-swap/config
Valor
/mnt/user/appdata/llama-swap/config
NVIDIA_VISIBLE_DEVICESVariable

Which NVIDIA GPU(s) to expose. Use 'all' or a specific GPU UUID from the Nvidia plugin settings page. Only needed for NVIDIA tags.

Por defecto
all
Valor
all
NVIDIA_DRIVER_CAPABILITIESVariable

NVIDIA driver capabilities to expose. Use 'compute,utility' for LLM inference or 'all' for full access.

Por defecto
all
Valor
all

Detalles

Repositorio
ghcr.io/mostlygeek/llama-swap:cuda
Última actualización2026-05-31
Visto por primera vez2026-04-06

Ejecute llama-swap en Unraid.

llama-swap se encuentra en Community Apps para Unraid OS. Explore Unraid para crear un servidor doméstico flexible, un NAS o un laboratorio doméstico.