DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk4 min

Ollama `keep_alive: -1` Hangs When Switching Models: What We Know About the Reported 6 GB GPU Issue

Ollama’s `keep_alive: -1` keeps a model resident, which can contribute to memory pressure. A separate scheduler-hang report involved a 32 GB GPU, so the 6 GB case remains unconfirmed.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

keep_alive: -1 tells Ollama to keep a model loaded, but the available evidence does not show that this setting by itself deadlocks model switching on a 6 GB GPU. Persistent models can contribute to VRAM pressure and eviction; a separate open Ollama report describes a scheduler hang during a concurrent eviction race, but on a 32 GB RTX 5090. The exact 6 GB scenario and its cause remain unconfirmed.

What `keep_alive: -1` does—and does not mean

Ollama’s FAQ says the default idle residency is five minutes. A negative `keep_alive` value, including `-1`, keeps the model in memory; `0` unloads it after the response. The API parameter overrides the server-wide `OLLAMA_KEEP_ALIVE` setting. You can also unload a model with ollama stop <model>.

As an Amazon Associate I earn from qualifying purchases.

Keeping a model resident uses memory that may otherwise be available for another model or workload. That can lead to ordinary memory pressure or model eviction when Ollama needs room. It is not, by itself, evidence of a deadlock.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why a 6 GB GPU can run into model-loading limits

Ollama documents that multiple models may be loaded concurrently when memory allows, and that concurrent GPU model loads require the models to fit entirely in VRAM. Nominal GPU capacity alone does not establish whether a workload fits: other GPU users, model requirements, context length, and parallel requests matter too.

#1 Best Overall
ASUS Dual Radeon RX 9060 XT 16GB GDDR6 Gaming Graphics Card | PCIe 5.0, HDMI 2.1b, DisplayPort 2.1a, 2.5-slot design, Axial-tech Fans, 0dB Technology
  • Axial-tech fans now feature a smaller fan hub that facilitates longer blades and a barrier ring that increases downward air pressure
  • 2.5-slot design allows for greater build compatibility while maintaining cooling performance
  • 0dB technology lets you enjoy light gaming in relative silence
  • Dual BIOS switch lets you toggle between Quiet and Performance BIOS profiles
  • Dual ball fan bearings last up to twice as long as sleeve bearing designs

The FAQ documents OLLAMA_NUM_PARALLEL as the maximum number of parallel requests per model (default 1), and says required RAM scales with the number of parallel requests multiplied by context length. It also describes OLLAMA_MAX_LOADED_MODELS as a cap conditional on available memory and OLLAMA_MAX_QUEUE as a queue limit (default 512). These settings affect loading and queuing behavior; raising them is not an established fix for a hang.

What the open scheduler-hang report says

In issue #17408, filed July 26, 2026, a user reports silent hangs when a new model load takes an eviction path and the selected eviction target receives a concurrent request. The report says later cold /api/generate loads hung without logs, while requests to already-loaded models, /api/ps, /api/tags, and /api/embed continued working; restarting the server restored service.

Rank #2
GIGABYTE GeForce RTX 5070 Ti Gaming OC 16G Graphics Card, 16GB 256-bit GDDR7, PCIe 5.0, WINDFORCE Cooling System, GV-N507TGAMING OC-16GD Video Card
  • Powered by the NVIDIA Blackwell architecture and DLSS 4
  • Powered by GeForce RTX 5070 Ti
  • Integrated with 16GB GDDR7 256bit memory interface
  • PCIe 5.0
  • WINDFORCE cooling system

