Skip to main content

Hardware

NVIDIA 8 GB VRAM GPU

Start with Qwen3 8B Q4_K_M at 4096-token context on a supported NVIDIA GPU with 8 GB dedicated VRAM. Drop to Qwen3 4B if display use, other GPU applications, or the context leaves too little room.

Example: 16 GB system memory8 GB GPU memoryUpdated

At a glance

Model sizes to check
8B Q4 at 4,096 tokens · 4B Q4 when the GPU is shared
Likely bottleneck
The 8 GB graphics pool must hold the offloaded weights and conversation memory while leaving room for the display and other GPU applications.
Good first workload
Try the documented Qwen3 8B Q4_K_M example at 4,096 tokens; use 4B when the display workload or other GPU apps leave too little room.
Upgrade trigger
Choose more VRAM when your required model and context repeatedly need CPU offload. More system RAM alone does not enlarge this GPU’s memory.

Quick verdict

  • Start with Qwen3 8B Q4_K_M at 4096-token context on a supported NVIDIA GPU with 8 GB dedicated VRAM.
  • Drop to Qwen3 4B if display use, other GPU applications, or the context leaves too little room.

What this profile is for

An 8 GB NVIDIA card has a dedicated memory pool separate from system RAM. This example assumes at least 16 GB system RAM beside the card.

Confirm acceleration before tuning

Run nvidia-smi to confirm the driver sees the card. Follow install Ollama, run ollama run qwen3:8b, and set /set parameter num_ctx 4096 at the chat prompt. While it is loaded, run ollama ps in another terminal. A 100% GPU processor entry means Ollama reports full GPU placement; a split entry means part is in system memory.

For a visual setup, follow install LM Studio, choose a Qwen3 8B GGUF Q4_K_M download, and inspect GPU offload in the load settings. Use the GPU diagnostic if the runtime remains on the CPU.

Worked VRAM example

Open the 16 GiB RAM / 8 GiB VRAM Ollama calculation. It selects Qwen3 8B, Q4, 4,096 tokens, one user and a 20% safety allowance. The calculator uses GiB and includes weights, context and runtime allowances. Replace both capacities with your actual figures and select LM Studio if that is your app.

Read both displayed memory results and compare the estimate with the loaded model's actual placement. If dedicated VRAM is missing, enter the card's dedicated capacity. If the estimate exceeds the available dedicated VRAM after the display reserve, keep the same prompt and try a shorter context or smaller file. Inspect PROCESSOR in ollama ps to check whether the model actually loaded fully on the GPU. Display use and other GPU applications can reduce available memory further. Remaining system RAM is not extra dedicated VRAM; offloading layers there can allow a load while slowing generation.

When the model spills into system RAM

Close another loaded model or GPU-heavy application, reduce context, and retry the same short question. If it still spills, try qwen3:4b-q4_K_M, whose Q4_K_M download is about 2.6 GB. Keep the smaller model when its answers solve the task and it leaves enough room for normal use.

A 14B dense 4-bit model does not fit this card at 4,096 tokens: the Ollama package needs about 9.83 GiB of VRAM against 7.50 GiB available. Image-capable models and document workflows add components and prompt tokens, so retest the full workload before treating an ordinary text-chat result as sufficient.

Use RAM and VRAM requirements to understand the two memory pools. Follow out-of-memory troubleshooting for allocation errors and slow-model troubleshooting for a model that loads but feels too slow.