Why Ollama unloads models when you switch: would more RAM help?
Ollama can unload an idle model after its keep-alive period or unload models to free memory for another request. It also has limits on how many models may stay loaded, provided they fit. More system RAM can help a host-memory bottleneck, but cannot raise the dedicated VRAM budget for GPU-resident models or change a configured load limit. [1] [2]
- A onlyRun a request and inspect residencyConfirm the baseline
- A then BSwitch within the configured retention periodCheck both in Ollama
- Return to ARecord whether it loads again or stays warmCompare placement and event timing
Test scheduling before capacity
Use two named model tags, a fixed context and a short gap between requests. Check ollama ps after each request. Compare the result with a run that waits beyond the intended retention interval. The generate API documents keep_alive for the request. Verify your actual runtime configuration before interpreting a reload as insufficient system RAM. [1] [2]
Check which memory would need to increase
Ollama documents that concurrency increases context memory demand. Test one parallel request per model first and record placement. If the second model cannot coexist while both are on GPU, record available VRAM. If the intended placements rely on system RAM, measure available host memory at the point of failure. A host upgrade cannot directly add VRAM to a discrete GPU. [1] [3]
Change one setting at a time
Try a smaller context or artifact and check whether both models stay loaded without loss of acceptable output. If switching is infrequent, the time spent reloading may be cheaper than an upgrade. If a proven memory bottleneck repeats during real work, compare the cost of a larger host kit or card for the exact resource that is short.
Put it into practice
Related guides
Sources
Source review . Research and writing prepared with AI assistance.