Skip to content

Model Management, Storage & Versioning

A local model is more than raw parameters: tensor layout, tokenizer vocabulary, chat template and quantization metadata. Maintain a manifest with SHA-256 digests per model version.

Storage sizing. A quantized 7–8B GGUF is roughly 4–5 GB, but runtime memory also needs the KV/context cache plus OS and app overhead. Rule of thumb: file size ≈ params × bits-per-weight ÷ 8. Keep a dedicated models directory, and note that Ollama/LM Studio each maintain their own store — plan for duplication or shared volumes.

Version control for models. A local model is more than raw parameters: tensor layout, tokenizer vocabulary, chat template and quantization metadata. Maintain a manifest with SHA-256 digests per model version and record which quant/context config is actually in production — otherwise re-deploys silently drift. (Same discipline as the supply-chain controls in §4.)

Tool selection (verified 2026 landscape):

Tool Best for Difficulty Open source Enterprise ready
Ollama Beginners / developers, OpenAI-compatible API Easy Yes Limited (no audit logging, no governance)
LM Studio Desktop GUI + model browser Easy No (free for personal and commercial use) No
vLLM Production inference, multi-GPU, continuous batching Advanced Yes Yes
llama.cpp Maximum efficiency, exotic hardware, GGUF Advanced Yes Partial
Open WebUI Team chat UI + analytics Easy Yes Partial
AnythingLLM RAG / knowledge assistants Easy Yes Partial
LocalAI OpenAI API replacement Medium Yes Partial
LiteLLM Model routing across local + cloud Medium Yes Yes

Ollama's operational weaknesses to plan around: no built-in audit logging, limited multi-model orchestration, limited enterprise governance.

Monitoring and observability. - OpenTelemetry GenAI semantic conventions are the 2026 standard. Key attributes: gen_ai.request.model, gen_ai.usage.input_tokens, gen_ai.usage.output_tokens, gen_ai.response.finish_reasons; content attributes (gen_ai.input.messages, gen_ai.system_instructions, tool args/results) are off by default because they can contain sensitive data. Metrics: gen_ai.client.operation.duration (latency histogram, filterable by model) and gen_ai.client.token.usage (histogram, filterable by gen_ai.token.type). - Instrumentation exists for VS Code Copilot, OpenAI Codex and Claude Code (traces/metrics/log events), plus any app you build yourself. A zero-infrastructure local backend: Aspire Dashboard via Docker (mcr.microsoft.com/dotnet/aspire-dashboard:latest) — OTLP on :4318, UI on :18888, no cloud account, with a GenAI chat-style span visualizer. - Engine-level: vLLM exposes Prometheus metrics at /metrics in Exposition Format — request counters, vllm:num_requests_waiting, scheduler/latency metrics — scrape with Prometheus, visualize with Grafana or the community vllm-dashboard; pair with watch -n 2 nvidia-smi (or rocm-smi) for VRAM/utilization/temperature, and persist to file. Open WebUI has built-in admin analytics (message volume, token consumption, per-model and per-user breakdown) and OTel integration; Grafana dashboards exist for it too. - Minimum viable ops stack for a local server: vLLM/Ollama OpenAI-compatible endpoint → Open WebUI front-end → Prometheus + nvidia-smi for GPU, OTel spans for request-level tracing.

Sources

Date: 2026-10-09