local-llm-toolkit

A single-command control layer for running multiple local LLMs on one consumer GPU — built and tuned on an RTX 5080 (16 GB, Blackwell) + Ryzen 9800X3D + 78 GB RAM.

It wraps a pile of engines (ExLlamaV3/TabbyAPI, llama.cpp, ik_llama.cpp, Ollama) behind one llm CLI and a lightweight native GUI panel, with ready-made serving profiles, benchmark scripts, and evaluation harnesses. The design goal throughout: squeeze strong models into 16 GB VRAM and run a GPU coder + a CPU helper in parallel, then swap/compare models with one command.

Not one-click. This repo ships orchestration + recipes, not binaries. You build/install the engines yourself (see docs/setup.md); the toolkit then drives them.


What’s in the box

Layer Piece What it does
Control llm (bash CLI) one front-door: up/down/status/ask/chat/switch/bench/logs/webui for every endpoint, with VRAM mutual-exclusion
  llm-panel-rs/ (Rust + FLTK GUI) ~10 MB borderless panel: live status LEDs, CPU/RAM/VRAM gauges + history graph, one-click controls
Serving start-*.sh + profiles/** per-engine start scripts + tuned model profiles (bpw, KV, ctx, CPU-offload)
Setup setup-*.sh + lib/*.sh install/build dispatchers (TabbyAPI venv, CPU-only llama.cpp, Ollama)
Benchmark bench-*.sh token/s measurement per engine
Evaluation eval-*.py, refactor-eval.py, agent-loop-test.py, compare-*.sh objective coding-quality + speed head-to-heads (generate code → run it → pass/fail)
Agent agent/ Goose web agent wired to the local endpoints + SearXNG/Playwright MCP

The four endpoints

All OpenAI-compatible on 127.0.0.1. GPU-heavy ones are mutually exclusive (they share the 16 GB); gpu+cpu run in parallel.

Alias Port Engine Default model Role
gpu 5000 ExLlamaV3 / TabbyAPI Ornith-1.0-35B-A3B (EXL3 3.08bpw) coding + 128 K context (hybrid attn), ~130 tok/s; Qwen3-Coder-30B is the one-command fallback
cpu 5001 llama.cpp (CPU-only) Qwen3-Coder-30B-A3B (GGUF) background helper, VRAM 0
hyb 5002 ik_llama.cpp Mistral-Small-4-119B (Q4) big-brain / reasoning, GPU+CPU MoE offload (~25 tok/s)
ko 5003 llama.cpp (GPU) Kanana-2-30B (GGUF) native Korean

The gpu slot has validated swap-in alternatives (mutually exclusive — one GPU model at a time): Qwen3-Coder-30B (./setup-exl3.sh a-safe, the fast-hard-problem fallback), Qwen3.6-35B-A3B (d-qwen36), and Bonsai-27B — a ternary (1.71-bit) Qwen3.6-27B on a llama.cpp fork that fits 262 K context on 16 GB and adds vision (./start-bonsai-server.sh, SPECULATIVE=1 → 148 t/s). See docs/findings.md for the head-to-heads.

Remote endpoints (read-only)

llm status also shows two LAN boxes it does not manage: hrvl (hrvl-server.local:8080, AMD R9700 32 GB, Qwen3.6-35B-A3B, 2×64 K slots) and hermes (Jetson Xavier head via head-llm-tunnel.service, :9999). llm ask/chat --hrvl|--hermes talk to them; start/stop belongs to their own systemd units. oc-run.sh [-C dir] [-c] "task" delegates an agentic coding task to opencode running fully local on hrvl (no cloud provider) and prints the resulting git diff --stat — the hand-off used by Claude Code.

Quickstart

git clone <this-repo> local-llm-toolkit && cd local-llm-toolkit
cp config.env.example config.env      # point at your model store + engine builds
# ... build the engines you need (see docs/setup.md) ...

./llm up gpu        # auto-downloads the endpoint's model if missing, then starts it
./llm status        # see what's running + CPU/RAM/VRAM
./llm chat --gpu    # talk to it
./llm switch b-quality   # hot-swap serving profile
./llm bench gpu     # measure tok/s

llm up <gpu|cpu|hyb|ko> downloads that endpoint’s model on first use (via download-model.sh) — no manual fetch step. ./download-model.sh <ep> pre-fetches without starting.

GUI: cargo build --release --manifest-path llm-panel-rs/Cargo.toml then run llm-panel-rs/target/release/llm-panel (set LLM_CLI if the repo isn’t at ~/0_AI/local-llm).

Docs

Models

Third-party models are downloaded by the setup scripts (not redistributed here). The one derived model published alongside this repo:

License

MIT (the toolkit’s own scripts) — see LICENSE. Orchestrated engines and models carry their own licenses.