Follow us
Breaking
Software

Running LLMs locally with Ollama

Ollama enables local LLM management on macOS, Linux, and Windows using llama.cpp. Version 0.23.1 provides a 2x speed increase for Gemma 4 31B coding tasks on Apple Silicon via the MLX runner.

Share

Local Model Management and API

Ollama provides a platform to build and run open-source LLMs locally on macOS, Linux, and Windows via WSL. It uses llama.cpp as its engine to load models into memory. The runtime runs a web server on port 11434. This server allows communication from local applications and CLI tools. You can pull models like Llama, Mistral, Gemma, or Phi from the registry using the ollama pull command. To run a model, you use the ollama run command followed by the model name. A GUI application for visual prompting was released in July 2025. This application simplifies interactions and allows users to add PDF and other text-based files to their prompts. Since the models run on your own hardware, your data remains private and you avoid per-token billing. The platform provides a REST interface for developers to manage their models. The following table lists the primary endpoints available in the API:

Endpoint Purpose
POST /api/generate Generate text
POST /api/embeddings Generate embeddings
GET /api/tags List installed models
POST /api/pull Download a new model
POST /api/create Create a custom model
DELETE /api/delete Remove a model

Developers can use these endpoints to build private AI workflows. For example, POST /api/generate handles text generation while POST /api/embeddings creates numeric vectors for search or RAG systems. You can use the OpenAI Python or JavaScript libraries by changing the hostname to http://localhost:11434. This allows you to integrate Ollama with the Vercel AI SDK or Microsoft Autogen. You can also manage models by listing them with GET /api/tags, downloading them with POST /api/pull, creating custom versions with POST /api/create, or removing them with DELETE /api/delete.

Performance and Reliability

The May 2026 release of Ollama v0.24.0 added Codex App support through the ollama launch codex-app command. This tool allows OpenAI’s desktop Codex experience to run against local models like glm-5.1 or gemma4:31b. The update also included a reworked MLX sampler for Apple Silicon and support for vision models via ollama launch opencode. In May 2026, version 0.23.1 added Gemma 4 MTP speculative decoding on Mac via the MLX runner, which provided a 2x speed increase on Gemma 4 31B coding tasks on Apple Silicon. While these updates improve the experience, Ollama currently handles parallel requests as a FIFO queue. If your application uses async mechanisms to send many prompts, latency will increase because the system does not support parallelism at present. A census of 305 official Ollama tags on October 29 found that seven tags were non-functional. These non-functional artifacts represented 2.3% of the total and were all low-bit quantizations of models with four billion parameters or fewer. Six of these seven tags solved zero of 164 HumanEval+ tasks, while the llama3.2-1B q3_K_S tag solved only six. These failures occurred on both CUDA and Metal and the developers found that the original files were not corrupted. The researchers found that the failures happened because of a lack of calibration in the low-bit quantized versions. This census identified that 291 of the 305 tags were quantized and the issues were reproducible on separate machines.

Hardware and Deployment

Developers often choose Ollama because it works as a standalone tool with a large model repository. It is more flexible for model customization than Docker Model Runner. Docker Model Runner is currently macOS-only and relies on an inference engine built on top of llama.cpp. Ollama provides an API that is compatible with the OpenAI Chat Completions API format. You can use this compatibility to integrate local models into the Vercel AI SDK or Microsoft Autogen. You should check your hardware before you pull a large model. Running these models requires enough hardware to handle memory loads. You need at least 8 GB of RAM, though 16 GB or 32 GB is better for the largest models. For the best results, you need more than 8 GB of VRAM on a dedicated GPU. Apple Silicon combines the CPU, GPU, and RAM together, which helps with AI models. On Windows and Linux, you may need different configurations. If you have only 8 GB of RAM, you will be limited in the size of the LLMs you can run and how fast they will go. You can avoid monthly subscriptions by running these models on your own machine. For the best results, you need plenty of VRAM on a dedicated GPU, as anything above 8 GB makes a difference. macOS is the preferred platform for many AI enthusiasts because of how the hardware handles these tasks.

Share

Technewsdaily

Senior tech writer covering AI, gadgets and cybersecurity. Breaking down the news that matters, every day.