The reporter’s environment was Ollama 0.31.1 on Ubuntu 24.04.4, kernel 6.8.0-107-generic, with an NVIDIA RTX 5090 32 GB. The setup included OLLAMA_KEEP_ALIVE=-1, OLLAMA_NUM_PARALLEL=2, context length 32768, Flash Attention, and an f16 KV cache. The completion model was gemma4:26b Q4_K_M; an embedding runner was CPU-only and pinned with keep_alive: -1.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The issue author proposes that a concurrent request can overwrite an eviction mark, leaving a scheduler operation waiting indefinitely. That is the reporter’s code analysis, not an upstream-confirmed root cause. The report is a user account on different hardware, not verification of the 6 GB symptom, and the available evidence does not establish a fix for that exact scenario.

Rank #3
GIGABYTE GeForce RTX 5060 WINDFORCE OC 8G Graphics Card, Cooling System, 8GB 128-bit GDDR7, PCIe 5.0, Manufactured by NVIDIA, DisplayPort & HDMI - Video Output Interface, GV-N5060WF2OC-8GD Video Card
  • Powered by the NVIDIA Blackwell architecture and DLSS 4
  • Powered by GeForce RTX 5060
  • Integrated with 8GB GDDR7 128bit memory interface
  • PCIe 5.0
  • WINDFORCE cooling system

How to narrow down your own hang

First distinguish memory pressure or slow loading from a scheduler stall. Ollama’s FAQ recommends ollama ps to see which models are resident and whether they are using CPU or GPU. Record the Ollama version, GPU and backend, available VRAM, model names and sizes, context settings, parallelism, other GPU workloads, and the request sequence immediately before the stall.

  1. Check residency: run ollama ps and note whether the model that appears stuck is loaded on GPU, CPU, or both.
  2. Check the request pattern: determine whether only cold requests that need a new model to load hang, or whether requests to already-loaded models also stop responding. Note whether requests overlap and whether a model is selected for eviction.
  3. Compare memory conditions: record free VRAM and other GPU users, along with model, context length, and parallel request settings. Do not treat the GPU’s advertised capacity as a complete fit calculation.
  4. Capture diagnostics: follow Ollama’s troubleshooting guidance for GPU discovery and initialization. It recommends debug and system diagnostics when those are suspect; for AMD it specifically names OLLAMA_DEBUG=1 and checking system logs for driver errors. Its GPU troubleshooting also covers NVIDIA discovery and container access.

GPU discovery diagnostics can help separate an initialization problem from a scheduler issue, but they do not independently identify the cause. If the process is stuck, preserve server logs and a minimal sequence that reproduces the behavior before restarting, if practical; restarting recovered service in the issue reporter’s account, but does not diagnose the underlying cause.

Rank #4
Sale
GIGABYTE Radeon RX 9070 XT Gaming OC 16G Graphics Card, PCIe 5.0, 16GB GDDR6, GV-R9070XTGAMING OC-16GD Video Card
  • Powered by Radeon RX 9070 XT
  • WINDFORCE Cooling System
  • Hawk Fan
  • Server-grade Thermal Conductive Gel
  • RGB Lighting
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to interpret the symptom

  • Models fail to fit or are repeatedly unloaded: investigate memory demand, context, parallelism, and other GPU workloads. This is consistent with documented memory constraints, not proof of a deadlock.
  • Cold model loads stop while already-loaded requests and inspection endpoints still work: that resembles the behavior in issue #17408, but resemblance does not prove the same scheduler race is present.
  • GPU discovery or initialization fails: use the relevant Ollama troubleshooting steps and system logs to investigate the GPU/backend path before attributing the failure to model eviction.

