If you use a chat model, a coding model and an embedding model side by side, you may want Ollama to keep more than one in memory rather than swapping them in and out. Ollama has three server settings that control this. This guide explains them using Ollama's FAQ.
The defaults
According to Ollama's FAQ:
OLLAMA_MAX_LOADED_MODELS is the maximum number of models that can be loaded at the same time, provided they fit in available memory. The default is 3 x the number of GPUs, or 3 for CPU inference.
OLLAMA_NUM_PARALLEL is the maximum number of parallel requests each model handles at once. Most backends default to 1; on Apple's MLX on Metal, an unset value lets Ollama choose a conservative default based on memory. More parallel requests need more memory.
OLLAMA_MAX_QUEUE is how many requests Ollama queues when busy before rejecting more. The default is 512.
There's one exception: Ollama says Windows PCs with Radeon GPUs currently default to a maximum of one loaded model because of VRAM reporting limits in ROCm. You can raise it, but Ollama warns not to load more models than fit in VRAM.
Step 1: See what's loaded now
Run ollama ps. It lists the models currently in memory and, in the Processor column, whether each is 100% on the GPU, 100% on the CPU, or split between them. If a second model pushes the first out, or shows a CPU/GPU split, you've hit your memory limit rather than the model-count limit.
Step 2: Change the settings
Set the variables on the Ollama server. On Windows, quit Ollama, search Settings for environment variables, choose Edit environment variables for your account, add for example OLLAMA_MAX_LOADED_MODELS = 2 and OLLAMA_NUM_PARALLEL = 2, then restart Ollama from the Start menu. On Linux, add Environment="OLLAMA_NUM_PARALLEL=2" lines under [Service] with systemctl edit ollama.service, then run systemctl daemon-reload and systemctl restart ollama. On a Mac, use launchctl setenv and restart the app.
Step 3: Keep the models resident
Ollama's FAQ says models are kept in memory for 5 minutes by default before being unloaded. To stop them dropping out between requests, see our guide to keeping Ollama models loaded.
How Ollama uses more than one GPU
Ollama's FAQ says that when loading a model it checks the VRAM the model needs against what's free. If the model fits entirely on one GPU, it loads there, which usually gives the best performance because less data crosses the PCI Express bus. If it doesn't fit on one GPU, it's spread across all available GPUs. To limit which cards Ollama can use, set CUDA_VISIBLE_DEVICES (NVIDIA) or ROCR_VISIBLE_DEVICES (AMD) on the server, as described in Ollama's GPU documentation.
How much memory you need
Every loaded model needs its own weights and context cache, and each parallel request adds more. If you're short, try smaller quantisations, a shorter context length or a quantised K/V cache (set with OLLAMA_KV_CACHE_TYPE). Our VRAM guide for local AI explains the trade-offs.
Our verdict
Ollama already allows several models at once by default if they fit in memory, so the real limit is usually VRAM. Raise OLLAMA_NUM_PARALLEL only if several apps or users hit the same model at once, and check with ollama ps that everything still sits on the GPU.