Skip to content
AI Node Works

What is Ollama? Models, hardware, and how it compares with LM Studio and vLLM

Software · AI Node Works engineering team · Published

The short answer: Ollama is a free, open-source program (MIT licence) that downloads open-weight language models and runs them on your own computer. You use it from a command line or through a local API that apps can call in place of OpenAI's. It runs on macOS, Windows and Linux with NVIDIA, AMD or Apple GPUs. What it can run depends on GPU memory: at a 32K context, Qwen3 8B at 4-bit needs about 11.2 GB and Qwen3 32B about 30.6 GB. Choose LM Studio if you want a desktop app with a model browser, and vLLM to serve many users at once.

What Ollama is

Ollama is a runtime for open-weight language models: models whose weights are published, such as Qwen, Gemma, DeepSeek and OpenAI's gpt-oss. It downloads a model, loads it onto your GPU, and answers prompts with nothing sent to an outside service. Its source code is on GitHub under the MIT licence, and it is free to use.

  • A command line: ollama run starts a chat with a model, downloading it first if needed.
  • A local server: the API listens on 127.0.0.1, port 11434, by default, so only the same computer can reach it.
  • Compatible APIs: Ollama supports a subset of the OpenAI API (including /v1/chat/completions and /v1/embeddings) and of the Anthropic Messages API, so many tools written for those services can point at a local model instead.
  • A model library at ollama.com, plus import of your own GGUF or Safetensors weights through a Modelfile.
  • Installers for macOS, Windows and Linux, and an official Docker image.

How you use it

The Ollama commands most people need
CommandWhat it does
ollama run <model>Chat with a model; downloads it first if it is not on the computer
ollama pull <model>Download a model without starting it
ollama lsList the models on the computer
ollama psShow loaded models and whether each sits on the GPU, the CPU or both
ollama stop <model>Unload a model from memory
ollama rm <model>Delete a model
ollama create <name> -f ModelfileBuild a model from a Modelfile, for example your own GGUF file with a system prompt
ollama serveRun the server on its own, for example on a machine other people connect to

From Ollama's CLI reference. A model stays loaded for five minutes after its last request by default, then is unloaded; OLLAMA_KEEP_ALIVE changes that.

Ollama also offers cloud models, whose names end in :cloud. Those run on Ollama's own servers and need an Ollama account, so prompts leave your computer. If privacy is the reason you are running models locally, use only tags without :cloud.

To let other computers on your network use one Ollama server, set OLLAMA_HOST, for example to 0.0.0.0:11434. Ollama's documentation notes that the local server does not check API keys, so put it behind a firewall, VPN or authenticating proxy before you open it to an office network.

Ollama models and the memory they need

Models in the Ollama library are named by tags such as gpt-oss:20b, and most come in several sizes and formats. The size the library lists for a tag is roughly the weights. Running the model takes more: the KV cache for the context, and the runtime's own overhead. The table adds all three for a 32K context and one user.

Memory estimates at a 32K context, one user
ModelFormatEstimateFits one 32 GB cardFits two 32 GB cardsFits one 96 GB card
Qwen3 8B4-bit (Q4_K_M)11.2 GBYesYesYes
Qwen3 14B4-bit (Q4_K_M)15.9 GBYesYesYes
gpt-oss 20B4-bit MXFP414.3 GBYesYesYes
Qwen3 30B-A3B (MoE)4-bit (Q4_K_M)23.6 GBYesYesYes
Qwen3 32B4-bit (Q4_K_M)30.6 GBNoYesYes
DeepSeek-R1 Distill Llama 70B4-bit (Q4_K_M)56.7 GBNoNoYes
gpt-oss 120B4-bit MXFP468.2 GBNoNoYes

Weights, a 16-bit KV cache and runtime overhead, keeping 10% of each card free; a model split over two cards carries extra overhead. These are planning figures for memory, not speed, and a runtime may still need a recent version to load a new model. The 32 GB card is the AMD Radeon AI PRO R9700; the 96 GB card is an NVIDIA RTX PRO 6000 Blackwell.

