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
| Command | What 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 ls | List the models on the computer |
| ollama ps | Show 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 Modelfile | Build a model from a Modelfile, for example your own GGUF file with a system prompt |
| ollama serve | Run 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.
| Model | Format | Estimate | Fits one 32 GB card | Fits two 32 GB cards | Fits one 96 GB card |
|---|---|---|---|---|---|
| Qwen3 8B | 4-bit (Q4_K_M) | 11.2 GB | Yes | Yes | Yes |
| Qwen3 14B | 4-bit (Q4_K_M) | 15.9 GB | Yes | Yes | Yes |
| gpt-oss 20B | 4-bit MXFP4 | 14.3 GB | Yes | Yes | Yes |
| Qwen3 30B-A3B (MoE) | 4-bit (Q4_K_M) | 23.6 GB | Yes | Yes | Yes |
| Qwen3 32B | 4-bit (Q4_K_M) | 30.6 GB | No | Yes | Yes |
| DeepSeek-R1 Distill Llama 70B | 4-bit (Q4_K_M) | 56.7 GB | No | No | Yes |
| gpt-oss 120B | 4-bit MXFP4 | 68.2 GB | No | No | Yes |
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
| Platform | What Ollama supports | What to check |
|---|---|---|
| NVIDIA | Compute capability 5.0 and newer, with driver 550 or newer | Any current NVIDIA workstation or data-centre card qualifies; memory is the limit |
| AMD on Linux | ROCm v7 driver; the supported list includes the Radeon AI PRO R9700 | Run Linux for full ROCm support on the R9700 |
| AMD on Windows | Radeon RX 7000 series and Radeon PRO W7000 series by ROCm; the R9700 is not on the Windows list | Ollama adds Vulkan support on Windows and Linux for GPUs outside the ROCm lists |
| Apple | Metal on Apple silicon Macs | Memory 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.
| Ollama | LM Studio | |
|---|---|---|
| Licence | Open source (MIT) | Proprietary desktop app, free at home and at work; its lms command-line tool is MIT |
| Main interface | Command line and local API | Desktop app; headless mode (llmster) and the lms CLI for servers |
| Engines | llama.cpp, named in its README as the supported backend; imports GGUF and Safetensors | llama.cpp (GGUF), plus Apple's MLX on Apple silicon Macs |
| Operating systems | macOS, Windows, Linux, Docker | macOS on Apple silicon only, Windows and Linux on x64 or Arm |
| APIs | Native API, plus OpenAI- and Anthropic-compatible endpoints | OpenAI- and Anthropic-compatible endpoints, plus its own REST API |
| Several requests at once | Off 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.
| Ollama | vLLM | |
|---|---|---|
| Best at | One user or a few, switching between models | Many simultaneous users of one model |
| Operating systems | macOS, Windows, Linux | Linux; no native Windows support (WSL instead), Apple silicon through a community plugin |
| GPUs | NVIDIA, AMD (ROCm or Vulkan), Apple | NVIDIA (compute capability 7.5 and newer), AMD with ROCm 6.3 or newer, Intel and others |
| Model formats | GGUF from its library or your own files; Safetensors import | Hugging Face models, usually in their original or GPU-specific quantized formats; GGUF on some GPUs |
| Setup | One installer, models in one command | Python 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
Sources Last verified 13 Nov 2026
- Ollama: documentation
- Ollama: source code and MIT licence (GitHub)
- Ollama: CLI reference
- Ollama: FAQ (parallel requests and memory)
- Ollama: context length
- Ollama: hardware support (NVIDIA, AMD ROCm, Apple Metal, Vulkan)
- Ollama: OpenAI compatibility
- Ollama: Anthropic compatibility
- Ollama: Modelfile reference (importing GGUF and Safetensors)
- Ollama: cloud models
- LM Studio: documentation
- LM Studio: system requirements
- LM Studio: free for use at work (blog, 8 Jul 2025)
- LM Studio: parallel requests via continuous batching
- LM Studio: lms command-line tool
- vLLM documentation
- vLLM: GPU installation (supported platforms)
- vLLM: source code and Apache-2.0 licence (GitHub)
- NVIDIA: DGX Spark product page and specifications
- NVIDIA: DGX Spark playbooks (Open WebUI with Ollama, LM Studio, vLLM)
- NVIDIA: RTX PRO 6000 Blackwell Max-Q Workstation Edition datasheet (PDF)
- AMD: Radeon AI PRO R9700 specifications
- Hugging Face: Qwen/Qwen3-8B model card and configuration
- Hugging Face: Qwen/Qwen3-14B model card and configuration
- Hugging Face: Qwen/Qwen3-30B-A3B model card and configuration
- Hugging Face: Qwen/Qwen3-32B model card and configuration
- Hugging Face: DeepSeek-R1-Distill-Llama-70B model card and configuration
- Hugging Face: openai/gpt-oss-20b model card and configuration
- Hugging Face: openai/gpt-oss-120b model card and configuration