AIForum.

How to Compare Ollama, LM Studio, llama.cpp, and vLLM for WordPress Integration

On this page

THE SHORT ANSWER

Ollama, LM Studio, llama.cpp and vLLM are not four versions of the same thing — they sit at different layers of the local inference stack. For WordPress, the decision comes down to three things: whether the tool exposes an OpenAI-compatible endpoint the WordPress AI Client can reach, how it handles concurrent requests from PHP, and whether it fits your hardware.
Quick facts

Ollama, LM Studio, llama.cpp and vLLM are often listed together as local AI options for WordPress, but they are not four interchangeable products. They sit at different layers of the same stack, and the question that decides your integration is narrower than which one is best: does the tool expose an OpenAI-compatible HTTP endpoint that the WordPress AI Client can reach, and can it serve the request pattern your site actually produces?

This comparison is aimed at site owners and developers who already run WordPress and want to point it at models on their own hardware. It separates documented behaviour from characteristics you would have to measure yourself, and it flags where the evidence runs out.

The integration target: the WordPress AI Client and its OpenAI-compatible connector

The WordPress side of this comparison is largely settled by one plugin. AI Provider for OpenAI Compatible Servers, by George Stephanis, registers a provider for the WordPress AI Client that talks to any server implementing the OpenAI Chat Completions API — a list that explicitly includes Ollama, LM Studio, vLLM, llama.cpp and LocalAI. Its stated requirements are the WordPress AI Client being available (WordPress 7.0+) and a running OpenAI-compatible inference server reachable from your web server.

Relevant capabilities of that connector, as documented on its plugin page:

  • A configurable OpenAI-compatible base URL, defaulting to Ollama’s http://localhost:11434/v1.
  • Automatic model discovery from the server’s /models endpoint, with a manual fallback.
  • A setup card on the Connectors settings screen with a one-click connection test.
  • An optional API key (bearer token) and custom HTTP headers for reverse proxies and gateways.
  • Reasoning-model options: disabling thinking blocks and an R1-style message format that folds the system prompt into the first user message, described as needed for DeepSeek-R1.
  • A context length override and a vision/multimodal support toggle.

The practical consequence is that all four tools can be connected, because the plugin’s contract is the OpenAI-compatible surface rather than a specific vendor. The differences show up later: in model discovery, concurrency, hardware requirements and day-two operations.

Decision criteria that actually change the answer

Before comparing features, decide which of these matter for your site. Two installations with the same plugin can reach opposite conclusions.

  1. OpenAI-compatible surface. At minimum you need a chat completions endpoint and, ideally, a /models endpoint so the connector can populate its model list automatically.
  2. Concurrency and queueing. A personal blog generates one request at a time. A membership site with an AI feature in the editor or a bulk-tagging job can generate several at once. Tools differ substantially in how they handle parallel requests.
  3. Hardware fit. CPU-only hosts, Apple Silicon desktops and GPU servers are not equivalent targets. A tool that assumes a GPU is a poor fit for a small VPS, and a CPU-first tool will underuse a dedicated accelerator.
  4. Model format and management. Some tools pull models by name from a registry; others expect you to supply quantized files yourself. That changes your update and backup workflow.
  5. Operational model. A desktop GUI, a supervised background service and a Python process have different restart, logging and monitoring stories.
  6. Network topology and authentication. Localhost, a LAN host and a remote GPU box are three different security problems. The connector supports an optional bearer token and custom headers, which is what you need when the model server sits behind a reverse proxy.
  7. Maintenance and version drift. These projects move quickly. Anything you build on top of a specific backend’s quirks will need revisiting.

Where each tool sits in the stack

Ollama

Ollama is the lowest-friction entry point: a background service with a command-line interface and a model registry, exposing an HTTP API on port 11434 by default. The connector plugin uses http://localhost:11434/v1 as its default base URL, which tells you how common this pairing is. It is a reasonable default for a single site on one machine where you want to pull a model by name and start testing.

LM Studio

LM Studio is a desktop application with a graphical model browser and a local server you can toggle on. It is the natural choice when you want to try models interactively before wiring anything into WordPress, or when the machine running inference is also someone’s workstation. The connector plugin includes LM Studio in its best-effort backend detection.

