Ollama Model Won't Load or Download on Windows: Fix
When ollama pull fails midway with unexpected EOF, hangs indefinitely at 99%, or reports model not found, you are dealing with network chunk drops, corrupted SHA256 blobs, or NTFS file permission locks. Here is how to diagnose and repair your local model storage cleanly.
Understanding the Windows Ollama Storage Architecture
Unlike simple desktop applications that save models as a single .bin file, Ollama stores model layers in an OCI-compliant (Open Container Initiative) content-addressable storage structure located in your Windows user profile:
C:\Users\<YourUsername>\.ollama\models\
├── manifests\
│ └── registry.ollama.ai\
│ └── library\
│ └── llama3.1\
│ └── 8b (JSON manifest defining model layers, licenses & params)
└── blobs\
├── sha256-42... (Quantized GGUF model weights, multi-gigabyte file)
└── sha256-8a... (System template, tokenizer, and config metadata)
If a network drop occurs during download, a partial blob can remain locked in the blobs\ directory, causing subsequent ollama run commands to crash on SHA256 validation.
Common Error Codes & Direct Solutions
| Error Message | Root Cause | Immediate Fix |
|---|---|---|
pull model manifest: file does not exist |
Typo in model tag or model removed from Ollama library. | Check exact name on ollama.com/library (e.g., llama3.1:8b not llama3.1-8b). |
error: unexpected EOF |
TLS connection drop or corporate firewall interrupted HTTP chunk stream. | Resume pull with ollama pull <model> or configure proxy. |
download failed: no space left on device |
Your primary C:\ drive ran out of free sectors. |
Move models to D: drive using OLLAMA_MODELS environment variable. |
failed to load model: verification failed |
Corrupted local blob from unclean shutdown or power loss. | Delete the model entry and pull fresh blobs. |
Get "https://registry.ollama.ai/...": dial tcp: lookup registry.ollama.ai: no such host |
Windows DNS failure, VPN conflict, or offline network adapter. | Flush Windows DNS cache (ipconfig /flushdns). |
Fix 1: How to Safely Purge and Re-Pull a Corrupted Model
If a model repeatedly fails to initialize, remove its manifest and cached pointers before downloading again:
# 1. Remove the model registration:
ollama rm llama3.1:8b
# 2. Re-pull the verified clean image:
ollama pull llama3.1:8b
Fix 2: Cleaning Orphaned Blobs to Free Disk Space
When downloads are aborted, partial multi-gigabyte blobs can linger in .ollama\models\blobs\ without being linked to any registered model in ollama list. Over time, this can silently consume 50–100 GB of drive space.
Run this safe PowerShell script to inspect total disk space occupied by Ollama models:
$modelsPath = "$env:USERPROFILE\.ollama\models"
if (Test-Path $modelsPath) {
$size = (Get-ChildItem -Path $modelsPath -Recurse | Measure-Object -Property Length -Sum).Sum / 1GB
Write-Output "Total Ollama Storage Footprint: $([math]::Round($size, 2)) GB"
} else {
Write-Output "Default models directory not found."
}
To safely clear orphaned blobs, quit Ollama from the system tray and run:
# Ensure Ollama is not actively writing to the blob store:
Stop-Process -Name ollama* -Force -ErrorAction SilentlyContinue
Fix 3: Moving Models to a Secondary Drive (D:, E:, or NVMe)
By far the most common reason for model download failures on Windows is that the primary system drive C:\ is nearly full. Windows requires 15–20 GB of free space simply for pagefile expansion and system updates.
You can instruct Ollama to store all present and future models on a secondary SSD (e.g. D:\OllamaModels) with a single permanent environment variable:
# 1. Create target directory on secondary drive:
New-Item -ItemType Directory -Path "D:\OllamaModels" -Force
# 2. Set the persistent environment variable:
[Environment]::SetEnvironmentVariable('OLLAMA_MODELS', 'D:\OllamaModels', 'User')
# 3. (Optional) Copy existing models if you don't want to re-download:
Copy-Item -Path "$env:USERPROFILE\.ollama\models\*" -Destination "D:\OllamaModels" -Recurse -Force
Fix 4: Resolving Corporate Proxy & SSL Certificate Errors
If you are on an enterprise network, university Wi-Fi, or behind Zscaler/Cloudflare WARP, ollama pull may fail due to intercepted SSL certificates or custom proxies.
Configure Ollama to route through your local HTTP proxy by setting HTTP_PROXY and HTTPS_PROXY:
[Environment]::SetEnvironmentVariable('HTTP_PROXY', 'http://127.0.0.1:8080', 'User')
[Environment]::SetEnvironmentVariable('HTTPS_PROXY', 'http://127.0.0.1:8080', 'User')
Frequently Asked Questions
Can I import custom GGUF files directly from Hugging Face into Ollama?
Yes! You do not have to use ollama pull. Download any GGUF file from Hugging Face, create a simple text file named Modelfile with the line FROM ./my-model.gguf, and run ollama create custom-model -f Modelfile. Ollama will ingest and register it locally without redownloading.
What happens if my PC shuts down during a large 70B model pull?
Ollama supports resumable HTTP chunk downloads. When you re-run ollama pull <model>, it inspects already-downloaded layer blobs and resumes from the incomplete layer rather than starting from 0%.
Why does Ollama say "model requires 18 GB of memory, only 16 GB available"?
This means your combined physical RAM and VRAM cannot accommodate the model weights and minimum KV cache buffer. You can bypass this check by setting OLLAMA_NUM_PARALLEL=1 and lowering num_ctx, but inference will rely heavily on the Windows pagefile (virtual memory) on your SSD.