User Guide

Engines and Hardware

Manage llama.cpp in router mode, vLLM on Linux CUDA or ROCm, remote OpenAI-compatible servers, GGUF presets, and VRAM sizing.

Loom controls external inference engines rather than re-implementing inference itself. Manage local and linked engines from Models → Engine and API and Settings → Engines.

llama.cpp (Linux, macOS, Windows)

llama.cpp is Loom's cross-platform engine for GGUF models with CPU, NVIDIA CUDA, Apple Silicon Metal, AMD ROCm, and Vulkan support depending on your installed build and drivers.

  • Install or build: Download official prebuilt binaries or compile from source directly in Loom (source builds require Git, CMake, and a C/C++ toolchain), or link an existing llama-server binary.
  • Router mode: A router-capable llama-server stays running and loads models through its native API without restarting the process on every switch. Configure MODELS_MAX (0 for native unlimited, or 1–64) to control concurrent resident models.
  • GGUF library and presets: Search Hugging Face under Models → Hub, download GGUF files into local or external model folders, save named presets, and tune per-model context length, GPU offload, and sampling parameters.
  • Acceleration verification and repair: Loom checks llama-server --list-devices directly (never trusting stale saved device lists). If a source build loses GPU support or has a relocated CMake cache, click Rebuild (POST /api/llamacpp/update with {"clean":true}) or run loom llamacpp update.

vLLM (Linux CUDA and AMD ROCm)

On Linux systems with supported NVIDIA CUDA or AMD ROCm GPUs, Loom installs vLLM inside a private, user-owned Python environment at LOOM_HOME/engines/vllm (never touching global pip).

  • Prerequisites: Working NVIDIA CUDA or AMD ROCm drivers must already be installed on the host. AMD ROCm installation and updates require uv and use the official ROCm wheel index. macOS and Windows hosts can link a Linux vLLM server over the network.
  • Hugging Face safetensors library: Search text-generation repositories (GET /api/engines/vllm/hub/search) with optional awq, gptq, or fp8 filters and resumable HTTP Range downloads into your standard Hugging Face cache (HF_HUB_CACHE, HF_HOME/hub, or ~/.cache/huggingface/hub).
  • Per-model parameters: Configure max-model-len, gpu-memory-utilization, tensor-parallel-size, dtype, reasoning-parser, tool-call-parser, and enable-auto-tool-choice via /api/engines/vllm/params.
  • Safe defaults: trust-remote-code is off by default because enabling it executes repository Python code with Loom's host permissions.
  • Idle auto-updates: Per-engine automatic updates (/api/engines/vllm/auto-update) are off by default and run only while the engine is stopped.

For private or gated Hugging Face repositories, provide HF_TOKEN (or HF_TOKEN_PATH / HF_HOME/token). Tokens never appear in download progress responses, saved settings, or logs.

Linking remote inference servers

You can connect external compute in two ways:

  1. Direct server link: Point Loom at any running llama-server, vLLM, or OpenAI-compatible HTTP(S) server by address without installing Loom there. Direct links provide inference; package updates and model storage stay on that server.
  2. Paired Loom Node: Install loom node on a Linux GPU host (port 2511) so the main Loom manages its GGUF/vLLM libraries, updates, presets, and benchmarks remotely. See Machines and Nodes.

VRAM guidance and Bench

Search results display an advisory estimated_vram_mb and verdict (fits, tensor_parallel, no, or unknown) evaluated against 90% of detected GPU memory. Because actual memory use varies with context window, KV-cache dtype, and concurrency, treat estimates as guidance and verify throughput with Bench (reproducible prompt prefill and decode timings without tools or extra context).

loom where
loom llamacpp update

Continue to Codeman Agents to pair coding-agent sessions alongside your local models.