llama.cpp

llama.cpp is the C/C++ inference engine, distributed with command-line tools including a server binary that exposes an OpenAI-compatible endpoint. It is the option for people who want control: you choose the build, the backend (CPU, CUDA, Metal, Vulkan and others) and the exact quantized model file. There is no model registry, so you manage files yourself. It is listed among the servers the connector supports, but it is not named in the plugin’s backend detection list, so do not expect a llama.cpp-branded connector card.

vLLM

vLLM is a Python serving engine built for GPU throughput and concurrent requests, using techniques such as PagedAttention to manage the key/value cache efficiently across many simultaneous sequences. It is heavier to install and operate than the other three and is aimed at accelerators rather than CPUs. Its case in a WordPress context is a shared internal endpoint: one GPU box serving several sites or several editors at once, rather than one blog talking to one model.

Side-by-side characteristics

ToolTypical formCommon local endpointModel handlingWhere it tends to fit
OllamaBackground service plus CLIhttp://localhost:11434/v1Pull by name from a registryFirst local setup, single site, mixed CPU/GPU
LM StudioDesktop GUI with a server toggleTypically port 1234Browse and download inside the GUIExperimentation, desktop workstations, quick tests
llama.cppCLI binaries, including a serverTypically port 8080You supply quantized model filesFine control, CPU-only hosts, constrained hardware
vLLMPython server processTypically port 8000Weights in common GPU-oriented formatsMulti-user throughput, GPU servers, shared endpoints

Only the Ollama default is confirmed by the plugin documentation cited here. The other ports and forms reflect common defaults and should be checked against each project’s current documentation before you hard-code them into a deployment script.

How the connector treats the four differently

The plugin’s own behaviour is a useful tiebreaker, because it is the code that will actually talk to your server. It performs best-effort detection of the running backend — Ollama, vLLM or LM Studio — and swaps in that brand’s name and icon on the connector card once detected. Model autodetection comes from the server’s /models endpoint, so a server that implements that endpoint cleanly will populate the WordPress model list without manual entry. For reverse-proxy and gateway setups, custom HTTP headers and an optional bearer token are supported.

For plugin developers, the connector exposes a connectors_ai_openai_compatible_servers_request_data filter, described as a hook for other plugins to dynamically extend request data. If you need to reshape requests per backend, that is the documented extension point rather than a fork.

Choosing by scenario

  • One WordPress site, one administrator, occasional AI features. Ollama or LM Studio. Both keep setup short, and Ollama matches the connector’s default base URL.
  • CPU-only VPS or an older workstation. llama.cpp, because the build and quantization choices let you trade quality for memory and speed deliberately.
  • A GPU machine serving several sites or several concurrent editors. vLLM, provided you are prepared to operate a Python service.
  • You want to change backends without touching WordPress configuration. Keep everything behind a single OpenAI-compatible base URL and use the connector’s base URL, bearer token and custom header fields as the abstraction point. Swapping the server behind a stable URL is far less disruptive than editing plugin settings across sites.
  • You need reasoning models such as DeepSeek-R1. Use the connector’s reasoning options — disabling thinking blocks and the R1-style message format — rather than assuming a different inference server will solve the formatting problem.

Limitations that tool choice does not fix

The PHP request lifecycle. WordPress serves requests through PHP workers. A synchronous chat completion issued from a plugin holds one of those workers for the entire generation. Long outputs, high concurrency or a slow model can exhaust the worker pool and make the rest of the site unresponsive. None of the four inference servers fixes this, because the bottleneck is on the WordPress side. Mitigations include short timeouts, background processing, and moving bulk work out of the page request entirely.

Layered timeouts. The web server, PHP’s execution limits and the inference server’s own limits all apply, and the effective timeout is the shortest one in the chain. When a request fails at exactly the same duration every time, suspect a timeout layer rather than the model.

Memory is not just the model file. The size of the weights is only part of the picture. Context length and the key/value cache grow with concurrent requests and with how much text you feed in, and the runtime itself has overhead. Sizing a machine from the download size of a model file is a common way to end up with a server that works in testing and fails in production.

