i made a browser control panel for upstream llama.cpp. it’s early and built with a lot of ai help, so i’d like feedback on the technical approach more than anything.
it runs no models itself. it installs the official llama.cpp builds (sha-256 checked, test-run before switching, can roll back) and drives llama-server’s own router mode, editing its models.ini for you. when llama.cpp merges a new architecture, you update from the panel and have it the same day.
the vram part, since that’s where the interesting problems were
before a load, it predicts the footprint from the gguf, mirroring where llama.cpp actually puts things:
- the input embedding stays in system ram
- n-gpu-layers offloads the last n blocks (the output layer only once n exceeds the block count)
- cpu-moe / n-cpu-moe / override-tensor pull matching tensors back to cpu
- each block’s kv cache lives with its block. hybrid models (qwen3-next, nemotron-h) only cache on attention layers, sliding-window layers only cache the window, and shared-kv layers (gemma 3n e-models) cache nothing
the prediction is only a first guess though. after a real load it records per-gpu used memory before vs after, and that measurement replaces the prediction for that exact config. the memory freed at unload is the best reading of all, because the cuda pool grows on the first long prompt.
some things i measured on my own box (windows, rtx 5080 + 5060 ti) that surprised me:
- a process pinned to gpu1 still opens a ~231 mib cuda context on gpu0
- a vision projector lands on cuda0 whatever the model’s device setting says
this matters for multi-model mode. when the router is full it evicts the least recently used model, and llama.cpp’s --fit can quietly shrink a newcomer’s context. neither is okay when the newcomer is a background job and the evictee is the model you’re chatting with. so every load goes through a planner first. the main model gets the fastest gpu that fits it, and workers stay off that gpu.
per-model settings come from parsing llama-server --help live, so new upstream flags show up without a llamaforge release.
embers (new in v0.16)
small local agents that watch a topic overnight and write a morning brief. every claim has to quote its source word for word, and plain code (not the model) checks the quote against the saved raw snapshot. no match, and the claim gets dropped. no browser, no tools, nothing leaves the machine unless you turn on push.
python stdlib backend, vanilla js frontend, no build step, mit. the measurement side uses nvidia-smi, so it’s nvidia-first. linux and macos pass ci but have had little real-hardware use, so bug reports are very welcome. happy to be roasted.
demo: https://youtu.be/slU-FZ5Q62M
GitHub - dadwritestech/LlamaForge: Open-source control panel for the real llama.cpp: see where a model lands in your VRAM before loading, every llama-server flag per model, one-click llama.cpp updates, several models at once, and Embers (local agents whose quotes are checked by code). Windows · Linux · macOS. · GitHub