ollamavllmllama-cpplocal-aisecurity

Ollama for business: when it's enough and when it isn't

December 4, 202611 min readPixel Management

This article is also available in Dutch

On a single DGX Spark, Ollama delivered the same tokens per second with eight simultaneous requests as with one, while vLLM on the same machine delivered 2.7 to 5.8 times as much.

Ollama for business is a sound choice for a pilot, a single team or low, predictable traffic, but not as the serving layer for several applications at once. Ollama is open source software under the MIT licence that runs language models on your own hardware and exposes them through a local API. Speed isn't even the biggest business issue. The local API has no authentication, and a cloud tag sends prompts through that same API to Ollama's servers. We didn't run the benchmarks in this piece ourselves: every figure says who measured it and where the measurement stops.

When is Ollama enough for business use?

Ollama is enough as long as simultaneous requests stay low and someone handles the network side. The choice between Ollama, llama.cpp and vLLM comes down to how many requests arrive at once, who runs the server and what hardware it sits on. The limits in this table are our rules of thumb, not measurements.

SituationRequests at onceOps skillChoose
Pilot, comparing models1LowOllama
One team, chat and summaries1 to 3Low to medium, proxy neededOllama with a higher OLLAMA_NUM_PARALLEL
One fixed model on a small server or Mac2 to 8Mediumllama.cpp (llama-server)
Internal API, batch jobs, several applications8 or moreLinux, Docker, GPU driversvLLM
Agents with large promptsVariesHighvLLM, and measure prompt processing first
Personal data or professional secrecyAnyAnyA local model, with Ollama Cloud switched off

On a Mac, vLLM mostly drops out. The vLLM installation docs say it "can fully run only on Linux". Apple Silicon goes through vLLM-Metal, a community-maintained plugin, and Windows through WSL only.

Model choice is a separate question. Which open models handle Dutch well is covered in the best AI model for Dutch. Where the server fits in a full project is covered in the on-premise LLM roadmap.

What does the single DGX Spark measurement show?

Ollama didn't scale with the number of requests in a measurement on a DGX Spark, and vLLM did. A user on the Nvidia developer forum published a test on 10 August 2026 with one harness for both servers: a DGX Spark with 121 GiB of unified memory, the same prompt, at most 400 tokens per answer, first one request and then eight at once. The raw results and scripts are on GitHub.

With eight requests at once, Ollama stays at what it reaches with one, and vLLM spreads the machine across all eight.

Total throughput with 8 simultaneous requests

One DGX Spark, tokens per second across all requests combined. Higher is better.

  • vLLM
  • Ollama
  1. Qwen3-30B-A3B, vLLM313.4 tok/s
  2. Qwen3-30B-A3B, Ollama87.5 tok/s
  3. Gemma-4-26B-A4B, vLLM303.6 tok/s
  4. Gemma-4-26B-A4B, Ollama51.9 tok/s
  5. qwen3-coder-next, vLLM289 tok/s
  6. qwen3-coder-next, Ollama60.4 tok/s
  7. GPT-OSS-120B, vLLM116 tok/s
  8. GPT-OSS-120B, Ollama42.5 tok/s

Source: User measurement on the Nvidia developer forum, 10 August 2026, as of 6 November 2026. One person, one machine, one prompt set. The author reports this column moved by up to 30 percent between runs. GPT-OSS-120B on vLLM reached 116 to 153; the lowest value is shown. Gemma on vLLM uses speculative decoding.

With one request the two sit much closer together: vLLM was 11 to 44 percent faster on three models, Ollama 11 percent faster on Qwen3-30B-A3B, and the first token appeared after 94 to 131 milliseconds on vLLM against 161 to 511 on Ollama. The factor in the last column is our division of the published figures.

ModelOllama, 1 requestvLLM, 1 requestvLLM versus Ollama, 8 at once
Qwen3-30B-A3B85.277.13.6 times
qwen3-coder-next59.274.84.8 times
Gemma-4-26B-A4B49.654.95.8 times
GPT-OSS-120B42.160.72.7 to 3.6 times

