Running open-weight models locally keeps source code private and removes per-token API bills. While our Docker Model Runner vs Ollama deep dive covers container workflows, this three-way overview compares all three runtimes as of December 2026.
1. Official Runtimes & Supported Formats
- Ollama: CLI-first daemon supporting GGUF models with an OpenAI-compatible API on
localhost:11434. - LM Studio: Desktop GUI supporting GGUF and Apple Silicon MLX models with visual GPU layer controls.
- Docker Model Runner: OCI-packaged model artifacts integrated directly with Docker Compose workflows.
2. Quick Start & Hardware Sizing
ollama pull qwen2.5-coder:7b
ollama run qwen2.5-coder:7b "Write a Python FastAPI healthcheck endpoint"For Q4_K_M quantization, 7B–8B models fit comfortably in 8 GB VRAM, while 14B–32B models benefit from 16–24 GB VRAM or unified memory. Keep local endpoints bound to 127.0.0.1 on untrusted networks.