Running LLMs Locally
How do I run an LLM locally? >2025-W36
Main Platforms for Running LLMs Locallyβ
Running LLMs with LM Studioβ
- https://lmstudio.ai/
- https://github.com/ggml-org/llama.cpp/discussions/2182#discussioncomment-7698315
Running LLMs with Ollamaβ
- https://ollama.com/
- https://github.com/ollama/ollama/blob/main/docs/faq.md
- on Mac mini:
OLLAMA_HOST=0.0.0.0:11434 ollama serve
- on Mac:
OLLAMA_HOST=192.168.1.252:11434 ollama run gemma3
Using Tools with Locally Running LLMsβ
Tool Supportβ
- https://llm.datasette.io/en/stable/usage.html#tools
- https://ollama.com/blog/tool-support
- https://ollama.com/blog/streaming-tool
Invoking Localy Running LLM with Existing CLIsβ
Codex Integrationβ
codex exec --config model_provider=ollama --config model_providers.ollama.base_url=http://192.168.1.252:11423/v1 --config model=gemma3 hi
Claude Code Integrationβ
- We can use claude code router to get the claude code CLI to use an LLM running locally instead of the default remote llm.
- https://github.com/musistudio/claude-code-router
- https://github.com/musistudio/claude-code-router/issues/272
npm install -g @musistudio/claude-code-router
npm install -g @anthropic-ai/claude-code
Models and Tool Supportβ
Available Modelsβ
- https://ollama.com/library/qwen3
- Gemma3 doesn't support tools ...
Hardwareβ
Clustering Mac Minisβ
Apple Silicon (M1/M2/M3) Performanceβ
- https://www.reddit.com/r/LocalLLaMA/comments/186phti/m1m2m3_increase_vram_allocation_with_sudo_sysctl/
- https://www.youtube.com/watch?v=wzPMdp9Qz6Q&ab_channel=AlexZiskind
- Has different models ... performance of m3
Documentation and Resourcesβ
Official Documentationβ
Community Discussionsβ
- https://www.reddit.com/r/LocalLLaMA/comments/1k44g1f/best_local_llm_to_run_locally/
- https://www.reddit.com/r/LocalLLaMA/comments/1j7wnye/please_help_choosing_best_machine_for_running/
- https://www.reddit.com/r/LocalLLaMA/comments/1kfz7dk/is_local_llm_really_worth_it_or_not/
- https://www.reddit.com/r/ollama/comments/1lucq0b/codexollama_airgapped/
Video Tutorialsβ
- https://www.youtube.com/watch?v=Ju0ndy2kwlw&ab_channel=NetworkChuck
- https://www.youtube.com/watch?v=e5iaYkSNrhY&ab_channel=JeremyMorgan