Mixture-of-experts models such as gpt-oss and Qwen3 30B-A3B run only a few experts per token, which makes them fast for their size, but every expert must be in memory. Size them by their total parameters, as the table does.

Size your own model in the VRAM calculatorHow much VRAM do you need?

The settings that decide memory use

  • Context length. Ollama's context-length page says the default now follows GPU memory: 4K tokens below 24 GiB, 32K from 24 to 48 GiB, and 256K at 48 GiB or more. Older versions used a smaller fixed default, so set it yourself with OLLAMA_CONTEXT_LENGTH, or num_ctx in a Modelfile or request. Ollama recommends at least 64,000 tokens for agents, web search and coding tools.
  • Parallel requests. OLLAMA_NUM_PARALLEL defaults to 1. Raise it to answer several requests at once, but Ollama's FAQ notes that memory scales with parallel requests × context length.
  • Loaded models. By default Ollama keeps up to three models loaded per GPU (OLLAMA_MAX_LOADED_MODELS), and queues up to 512 requests before answering with an overloaded error.
  • GPU or CPU. If a model does not fit in GPU memory, Ollama spreads it across all GPUs and then into system memory. ollama ps shows the split in its PROCESSOR column, for example 48%/52% CPU/GPU. Any part on the CPU is much slower, and Ollama advises avoiding it.

Parallel requests are where memory runs out first. Qwen3 32B at 4-bit with a 32K context needs about 30.6 GB for one request at a time; with four in parallel at the same context it needs about 57.4 GB, because each request carries its own KV cache.

Which GPUs Ollama supports

GPU support, from Ollama's hardware documentation
PlatformWhat Ollama supportsWhat to check
NVIDIACompute capability 5.0 and newer, with driver 550 or newerAny current NVIDIA workstation or data-centre card qualifies; memory is the limit
AMD on LinuxROCm v7 driver; the supported list includes the Radeon AI PRO R9700Run Linux for full ROCm support on the R9700
AMD on WindowsRadeon RX 7000 series and Radeon PRO W7000 series by ROCm; the R9700 is not on the Windows listOllama adds Vulkan support on Windows and Linux for GPUs outside the ROCm lists
AppleMetal on Apple silicon MacsMemory is shared with the system, so leave room for macOS and apps

Docker Desktop on macOS does not pass the GPU through to the Ollama container; run Ollama natively on a Mac.

On the NVIDIA DGX Spark, which runs NVIDIA DGX OS (Ubuntu-based Linux on an Arm CPU) with 128 GB of memory shared by the CPU and GPU, NVIDIA publishes a playbook for chatting with models through Open WebUI and Ollama, alongside playbooks for LM Studio and vLLM.

LM Studio vs Ollama

Both build on llama.cpp, so the same GGUF model needs about the same memory in either. The difference is how you work with them: Ollama starts from a command line and an API, and LM Studio from a desktop app with a model browser, chat window and settings panels.

LM Studio and Ollama compared, from each project's documentation
OllamaLM Studio
LicenceOpen source (MIT)Proprietary desktop app, free at home and at work; its lms command-line tool is MIT
Main interfaceCommand line and local APIDesktop app; headless mode (llmster) and the lms CLI for servers
Enginesllama.cpp, named in its README as the supported backend; imports GGUF and Safetensorsllama.cpp (GGUF), plus Apple's MLX on Apple silicon Macs
Operating systemsmacOS, Windows, Linux, DockermacOS on Apple silicon only, Windows and Linux on x64 or Arm
APIsNative API, plus OpenAI- and Anthropic-compatible endpointsOpenAI- and Anthropic-compatible endpoints, plus its own REST API
Several requests at onceOff by default (OLLAMA_NUM_PARALLEL=1)Continuous batching in the llama.cpp engine, up to 4 at once by default

