llm-host/llmhost
neil 8611d92cf4 MLX: cap KV caches and recover from crashes; add llmhost watch
- mlx_lm.server kept up to 10 conversations' KV caches with no byte
  limit and prefilled 8 prompts at once, which ran a 16 GB Mac out of
  GPU memory. The plan now gives the live request half the free memory
  (at least 32k tokens), caps --prompt-cache-bytes to the rest, and on
  small machines prefills one prompt at a time.
- When its generation thread dies, mlx_lm.server keeps running but fails
  every request. The proxy now restarts it.
- llmhost watch: one live line with download progress (bytes, speed,
  time left), then loading, until the model answers. Setup and switch
  point at it instead of llmhost logs -f.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QaE1hpvyZTJixEbUUMj9Ca
2026-11-02 07:45:12 -08:00
..
backends MLX: cap KV caches and recover from crashes; add llmhost watch 2026-11-02 07:45:12 -08:00
web Dashboard: add a prompt processing tok/s chart 2026-11-02 05:03:07 -08:00
__init__.py Initial llm-host: hardware-aware local LLM server with dashboard 2026-11-02 03:51:06 -08:00
__main__.py Initial llm-host: hardware-aware local LLM server with dashboard 2026-11-02 03:51:06 -08:00
catalog.json Add Ornith 1.5 9B for 16 GB Macs and 16 GB GPUs 2026-11-02 05:32:35 -08:00
cli.py MLX: cap KV caches and recover from crashes; add llmhost watch 2026-11-02 07:45:12 -08:00
hfcache.py MLX: cap KV caches and recover from crashes; add llmhost watch 2026-11-02 07:45:12 -08:00
hw.py Initial llm-host: hardware-aware local LLM server with dashboard 2026-11-02 03:51:06 -08:00
opencode.py Offer to install opencode and connect it to the local server 2026-11-02 05:37:35 -08:00
paths.py Initial llm-host: hardware-aware local LLM server with dashboard 2026-11-02 03:51:06 -08:00
plan.py MLX: cap KV caches and recover from crashes; add llmhost watch 2026-11-02 07:45:12 -08:00
service.py Initial llm-host: hardware-aware local LLM server with dashboard 2026-11-02 03:51:06 -08:00