Privacy depends on topology, not on the tool. Self-hosting is often justified on the grounds that content never leaves your server. That holds only if the endpoint is genuinely local or on a network you control. A remote GPU box, a hosted tunnel or a gateway in front of the model server changes the answer, even though the tool is the same.

Software licence and model licence are separate questions. The licence of the inference server and the licence of the weights you load into it are different documents with different permissions. Open weights, open source and permission for commercial use are not interchangeable, so check both before shipping a feature.

Backend detection is best-effort. The plugin says so explicitly. Treat the connector card’s branding as a convenience, not as a signal you can branch on in automation.

A reproducible protocol for comparing them yourself

No benchmark results are supplied with this article, and none are claimed here. If you want numbers for your own hardware, the following protocol produces comparable ones. Run it before committing to a backend.

  1. Fix the variables. Use the same model family and, where possible, the same quantization; the same context length; the same prompt set; and the same sampling settings.
  2. Record the environment. Operating system, CPU, GPU and VRAM, system RAM, each runtime’s version, the exact model file or revision, quantization, context length and concurrency level.
  3. Measure the right things. Time to first token, total latency, tokens per second, peak memory, and the error rate at a chosen level of concurrent requests.
  4. Test through WordPress, not only through curl. A direct API call measures the model server. A call from a plugin measures the model server plus PHP, the web server and your timeouts — which is the path your users actually take.
  5. Repeat and report variance. Single runs on shared hardware are not evidence. Note how much results move between repetitions and whether the machine was doing anything else.

Next step

Pick the tool that matches your hardware and concurrency first, then confirm the pairing with the connector’s one-click connection test on the Connectors settings screen before you build anything on top of it. If the connection test succeeds but real features time out, the problem is almost certainly in the WordPress request path rather than in the choice between Ollama, LM Studio, llama.cpp and vLLM.

If you have run this comparison on your own hardware, the community benefits from the details: your operating system, accelerator, model and quantization, context length, concurrency level, and the numbers you measured. Share your setup and results in the Ai-Forum.org community so the next person can reproduce them.

FAQ

Can I use llama.cpp with the WordPress AI Client?

Yes. The connector plugin lists llama.cpp among the servers it supports, because it implements the OpenAI Chat Completions API. Note that the plugin's best-effort backend detection names only Ollama, vLLM and LM Studio, so a llama.cpp server may not receive branded treatment on the connector card.

Do I need a GPU to run any of these?

Not necessarily. llama.cpp, Ollama and LM Studio can run on CPU and on Apple Silicon as well as on GPUs, with speed depending heavily on the model size and quantization you choose. vLLM is designed around GPU throughput and concurrent serving, so it is a poor fit for a CPU-only host.

Does running a local model guarantee my content stays private?

Only if the endpoint is genuinely local or on a network you control. The privacy argument for self-hosting rests on the model server being under your control; a remote GPU box, a tunnel or a gateway in front of the server changes that, even when the software is identical.

Which of the four is fastest for WordPress?

No measurements are supplied with this article, so no ranking is claimed. Speed depends on your hardware, model size, quantization, context length and concurrency level. The reliable approach is to fix those variables and measure time to first token, total latency and tokens per second through WordPress itself, not only through direct API calls.

References

  1. https://wordpress.org/plugins/ai-provider-for-openai-compatible-servers/
  2. https://attowp.com/blog/self-hosted-ai-options-wordpress/

Related terms

OpenAI-compatible API
An HTTP interface that mimics OpenAI's Chat Completions request and response shapes, allowing clients built for OpenAI to talk to a different server by changing only the base URL.
Base URL
The root address a client appends endpoint paths to. In the WordPress connector it defaults to Ollama's http://localhost:11434/v1 and can be pointed at any compatible server.
Quantization
Reducing the numeric precision of model weights to lower memory use and increase speed, usually at some cost to output quality. Common in GGUF-format files used by CPU-friendly runtimes.
Key/value cache
Memory held during generation to avoid recomputing attention for earlier tokens. It grows with context length and with the number of concurrent sequences, so it adds to total memory beyond the weight file.
PHP worker
A process handling a single WordPress request at a time. A synchronous call to an inference server occupies one worker for the whole generation, which limits how much concurrent AI work a site can absorb.

Leave a Reply

Your email address will not be published. Required fields are marked *