Three limits come with this result. The author calls it "one machine, one operator, one prompt set" and advises against leaning on the eight-request column, because it moved by up to 30 percent between runs of the same configuration. Quality wasn't measured, even though the two sides ran different 4-bit builds of each model: Q4_K_M on Ollama, NVFP4, INT4 or MXFP4 on vLLM. And the Gemma row benefits from speculative decoding: without it, vLLM reached 178.9 tokens per second there, 3.4 times Ollama.

Is that factor a hard limit of Ollama?

vLLM's lead at eight requests is probably partly a setting, because OLLAMA_NUM_PARALLEL doesn't appear in the published test setup, and neither does the Ollama version. Ollama's FAQ gives the default as 1: one request per model at a time, while the rest wait in a queue. That fits a throughput that stays flat at eight requests exactly. The author concludes "Ollama never batches", which is broader than the setup can carry. We can't be certain.

Two other sources sketch what happens past that setting. Ollama's release notes show it builds on llama.cpp, and llama.cpp publishes its own DGX Spark measurements from February 2026. On gpt-oss-120b, generation speed there goes from 55 to 57 tokens per second with one sequence to 139 to 159 with eight, depending on prompt length. So the engine can work in parallel. Don't set those figures against the vLLM column as a fair fight, though, because they come from a different tool with only 32 generated tokens per sequence.

Red Hat shows the other side. Its comparison from August 2025 set OLLAMA_NUM_PARALLEL to 32 on an A100 card, and Ollama still "saw its performance plateau" and matched vLLM at no concurrency level. That was Ollama 0.9.2. The latest version on 6 November 2026 was v0.40.15, whose release notes say: "Recurrent and vision GGUF models can now serve more than one request at a time".

We haven't found a measurement of both servers with a current Ollama and a high OLLAMA_NUM_PARALLEL. So measure it yourself before you migrate. Set the value to 4 and then 8, send your own prompts at once and look at total throughput. Expect to need more memory: the FAQ says required RAM scales with OLLAMA_NUM_PARALLEL times OLLAMA_CONTEXT_LENGTH.

How many users can Ollama handle?

Ollama can serve far more employees on one server than its concurrency figures suggest, because people rarely ask at the same moment. Here's an indicative calculation using the Qwen3-30B-A3B figures from the measurement, on our own assumptions: 100 employees, 15 questions per person per day, 400 tokens per answer, an 8-hour working day, and prompt reading time left out.

That's 600,000 tokens a day, or 21 tokens per second on average. Ollama reached 87.5, so average load is about a quarter of what the machine can do. Peaks hit harder. If eight questions land together, the last answer finishes after 37 seconds on Ollama (3,200 tokens divided by 87.5) and after 10 seconds on vLLM (divided by 313.4). Annoying, but workable.

Software changes the sum. A nightly run summarising 2,000 documents at 400 tokens each takes about 2.5 hours at 87.5 tokens per second and about 43 minutes at 313.4. During the day, that can't run next to users on Ollama at the default setting, because everyone sits in the same queue. That queue is finite too: OLLAMA_MAX_QUEUE defaults to 512, and above it Ollama rejects requests. So the question is rarely how many employees you have. It's how many applications talk to the server.

Where vLLM stalls too: agents with large prompts

vLLM solves the throughput problem for short prompts, not for agents carrying a lot of context. The same author measured prompt processing separately with qwen3-coder-next on vLLM and 8,000-token prompts. One request reached 3,881 tokens per second, eight at once 3,931 combined. Latency went from 3.1 seconds to a median of 15.8 and a worst case of 24.2, before the first word appeared. An agent turn is mostly such a large prompt with a short answer, and on this machine batching buys you little there.

Tool calls are a second reason to test servers and not just models. In the same notes, GPT-OSS-120B and Gemma-4-26B failed as agents on Ollama and worked on vLLM with the right parser. That's the state of August 2026 on that setup, not a permanent trait of Ollama. What a local agent needs beyond that is covered in running a local AI agent.

What does an Ollama cloud tag do with your data?

A cloud tag such as gemma4:cloud means the model doesn't run on your machine but on Ollama's servers, and the address won't tell you. According to the documentation, cloud models aren't downloaded. The authentication page adds that after ollama signin this "also works through the local API". An application politely talking to localhost:11434 can send prompts off the premises through a single model name.