We have not measured speed differences between the two, and we publish speeds only after measuring them.

Choose LM Studio if you want to browse, download and compare models without a terminal, or to use MLX on a Mac. Choose Ollama for scripts, Docker, a Linux server, or a fully open-source stack.

vLLM vs Ollama

vLLM is a library for serving models at scale, released under the Apache-2.0 licence. It manages the KV cache in pages (PagedAttention), batches incoming requests continuously, and splits models across GPUs with tensor and pipeline parallelism. It is built for many users or an application hitting one model all day, where Ollama is built for one person or a small group trying models.

vLLM and Ollama compared, from each project's documentation
OllamavLLM
Best atOne user or a few, switching between modelsMany simultaneous users of one model
Operating systemsmacOS, Windows, LinuxLinux; no native Windows support (WSL instead), Apple silicon through a community plugin
GPUsNVIDIA, AMD (ROCm or Vulkan), AppleNVIDIA (compute capability 7.5 and newer), AMD with ROCm 6.3 or newer, Intel and others
Model formatsGGUF from its library or your own files; Safetensors importHugging Face models, usually in their original or GPU-specific quantized formats; GGUF on some GPUs
SetupOne installer, models in one commandPython or container install, settings per model

Many teams use both: Ollama on desks to try models, then vLLM on a shared server once a model is chosen and more than a handful of people depend on it.

Choosing hardware for Ollama

  • Models up to about 14B parameters, or mixture-of-experts models such as Qwen3 30B-A3B, at 4-bit for one user: a 32 GB card such as the AMD Radeon AI PRO R9700, on Linux for ROCm. A dense 32B model at a 32K context needs two cards (64 GB) or a shorter context.
  • 70B-class models, or 30B-class models with long contexts and parallel requests: a 96 GB card such as the NVIDIA RTX PRO 6000 Blackwell Max-Q, which fits up to four in one workstation.
  • The largest models at a desk for one developer, in a small box: the NVIDIA DGX Spark, with 128 GB of memory shared by the CPU and GPU. Its memory is slower than a workstation card's, so models that fit on a GPU run faster there.
  • A team sharing one server: a tower with one or more 96 GB cards, usually running vLLM for the shared model and Ollama for trying new ones.

Local LLM serversNVIDIA RTX PRO 6000 Blackwell Max-QAMD Radeon AI PRO R9700NVIDIA DGX Spark

Common questions

Is Ollama free?

Yes. Ollama is open source under the MIT licence and free to use, including at work. Its optional cloud models run on Ollama's servers and need an account.

Is Ollama private?

Local models run entirely on your computer, and the server listens only on that computer unless you change OLLAMA_HOST. Models whose names end in :cloud run on Ollama's servers, so prompts sent to them leave your machine.

What models can Ollama run?

Open-weight models from its library, such as Qwen, Gemma, DeepSeek and gpt-oss, and your own GGUF or Safetensors files imported with a Modelfile. Whether a model runs well depends on your GPU memory.

Does Ollama work with AMD GPUs?

Yes. On Linux, Ollama uses ROCm v7 and lists the Radeon AI PRO R9700 among supported cards. The Windows ROCm list is shorter and does not include the R9700, so we run that card on Linux.

Is LM Studio better than Ollama?

Neither is better overall. LM Studio is a desktop app with a model browser; Ollama is a command line and API that suits scripts, servers and Docker. Both use llama.cpp, so the same model needs about the same memory.

Should I use vLLM or Ollama?

Ollama for one person or a small group trying models; vLLM when many people or an application use one model at the same time. vLLM needs Linux and more setup.

Does Ollama run on the NVIDIA DGX Spark?

Yes. NVIDIA publishes a DGX Spark playbook that runs Open WebUI with Ollama, and its 128 GB of shared memory holds models too large for most single graphics cards.

Plan a system for your workload

Tell us what you want to run. We recommend a configuration, explain why, and list what is still unknown.