If your 8 GB card has about 6.5 GB free, start with llama3.1:8b (4.9 GB) or qwen3:8b (5.2 GB) for text. Pick gemma3:4b (3.4 GB) for text and images or qwen3:4b (2.5 GB) for a smaller text download. These download sizes are below the example budget. Confirm actual GPU placement with ollama ps.
Sizes on this page are the download sizes shown on the Ollama library tag pages. Fit estimates use an example free-VRAM budget.
Evidence note. The Ollama and NVIDIA documentation and the Ollama library tag pages were checked on 2026-11-26. No hands-on testing was performed for this guide.
Picks for an 8 GB card
| Pull this tag | Download size | Advertised context limit | Supported input |
|---|---|---|---|
llama3.1:8b | 4.9 GB | 128K | Text |
qwen3:8b | 5.2 GB | 40K | Text |
qwen3:4b | 2.5 GB | 256K | Text |
gemma3:4b | 3.4 GB | 128K | Text and images |
qwen3.5:4b-q4_K_M | 3.3 GB | 256K | Text and images |
gemma3:1b | 806 MB | 32K | Text |
The llama3.1:8b and qwen3:8b tags carry the latest label. See the llama3.1, qwen3, gemma3 and qwen3.5 tag pages.
Downloads above the example 6.5 GB budget
qwen3.5:9b, also taggedqwen3.5:latest, is listed at 6.6 to 7.6 GB. Even the 6.6 GBqwen3.5:9b-q4_K_Mdownload exceeds the example budget.gemma3:12bhas an 8.2 GB download against 6.5 GB of example free VRAM.gemma4:12bat 7.7 to 8.0 GB andgemma4:e4b(latest) at 6.6 to 9.5 GB also exceed the budget. Gemma 4 tag page
Check available GPU memory
This example uses 6.5 GB of free VRAM. Check how much memory is free on your card.
On NVIDIA cards, run the command below and look for Free under FB Memory Usage. Command reference
nvidia-smi -q
For AMD ROCm device discovery, rocminfo lists devices. Ollama GPU documentation
After loading a model, check its placement with ollama ps. Ollama FAQ
Context memory
A larger context window increases the memory required to run a model. See the VRAM calculator and How much VRAM you need to run local LLMs with Ollama.
Example VRAM budget by model size
These estimates subtract the listed download sizes from the example 6.5 GB of free VRAM before accounting for context memory.
| Parameter class | Example tags and sizes | Example budget after subtracting download size |
|---|---|---|
| 1B | gemma3:1b 806 MB | About 5.7 GB left |
| 4B | qwen3:4b 2.5 GB, qwen3.5:4b-q4_K_M 3.3 GB, gemma3:4b 3.4 GB | About 3.1 to 4.0 GB left |
| 8B | llama3.1:8b 4.9 GB, qwen3:8b 5.2 GB | About 1.3 to 1.6 GB left |
| 9B | qwen3.5:9b-q4_K_M 6.6 GB | Over budget |
| 12-14B | gemma3:12b 8.2 GB, qwen3:14b 9.3 GB | Over budget |
| 27B | gemma3:27b 17 GB, qwen3.5:27b-q4_K_M 17 GB | Over budget |
Use ollama ps to check placement after loading a model. See Ollama not using GPU.
Larger tags against the same budget
The listed sizes for these three tags exceed the example 6.5 GB budget. The listed downloads are 19 GB for qwen3:30b, 22 GB for qwen3.5:35b (also tagged qwen3.5:35b-a3b), and 16 to 19 GB for gemma4:26b.
If a model loads, check ollama ps. For example, 100% CPU means the entire model is in system memory, while 48%/52% CPU/GPU means it is split between system memory and the GPU. Ollama FAQ
GPU support and driver requirements
- NVIDIA. Ollama requires compute capability 5.0 or higher and driver 550 or newer. Cards with compute capability 5.0 to 6.2 require driver 570 or newer.
- AMD RX 7600. ROCm support requires the AMD ROCm v7 driver on Linux or an AMD ROCm v7 / HIP7-capable driver stack on Windows.
- AMD RX 6600 and RX 580. Both fall outside the documented Linux and Windows ROCm support lists. On Linux,
HSA_OVERRIDE_GFX_VERSIONcan let ROCm try a nearby LLVM target in some cases. The documented example usesHSA_OVERRIDE_GFX_VERSION="10.3.0"for the RX 5400. - Vulkan. Additional GPU support is available on Windows and Linux. Vulkan is enabled by default when the backend is installed. For Intel GPUs on Linux, follow the driver instructions linked in the hardware documentation.
Set the context size
For local models, Ollama defaults to 4k below 24 GiB of VRAM, which includes an 8 GB card. The tag limits in the pick table describe the models’ advertised maximums. After changing the setting, check the allocated context in the CONTEXT column of ollama ps. Ollama context length documentation
The Ollama FAQ documents these methods for changing it. Inside an ollama run session, enter /set parameter num_ctx followed by the token count.
For the whole server, with an environment variable:
OLLAMA_CONTEXT_LENGTH=8192 ollama serve
Through the API, set num_ctx in the options object.
In the Ollama app, use the context slider under settings. Ollama context length documentation
The value 8192 is an example. Check the allocated context with ollama ps.
Make environment variables stick
On Linux, use this method when Ollama runs as a systemd service. Editing the system service needs administrator privileges.
systemctl edit ollama.service
Add one Environment line per variable under [Service].
[Service]
Environment="OLLAMA_CONTEXT_LENGTH=8192"
Save and exit, then reload systemd and restart Ollama.
systemctl daemon-reload
systemctl restart ollama
On macOS, if Ollama runs as the app, use launchctl setenv, then restart the app.
On Windows, quit Ollama from the taskbar. Open Settings (Windows 11) or Control Panel (Windows 10) and search for environment variables. Choose Edit environment variables for your account and add or edit the variable for your user account. Click OK or Apply to save, then start Ollama from the Start menu. Ollama FAQ
Flash Attention and KV cache quantisation
Use OLLAMA_KV_CACHE_TYPE=q8_0 with Flash Attention enabled. Ollama enables Flash Attention automatically when the selected backend and devices support it. To explicitly enable it, set OLLAMA_FLASH_ATTENTION=1 when starting the Ollama server.
For a service or desktop app, set OLLAMA_FLASH_ATTENTION=1 and OLLAMA_KV_CACHE_TYPE=q8_0 using the environment instructions above and restart Ollama. The q8_0 setting applies to all models on that server. It uses about half the cache memory of f16 and usually has no noticeable effect on model quality. Ollama FAQ
Two 27B tags over the example budget
The two listed 27B tags each have a 17 GB download, well above the 6.5 GB example budget. See best GPU for Ollama.
Related: Ollama tokens per second, Ollama on Apple Silicon and Ollama without a GPU.
Checklist for an 8 GB card
-
On NVIDIA, run
nvidia-smi -qand read Free under FB Memory Usage. For AMD ROCm device discovery, userocminfo. Verify model placement on either GPU in step 4. -
Choose a tag from the pick table based on its input type and download size.
-
Set the server context size for your workload using the startup or environment settings above.
-
Load the tag you chose with an empty prompt, then check its placement. This example uses
llama3.1:8b.ollama run llama3.1:8b "" ollama psIn the FAQ example below,
100% GPUin the PROCESSOR column means the whole model is on the GPU. A100% CPUresult means the model is entirely in system memory. A split such as48%/52% CPU/GPUmeans it uses both.NAME ID SIZE PROCESSOR UNTIL llama3:70b bcfb190ca3a7 42 GB 100% GPU 4 minutes from now -
If the model is on the CPU or split, try reducing context. With Flash Attention enabled, try
OLLAMA_KV_CACHE_TYPE=q8_0using the server settings above. Check placement again.