Ollama Cloud runs "primarily in the United States" according to the pricing page, with Europe as extra capacity. Ollama also writes there that prompts and responses are neither logged nor used for training. The privacy policy (March 2026) says data may be processed in the United States. On those two pages and in the terms (August 2026, California law) we found no data processing agreement on 6 November 2026. If you send personal data to such a service you do need one under Article 28 of the GDPR: see the data processing agreement for AI.

On a server that must stay local, switch cloud off. Use OLLAMA_NO_CLOUD=1, or set disable_ollama_cloud to true in ~/.ollama/server.json. After a restart the logs should show "Ollama cloud disabled: true". You lose cloud models and web search, which is the point.

Putting Ollama safely on the network

Ollama listens only on 127.0.0.1:11434 by default, and things go wrong the moment colleagues need access. The quick fix is OLLAMA_HOST=0.0.0.0, which puts an API on your network that by its own documentation requires no authentication. Anyone who reaches the port can use the model.

LeakIX counted 12,269 open Ollama servers without authentication on 23 February 2026. Cyera cited roughly 300,000 reachable servers in May 2026 in its research on CVE-2026-7482, and the counts differ because the methods do. The vulnerability itself, CVSS 9.1, hit versions before 0.17.1: without logging in, an attacker could use a crafted GGUF file to read server memory, including API keys, system prompts and other users' conversations. The notes for 0.17.1 don't mention the fix, so release notes alone can't drive your patching.

The minimum setup for business use:

  • Keep Ollama on 127.0.0.1 and put a reverse proxy in front of it, as the FAQ suggests with Nginx, with TLS and a login or per-application API keys.
  • Let only the inference paths through that proxy. /api/create and /api/push are the paths from the CVE and stay closed.
  • Schedule updates, with an owner. A local server doesn't come with a security team.
  • Take model files only from sources you trust.

vLLM isn't automatically safer here. The vLLM security page warns: "Do not rely exclusively on --api-key". The key protects only some paths, and /invocations gives unauthenticated access to the same inference. That server needs a proxy with an allowlist as well.

llama.cpp as the middle route

llama.cpp is the logical step between the two when you serve one fixed model and don't need Ollama's convenience. llama-server reads the same GGUF files, offers an OpenAI-compatible API and has built in what Ollama lacks: --api-key for keys, TLS, --parallel for simultaneous slots and --metrics for Prometheus. It runs on Mac and Linux, so also on machines where vLLM drops out. You give up the convenience of Ollama's model library and handle model files and upgrades yourself.

GGUF or safetensors: what changes when you switch?

Moving from Ollama to vLLM also means changing the model file. GGUF is the file format of llama.cpp and Ollama, usually already quantised. Safetensors is the common format in Hugging Face repositories, which is where vLLM loads models from by default. Ollama imports both, but doesn't quantise GGUF files on import.

So after the switch, the same model name isn't the same file. Test quality again on your own questions, because the speed measurement above says nothing about it. Expect more work around the server too: for vLLM, the author of the measurement lists one model per server, a 20 to 25 GB container and start times in minutes. Without the right kernels, NVFP4 on the Spark fell back to about 1.1 tokens per second, against 77.1 with the right build.

Which licences apply to business use?

All three servers may be used commercially. Ollama and llama.cpp are under MIT, vLLM under Apache 2.0. The model is a separate question. Being able to download a model with one command says nothing about what you may do with it. Llama 4 excludes companies with their headquarters in the EU, as the comparison of open-weight licences shows.

When shouldn't you move off Ollama?

Stay on Ollama if one team uses it, peaks are rare and nobody has time to maintain a GPU server with containers. vLLM only really pays off when requests do arrive together, and only if someone keeps up with drivers, builds and kernels. Those hours often weigh more than the hardware, as the breakdown of running costs shows.

Sometimes you don't have to choose at all: if your data isn't sensitive and your volume is low, you may not need your own server. That's what the guide to local AI for business is about. Want to know which setup fits your traffic and data? We'll work it out with you, including a test on your own prompts.

Service

Learn more about local AI?

View service →

Curious how much time you could save?

Request a free efficiency audit. We'll analyze your processes and show you where the gains are, no strings attached.