“Every other model” and “silent deadlock on a 6 GB GPU” should therefore be treated as reported symptoms, not established behavior across Ollama versions or GPUs. No prevalence figure or universal 6 GB failure threshold is established by the available documentation and report.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
ASUS Dual Radeon RX 9060 XT 16GB GDDR6 Gaming Graphics Card | PCIe 5.0, HDMI 2.1b, DisplayPort 2.1a, 2.5-slot design, Axial-tech Fans, 0dB Technology
ASUS Dual Radeon RX 9060 XT 16GB GDDR6 Gaming Graphics Card | PCIe 5.0, HDMI 2.1b, DisplayPort 2.1a, 2.5-slot design, Axial-tech Fans, 0dB Technology
0dB technology lets you enjoy light gaming in relative silence; Dual BIOS switch lets you toggle between Quiet and Performance BIOS profiles
$529.00
Bestseller No. 2
GIGABYTE GeForce RTX 5070 Ti Gaming OC 16G Graphics Card, 16GB 256-bit GDDR7, PCIe 5.0, WINDFORCE Cooling System, GV-N507TGAMING OC-16GD Video Card
GIGABYTE GeForce RTX 5070 Ti Gaming OC 16G Graphics Card, 16GB 256-bit GDDR7, PCIe 5.0, WINDFORCE Cooling System, GV-N507TGAMING OC-16GD Video Card
Powered by the NVIDIA Blackwell architecture and DLSS 4; Powered by GeForce RTX 5070 Ti; Integrated with 16GB GDDR7 256bit memory interface
$1,249.99
Bestseller No. 3
GIGABYTE GeForce RTX 5060 WINDFORCE OC 8G Graphics Card, Cooling System, 8GB 128-bit GDDR7, PCIe 5.0, Manufactured by NVIDIA, DisplayPort & HDMI - Video Output Interface, GV-N5060WF2OC-8GD Video Card
GIGABYTE GeForce RTX 5060 WINDFORCE OC 8G Graphics Card, Cooling System, 8GB 128-bit GDDR7, PCIe 5.0, Manufactured by NVIDIA, DisplayPort & HDMI - Video Output Interface, GV-N5060WF2OC-8GD Video Card
Powered by the NVIDIA Blackwell architecture and DLSS 4; Powered by GeForce RTX 5060; Integrated with 8GB GDDR7 128bit memory interface
$495.99
SaleBestseller No. 4
GIGABYTE Radeon RX 9070 XT Gaming OC 16G Graphics Card, PCIe 5.0, 16GB GDDR6, GV-R9070XTGAMING OC-16GD Video Card
GIGABYTE Radeon RX 9070 XT Gaming OC 16G Graphics Card, PCIe 5.0, 16GB GDDR6, GV-R9070XTGAMING OC-16GD Video Card
Powered by Radeon RX 9070 XT; WINDFORCE Cooling System; Hawk Fan; Server-grade Thermal Conductive Gel
$814.28
SaleBestseller No. 5
ASUS Prime Radeon RX 9070 XT 16GB GDDR6 OC Edition Gaming Graphics Card | PCIe 5.0, HDMI/DP 2.1, 2.5-slot, Axial-tech Fans, Dual-ball Fan Bearings, dual BIOS, ASUS GPU Guard
ASUS Prime Radeon RX 9070 XT 16GB GDDR6 OC Edition Gaming Graphics Card | PCIe 5.0, HDMI/DP 2.1, 2.5-slot, Axial-tech Fans, Dual-ball Fan Bearings, dual BIOS, ASUS GPU Guard
0dB technology lets you enjoy light gaming in relative silence; Dual BIOS switch lets you toggle between Quiet and Performance BIOS profiles
$831.99
Best Value
Sale
ASUS Prime Radeon RX 9070 XT 16GB GDDR6 OC Edition Gaming Graphics Card | PCIe 5.0, HDMI/DP 2.1, 2.5-slot, Axial-tech Fans, Dual-ball Fan Bearings, dual BIOS, ASUS GPU Guard
  • Axial-tech fans now feature a smaller fan hub that facilitates longer blades and a barrier ring that increases downward air pressure
  • Phase-change GPU thermal pad helps ensure optimal heat transfer, lowering GPU temperatures for enhanced performance and reliability
  • 2.5-slot design allows for greater build compatibility while maintaining cooling performance
  • Dual-ball fan bearings last up to twice as long as standard conventional sleeve bearings designs
  • 0dB technology lets you enjoy light gaming in relative silence

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.