Available memory is an important consideration when choosing a computer for local AI models. Model size and the selected context length affect the resources needed to run them.
Storage and memory have different jobs
Storage holds the downloaded model file. Working memory provides room for the model and the data it uses while running. On Apple’s unified-memory systems, processor components share a common pool that the operating system and other apps also need.
Ollama documents that a longer context requires more memory. Cache precision can also change the balance between memory use and response quality; the actual requirement depends on the model and task.

Test the task you care about
Start with a smaller local model and a representative task. Observe response quality, speed and available memory. Before choosing a larger model, run the same task under comparable conditions.
Ollama documents ollama ps as a way to see how a loaded model is distributed between CPU and GPU memory. Apple lists different memory configurations for its M5 Max and M5 Ultra Mac Studio models. Check the configurations and current prices in your own region before buying.
Fitting is only the first test
A model that loads is not necessarily fast enough for your workflow. Leave room for other applications; speech, long documents and larger context windows may need extra resources. Choose the machine that handles your real task well, rather than assuming the biggest model is always best.
Ask AI about this article
Opens in a new tab with the question filled in.


