Ollama setup: local models and OpenCode tool tests

Learn Ollama setup, terminal chat and API access on an M1 Mac with 16GB RAM, then see where two small models fail at OpenCode tool use.

Player not loading? Watch on YouTube

This beginner tutorial explains how Ollama serves downloaded models to chat clients and coding tools. The presenter installs it on macOS and tests an M1 MacBook Pro with 16GB of RAM. The walkthrough covers Llama 3.2 3B, desktop chat, terminal commands and a curl request to the local server. Ollama is described as open source. The optional web search example uses the internet.

The examples show how to run models locally for conversation and short JavaScript tasks. Llama produces a string-reversal function and explains its calls. The presenter then downloads a Qwen 2.5 Coder model and requests Fibonacci and time-zone functions. These are demonstrations of generated responses, rather than a systematic check of code correctness. Model selection also gets attention, particularly download size and the memory available on the machine.

The OpenCode section tests whether those models can support a coding assistant that uses tools. Both emit JSON instead of executing the requested directory inspection through OpenCode. The presenter reports memory pressure and avoids trying much larger models on this laptop. His suggestion that 48 to 64GB of RAM might help is an estimate, not a verified requirement or guarantee of successful tool use. The result separates basic local LLM chat and code generation from reliable agentic work in this particular setup.