Private, runs anywhere, the local API many apps speak
We tested Ollama 0.40.16 on Linux: the install on an RTX 4060 Ti (16 GB), then everything else on an RTX 5090 (32 GB). The main test: what happens when a model does not fit in your card's memory. Ollama splits it between the GPU and system RAM, and it still runs. A 120 GB model ran on the 32 GB card at 9.9 tokens a second once warm. Mixture of experts models lose far less speed than dense ones. Our verdict: Strongly recommended. Not sponsored.
This is a 120 gigabyte AI model, running on a graphics card with 32 gigabytes of memory. The program doing it is Ollama, the free tool that downloads open models and runs them on your own computer. We tested version 0.40.16 on Linux: the install, the speed, the API, your own models, the quiet limits and privacy.
And the main question: how far can a model go past your card's memory, and what does it cost?
We started on the RTX 4060 Ti, in a clean Ubuntu container. Ollama installs with one command from its website. It found the NVIDIA card and said the API is now available.
It was not. Our container has no systemd, so the installer started no server, and the next command could not connect. So you start it yourself, with ollama serve.
Now it listens, version 0.40.16. Look at this log line. On the 4060 Ti, Ollama set the default context, the amount of text a model can see at once, to 4,096 tokens.
That number comes back later. Type ollama on its own and a welcome screen opens, then a menu that launches coding tools like Claude Code and OpenCode on your models. On Linux, this is all of Ollama: a command line and a server.
There is no desktop app.
For everything after the install we moved to the RTX 5090. Our first model was Qwen 3.5 with 2 billion parameters, a 2.7 GB download at about 110 megabytes a second. We asked it to explain in three sentences what a GPU does.
It is a thinking model, so it reasons first, then answers. It wrote 1,581 tokens at 265 tokens a second. ollama ps shows the model: 2.8 GB, 100 percent on the GPU, with a context of 32,768 tokens.
That is eight times the 4060 Ti's default, only because this card has more memory. nvidia-smi: about 4 of the 32 GB in use.
Now the heart of this review. What happens when a model is bigger than your graphics card's memory? Ollama does not refuse.
It puts as many layers as fit on the GPU, and the rest in your normal system RAM, where the CPU works on them. That is called offloading. It means a smaller card can still run a bigger model.
The question is how much speed you lose. To measure it on one card, we took models that fit, then forced half of each onto the CPU. Same prompt every time.
First, Qwen 3.6 with 27 billion parameters, a 17.8 GB dense model. The very first run is slow, because the model is still loading: 15 tokens a second. ollama ps: 17 GB, 100 percent GPU.
Run it again and it writes 110 tokens a second. Then we told Ollama to put only 32 of the model's 66 layers on the GPU. 6.5 tokens a second.
ollama ps now says 53 percent CPU, 47 percent GPU. Seventeen times slower. Every word waits for the half that sits in RAM.
Next, Qwen 3.6 35B A3B. It is bigger, 22.6 GB, but it is a mixture of experts model. On the GPU alone: 236 tokens a second.
Then half of it on the CPU: 21 of 42 layers on the GPU. 51 percent CPU, and about 21 tokens a second. That is about eleven times slower, not seventeen, and three times faster than the dense model with the same split.
Here is why. A dense model uses all of its weights for every word it writes. A mixture of experts model is split into many small experts, and for each word only a few of them work: in this one, about 3 billion of its 35 billion parameters.
So when part of it sits in RAM, the CPU only has a small share of the work for each word.
So we tried the real thing. Qwen 3.8 Flash Next, 125B in its name: a 120 GB file, also a mixture of experts. That is almost four times the memory of this card.
Our machine has 125 GB of system RAM. Loading took 42 seconds, and the first run wrote 1.9 tokens a second. ollama ps says 54 percent CPU, 46 percent GPU.
nvidia-smi: the card is almost full. And the server log says all 49 layers went to the GPU. Ollama kept the shared part of each layer on the card and put the experts in system RAM.
Nothing went to swap. Then it warmed up. The second run: 6.3 tokens a second.
The third: 9.9. So here is the honest rule. The bigger the share that sits in RAM, the slower it gets, and a model that fits your card is always fastest.
But it still runs. With less VRAM you can run bigger models, if your system RAM can hold the rest, and mixture of experts models lose the least.
Back to the everyday parts. While Ollama runs, it serves an API on your own machine. We sent the same small question to the same model three ways.
Ollama's own chat API. The OpenAI style, chat completions. And the Anthropic style, messages.
All three answered. So a tool written for the OpenAI or Anthropic API can be pointed at a model on your own computer instead. If this is useful so far, hit like and subscribe.
A Modelfile makes your own version of a model. Ours starts from the 2B Qwen, sets a low temperature, a context of 8,192 tokens, and a system prompt: you are a Linux helper, answer with one shell command. ollama create builds it in two seconds.
We asked which process uses port 8080, and it answered with the command. ollama show lists the settings we gave it.
Now the limit that catches people. Ollama sets the default context from your card's memory. On the 5090, 32,768 tokens.
On the 4060 Ti, as you saw, 4,096. We made a test file of 44,010 words. The door code for the lab is on the very first line.
We piped it into the small model and asked for the door code. It said there is no door code in the text, only days 3,140 to 4,000. No error and no warning in the terminal.
Only the server log says what happened: the prompt was 74,933 tokens, and Ollama kept the last 16,386. The start, with the code, was thrown away. The fix is two lines: a Modelfile with a context of 131,072 tokens.
Same question: the door code for the lab is 4417. ollama ps shows the new context, and the small model still sits 100 percent on the GPU. So for long documents, set the context yourself.
The default is sized for your card, not for your text.
Local models run on your machine, and your chats stay on it. Because Ollama also offers cloud models, that side is on by default, and at start the server fetches two lists from ollama dot com: the cloud models you could use, and model recommendations. That is a download of lists, not your prompts, and it happened before we had even signed in.
If you want a machine that never talks to ollama dot com, one setting turns the cloud side off: the variable Ollama no cloud, set to 1. Now the log says cloud is disabled, and the list refresh is skipped. A cloud model is now refused, and the local model still answers.
If your machine cannot hold a model at all, Ollama has a second answer: cloud models. With an API key from your ollama dot com account, the same API works against Ollama's own servers. The list shows why they live there: 486 gigabytes for DeepSeek V4.1 Flash, 1.6 terabytes for Kimi K3.
We asked GLM 5.3 Flash our GPU question. The answer came back in about three seconds, and ollama ps shows nothing loaded on our machine. One catch: the key only works for the API.
For cloud models in the ollama command or in the app, you sign in to your account instead.
On Windows and macOS, Ollama also comes as a desktop app. The download page now starts with a one-line PowerShell install. We took the manual download.
A 1.7 gigabyte installer, done in about a minute. An account is optional: No thanks, I'll use Ollama locally, is right there. The app has three pages.
Chat, with cloud and local models side by side in one picker. Apps, which starts coding agents like Claude Code or Codex on Ollama models with one click. And settings, with the cloud switch, which is on by default.
Our virtual machine had no graphics card. The first try with a small 4 billion parameter model failed with a bare error 503, while the model was still downloading. The second try worked, after almost two minutes of thinking.
Ollama did what it promises. One command installs it, with no account for local models. It sized the context to each card, served one API in three styles, and ran a 120 GB model on a 32 GB card: slowly, but it ran.
The minuses: the installer says the API is ready when no server runs, a long prompt is cut quietly with only a line in the server log, and Linux gets no desktop app.
Tested on Linux · Open source · Freemium
Ollama runs open-weight models on your GPU behind one command and a local API. It also sells cloud plans. We tested 0.40.8 on Linux, on an RTX 4060 Ti, with Qwen3.5 9B.
The engine under much of local AI. Private, fast on the GPU, the API other apps speak, and cloud models that do not keep your prompts. But Linux gets no app or documents, and the default context cuts long prompts quietly.
Reviewed: Ollama CLI 0.40.8 · facts checked 2026-10-21
Not sure which tool fits your setup? Tech advice: ask us before you spend yours. Describe your situation and get our answer in writing within two working days.
Ask us →Dictation, transcription and translation that run on your own machine. Buy once.
One place for everything your AI agents know. Coming this week.
Tell us what you need. Our written answer within two working days.
Our YouTube channel. A cyber-tiger host walks through local AI tools and what they actually do.
Short video reviews of software and AI tools: used on camera, with a verdict nobody can buy.
Curated GitHub lists for AI coding agents, MCP servers, local AI and Linux for AI. Every entry carries a source link.