Skip to content

Ollama, LM Studio or vLLM: running an open AI model in-house, and which one to choose

An open-weight model downloads and runs on your machines: your data stays in, and you no longer pay per request. Ollama, LM Studio, vLLM and llama.cpp compared, Ollama or vLLM depending on the use, which model to choose with its licence, which machine, and how not to expose your server.

By Published on 26 November 2026

An open model in-house, from the machine to your applicationsThe downloaded weights run on your side; your applications change address, not code.
  1. The open model

    Its weights downloaded, its licence checked

  2. The server

    Ollama on a workstation, vLLM on GPUs

  3. The OpenAI-compatible API

    On an internal address, with a key

  4. Your applications

    They change address, not code

Your data stays with you; so do the machine, the updates and the security

To run an open AI model (open-weight) in-house, three tools cover most needs: Ollama and LM Studio on a workstation or a small server, vLLM to serve many users on graphics cards (GPUs). All three expose an API compatible with OpenAI’s: your applications change address, not code. Your data stays in-house and you no longer pay per request, but the machine, the updates and the server’s security are yours.

This article says what an open-weight model is, compares the tools, helps choose a model and a machine, and gives the settings so as not to expose your server.

What is an open-weight model?

A model whose publisher releases its weights, the file that holds what the model has learned: you download it and run it wherever you like. Open does not mean free to use as you please: the licence decides what you may do with it. Some are recognised open-source licences (Apache 2.0, MIT); others add conditions, such as a revenue threshold above which an agreement is needed, a mandatory notice, or a geographic exclusion.

Their use is growing in companies: according to Menlo Ventures, open models made up 19% of the tokens used by the US companies surveyed in September 2026, against 11% a year earlier, but only 4% of the spend.

Ollama, LM Studio, vLLM, llama.cpp: which one for what?

Tool

For what

Licence

Its server

Good to know

Ollama

A workstation or a small server, from the command line

MIT

OpenAI-compatible API on port 11434, on the machine only by default

No authentication on its local API

LM Studio

A workstation, with an interface to try models

Proprietary app, free for work since July 2025

OpenAI-compatible API on port 1234

No authentication by default; on Mac, Apple chips only

vLLM

A GPU server serving many users at once

Apache 2.0

OpenAI-compatible API on port 8000, optional API key

Born at UC Berkeley, hosted by the PyTorch Foundation since May 2025

llama.cpp

The lightweight engine, including without a GPU, and its GGUF file format

MIT

llama-server, OpenAI-compatible

The GGUF format is also read by Ollama and LM Studio

Open WebUI

The chat interface placed in front of these servers

Its own licence since April 2025 (BSD with a branding clause), no longer a recognised open-source licence

Connects to Ollama and to OpenAI-compatible APIs

Removing its branding needs a licence beyond 50 users

Ollama or vLLM: how to choose?

Ollama is made to start fast: one command to download a model, another to serve it, and it runs on a laptop as on a server. vLLM is made for throughput: its memory management (PagedAttention) and continuous handling of requests let it serve many users at once on one or several graphics cards. The rule we apply: Ollama to try things and for personal or team use, vLLM as soon as an application in production sends requests in parallel.

Which model to choose?

A few recent open models, with what counts first in a company: their licence. Check it at every new version; some publishers change it from one version to the next.

Model

Publisher

Released

Licence

Good to know

Mistral Small 4

Mistral AI (France)

March 2026

Apache 2.0

Brings together reasoning, image and code; about 6 billion parameters active per answer

Mistral Medium 3.5

Mistral AI

May 2026

Modified MIT

No rights beyond $20 million of monthly revenue

Gemma 4

Google

April 2026

Apache 2.0

Several sizes, up to 31 billion parameters

Qwen3.8-27B

Alibaba

August 2026

Apache 2.0

The largest Qwen models have a licence with conditions

gpt-oss

OpenAI

August 2025

Apache 2.0

Two sizes: about 16 GB of memory for the small one, 80 GB for the large one

DeepSeek-V4.1-Flash

DeepSeek

September 2026

MIT

Very large: a server with several GPUs

Llama 4

Meta

April 2025

Llama 4 licence

Its rights on the multimodal models are not granted to companies established in the European Union

An open model runs on your side whatever its publisher’s country: your data is not sent to it. The choice is made on your own use cases, tested as described in our article on evaluating agents.

What machine does it take?

Hugging Face’s rule of thumb: about 2 GB of graphics memory per billion parameters at 16-bit precision. Lowering the precision (quantisation) divides that need: around 1 GB per billion at 8 bits and half a gigabyte at 4 bits, at the cost of some quality. The running conversation (the context) comes on top, and counts more as texts grow longer. For a mixture-of-experts model, it is the total number of parameters that counts in memory, not only those working on each answer.

Not exposing your server: the settings

Ollama has no authentication on its API: anyone who reaches it can use it. In September 2025, Cisco Talos found 1,139 Ollama servers exposed on the internet, 214 of which answered requests with no authentication at all. Flaws exist too: in May 2026, a critical Ollama flaw (CVE-2026-7482) let an attacker read keys and conversations in memory; it has been fixed since version 0.17.1.

  1. The server listens on the machine or on an internal address, never on a public address.
  2. An API key required (vLLM takes one as an option), or an intermediate server that authenticates, such as an LLM gateway.
  3. Models downloaded from known sources only.
  4. Updates followed as for any server your teams can reach.
Shell
# Ollama: listens on the machine only (its default)
OLLAMA_HOST=127.0.0.1:11434 ollama serve

# vLLM: serves a model on an internal address, with a key required on the API
vllm serve <model> --host 10.0.0.12 --port 8000 --api-key "$VLLM_API_KEY"

# Your applications call the OpenAI-compatible API
curl http://10.0.0.12:8000/v1/models -H "Authorization: Bearer $VLLM_API_KEY"

To put a single gateway in front of these servers and your online models, see our article on LLM gateways.

Where to start

With a precise use, on data that must not leave: a research assistant over your internal documents, email sorting, writing help. We first compare two or three open models on your own cases, on a workstation; then we serve the chosen model on an internal server, behind authentication. Our approach In-House AI hosts an open model on your side, on your server or the cloud of your choice. For the legal side of hosting, see our article on sovereign cloud.

Our work on agents is presented on the page Agentic AI.

Frequently asked questions

Is Ollama free?

Yes: Ollama is open-source software under the MIT licence. Its publisher also offers a paid cloud model service, separate from local use.

Ollama or LM Studio?

LM Studio offers a graphical interface to try models; Ollama is driven from the command line and is easier to install on a server. Both expose an OpenAI-compatible API.

Can you run an LLM without a graphics card?

Yes, with llama.cpp or Ollama and a small quantised model, on the processor or on the unified memory of an Apple chip Mac. To serve several people at once, you need GPUs.

Is an open-weight model open source?

Not necessarily: its weights are published, but its licence may limit its use. Models under Apache 2.0 or MIT are free to use; the others call for reading their terms.

Sources

Written with an AI assistant from the sources cited, facts checked and reviewed by Mehdi Chafik on 25 November 2026.