Consider whether separate nodes or refactoring with an adapter pattern.
Background:
llama-server has a router mode — launch it with no -m at all, pointed at --models-dir
(or --models-preset .ini) instead. In that mode it exposes:
• GET /models — lists models with live status: unloaded, loading, loaded, sleeping, downloading
• POST /models/load / POST /models/unload — explicit load/unload by name
• --sleep-idle-seconds — auto-unloads an idle model’s weights and its KV cache from RAM/VRAM after N seconds, without you calling anything
That’s the manual-memory-management API we’re using for Ollama. It landed via PR #18228 (merged 2025-12-21)
Consider whether separate nodes or refactoring with an adapter pattern.
Background:
llama-server has a router mode — launch it with no -m at all, pointed at --models-dir
(or --models-preset .ini) instead. In that mode it exposes:That’s the manual-memory-management API we’re using for Ollama. It landed via PR #18228 (merged 2025-12-21)