How much VRAM a local LLM really needs: numbers from an 8 GB RTX 4060
Everyone says "8 GB is enough for a 7B model at Q4", but I wanted actual numbers from a machine I own, not a chart from someone else's review. So I ran three models through Ollama on a laptop RTX 4060 with 8 GB of VRAM, watched nvidia-smi during generation, and wrote everything down. The test bench Nothing exotic here — this is a fairly typical 2024–2026 laptop: GPU: NVIDIA GeForce RTX 4060…
The article provides real-world data on the VRAM requirements for running different local large language models (LLMs) on a laptop with an NVIDIA GeForce RTX 4060 GPU. Three tests were conducted using Ollama 0.34.0 on a laptop with 8 GB of VRAM, Intel Core Ultra CPU, and 22 GB of RAM. The prompts requested explanations of model quantization in three sentences, and each model was loaded cold before generation.
The llama3.2:1b model required 1.3 GB of VRAM and achieved 116.6 tokens per second during testing. The llama3.2:3b model needed 2.0 GB of VRAM and produced 58.8 tokens per second. The qwen2.5:7b model required the most VRAM at 4.7 GB, resulting in 26.4 tokens per second. The author emphasizes that the VRAM needed is roughly equivalent to the model file size plus the context window (KV cache) plus a small runtime overhead.
The article concludes that with 8 GB of VRAM, a 7B model at Q4 can be run entirely on the GPU with around 26 tokens per second. If a faster model is desired, a 3B model can provide about 59 tokens per second. For a more responsive assistant, a 1B model yields over 100 tokens per second. It is recommended to select the largest model that fits within the available VRAM while leaving some room for the desktop compositor and browser.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to