Skip to main content

Guides

Local LLM Hardware Requirements: RAM and VRAM

Start with the downloaded file size, then allow for the conversation, runner and operating system. On a dedicated GPU, check system RAM and VRAM separately.

By Updated 11 min read

For a first local text model, 16 GB of system or unified memory is a useful starting point for a small 4-bit model; on an 8 GB system- or unified-memory machine, start with the exact small file, runner and short context budgeted below. Memory determines which local models are practical, but “16 GB” can mean system RAM, dedicated GPU VRAM, or Apple unified memory. Those are not interchangeable.

Quick checklist for setting up a local LLM:

  1. Identify which memory pool your runtime will use (system RAM, dedicated GPU VRAM, or unified memory).
  2. Check the file size of the exact model you want to run (not just parameter count).
  3. Estimate the runtime overhead and the additional memory needed for context and buffers.
  4. Make sure to leave enough headroom for your operating system and the applications you will use alongside the model.
  5. Choose the model size that matches what you have available after these calculations, starting small and scaling up only when you confirm performance is acceptable.

For a fast starting point, use the memory tiers. For the assumptions behind them, read the worked examples, then enter your exact model and context in the local LLM RAM and VRAM calculator.

Practical starting tiers

Hardware memoryFirst text-model classPractical use
8 GB system or unified memoryQwen3 0.6B Q8_0 at 4,096 tokens in Ollama; Qwen3 1.7B Q4, which also fitsSmall learning and short-text experiments; Qwen3 4B Q4 fits with less room, as shown below
16 GB total or unified memory7B–8B, 4-bitEveryday chat, writing, focused coding, small document sets
24 GB total or unified memory8B–14B, 4-bitStronger general use and moderate document work
32 GB total or unified memory14B first; larger after testingMore capable assistants and heavier multitasking
8 GB dedicated VRAM7B–8B, 4-bitResponsive GPU-local chat with moderate context
12 GB dedicated VRAMQwen3 8B Q4_K_M firstQwen3 14B Q4_K_M exceeds the GPU-only budget at 4,096 tokens; check shorter context or CPU offload separately
16 GB dedicated VRAM14B, 4-bitStronger local text workloads and larger context than 8 GB cards
24 GB dedicated VRAMQwen3 14B Q4_K_M firstQwen3 32B Q4_K_M needs CPU offload at 4,096 tokens under these allowances
64 GB+ unified or system memory14B–32B firstLarger local experiments and substantial document workflows

The worked figures below use capacities entered as GiB, one user, FP16 conversation memory (Auto), the named runner, and a 20% safety allowance. The calculator reserves 2.5 GiB for the operating system on an 8 GiB computer and up to 4 GiB on larger ones and, for dedicated GPUs, 5% of the card (between 0.5 and 1 GiB) for the display. System RAM and dedicated VRAM are checked separately; unified memory is one pool. Model-runner and temporary calculation memory are added to the workload. The exact result changes with model architecture, quantization, context length, runtime, GPU offload, multimodal components, and what else is running. Multi-GPU and CPU/GPU offload need a separate calculation for the exact model and runtime; do not add unlike memory pools together and assume the model fits.

The four memory costs that matter

1. Model weights

The model file is the highest obvious cost. A 4-bit quantization uses roughly half a byte per parameter before format and metadata overhead. That means a dense 8B model often lands around 4 GB–6 GB, while a dense 32B model can require roughly four times as much.

For mixture-of-experts models, total parameters affect the weight storage and usually the resident weight-memory requirement, while active parameters describe how much computation is used per token. For example, a 12B MoE model with 3B active parameters requires memory for the full 12B parameter weights, but only 3B are actively used per token during inference. The exact memory behavior depends on how the model and runtime load the experts.

2. Runtime and backend overhead

The runtime needs memory for buffers, kernels, model metadata, tokenization, and other working state. A memory pool with no headroom left after loading the model file does not work.

3. Context and key-value cache

The context window stores the conversation, retrieved passages, system instructions, and generated tokens. Longer context normally increases memory use. A model that works at a modest context can fail or slow sharply as the target context grows.

Set context explicitly before loading: use 4,096 tokens for the worked catalog examples here, or 2,048 for the roomier 8 GB Qwen3 1.7B Ollama setup below. Ollama selects defaults by graphics-memory capacity, so a default can be much larger than the short context budgeted here. In Ollama use Settings, /set parameter num_ctx 2048 (or 4096) in terminal chat, or options.num_ctx in an API request; check CONTEXT and PROCESSOR with ollama ps. Increase context only after checking memory and speed again.

4. The rest of the computer

The operating system, browser, editor, document index, chat history, and every other process also need memory. Apple unified memory makes this competition especially visible because the CPU and GPU draw from the same pool.

Fits

Qwen3 8B; Q4; 4,096 context tokens; 1 concurrent user; LM Studio.

16 GiB Mac

Context length: 4,096 tokens
  • Model weights: 4.7 GiB
  • Conversation memory (KV cache): 0.6 GiB
  • Working memory: 0.3 GiB
  • Media companion file: 0.0 GiB
  • Safety allowance: 0.2 GiB
  • App memory: 1.0 GiB
  • Unified memory: 6.8 GiB needed; 12.0 GiB available

Open these settings in the RAM and VRAM calculator

From this site's RAM and VRAM calculator.

RAM, VRAM, and unified memory

System RAM

System RAM is the main pool for CPU inference and for any model portions that do not fit in dedicated GPU memory. It also holds the operating system and ordinary applications. A CPU-only setup can load a model that is too large for a GPU, but output is slow. To speed up CPU inference, reduce context length, choose lighter or more quantized models, and close unnecessary background applications to free up resources.

Dedicated GPU VRAM

Dedicated VRAM is a separate high-bandwidth pool attached to a discrete GPU. It is the key constraint for fast local inference on NVIDIA or AMD hardware. A model that fits mostly or entirely in dedicated VRAM performs better than one that repeatedly moves data through system memory.

Windows may report “shared GPU memory.” That is system RAM available to the GPU, not additional dedicated VRAM. Do not add it to the dedicated VRAM number.

Apple unified memory

Apple Silicon combines CPU and GPU access to one memory pool. This avoids a small, fixed VRAM partition The operating system, applications, model, context, and graphics all compete for the same pool.

A 16 GB Apple Silicon Mac is a 7B–8B machine. A 32 GB or 64 GB Mac gives substantially more room.

See Unified Memory for Local LLMs for the same model budget on an Apple Silicon Mac and a PC with dedicated graphics memory.

Other shared-memory systems

AMD Strix Halo needs the actual graphics-memory allocation and a supported GPU runtime. DGX Spark uses Linux Arm64; RTX Spark uses Windows Arm64. Both NVIDIA platforms have coherent memory, not a separate VRAM pool to add to system RAM. Select the exact platform, installed memory and native runner. Capacity does not prove GPU support or performance. The same shared-pool rule applies to the 256 GB and 512 GB Mac Studio configurations.

A practical planning formula

For a first-pass text-model estimate, think in this order:

  1. Start with the actual quantized model file size. Use the specific artifact, not only the family’s parameter count.
  2. Add runtime overhead. Use the RAM and VRAM calculator rather than assuming the file size is the total.
  3. Add context overhead. Larger context and multimodal inputs can materially change memory demand.
  4. Reserve operating-system and application headroom. A desktop machine still needs to function while the model is running.
  5. Reject a plan that depends on constant swapping.

Worked examples

8 GB Apple Silicon Mac

At 8 GiB the calculator leaves 5.50 GiB of unified memory after its operating-system reserve. Qwen's Qwen3-0.6B-Q8_0.gguf (0.639 GB), with Ollama, 4,096 tokens and the allowances above, needs about 1.77 GiB, leaving 3.73 GiB. Import that exact GGUF to reproduce this budget; Ollama library tags can contain different files. In LM Studio the same file needs about 2.47 GiB and leaves 3.03 GiB. Both suit simple tasks.

Ollama's qwen3:1.7b Q4_K_M package is a different, approximately 1.4 GB download. On the 8 GiB example, the recorded Ollama package needs about 2.18 GiB at 2,048 tokens and 2.45 GiB at 4,096, both with room to spare; the 8 GB guide has the budget.

Qwen's Qwen3-4B-Q4_K_M.gguf (2.497 GB) needs about 3.67 GiB in Ollama or 4.37 GiB in LM Studio at 4,096 tokens. Both fit the 5.50 GiB budget, leaving 1.83 GiB and 1.13 GiB. The Qwen3 4B model page uses the llama.cpp allowance, which is the same as Ollama's: about 3.67 GiB required at 4,096 tokens. LM Studio's larger app allowance gives the higher total; the totals describe different runners, not different installed memory.

16 GB Apple Silicon Mac

Start with a 7B–8B 4-bit model. Leave room for macOS and the applications beside the runtime. A 14B model is not a beginner default.

Windows PC with 16 GB RAM and no discrete GPU

Use a small model and expect CPU-limited speed. More system RAM can help load larger files, but it won't match the throughput of a supported discrete GPU. Choose this path for privacy experiments, short tasks, or learning—not for pretending an office laptop is a high-end inference workstation.

Windows PC with 32 GB RAM and 12 GB dedicated VRAM

Start with Qwen3 8B Q4_K_M. With the catalogued 5.028 GB GGUF, LM Studio and 4,096 tokens, the calculator needs 5.75 GiB of the 11.40 GiB available VRAM. Qwen3 14B's 9.002 GB GGUF needs 9.58 GiB, which also fits and leaves 1.82 GiB. The separate 1.00 GiB system-RAM allowance fits within 28.00 GiB available. Try 14B if you want the larger model; keep 8B for more room for longer conversations.

64 GB Apple Silicon Mac

Start with a 14B–32B 4-bit model based on the job. Higher memory makes larger models practical, but speed and context still decide whether they are useful. Compare output on your real task before keeping the larger model as the default.

Choose a concrete starting model

An existing supported download is more useful than a parameter label alone. Match the file as well as the model name. The worked catalog budgets use Qwen's GGUF files; Ollama library tags are separate packages whose sizes must be checked.

Memory situationFirst experimentWhat changes the choice
8 GB system or unified memoryQwen3 0.6B Q8_0 GGUF at 4,096 tokens in OllamaAbout 1.77 GiB required out of 5.50 GiB; Qwen3 1.7B Q4 needs about 2.45 GiB at 4,096 tokens, which also fits
16 GB CPU-only Windows laptopQwen3 4B Q4_K_M, about 2.5 GB for Qwen's GGUF fileCPU response speed can limit usefulness before memory fills
16 GB Apple Silicon MacQwen3 8B Q4_K_M, about 5.2 GB of weights (Ollama's qwen3:8b download; Qwen's own GGUF of this model is a different file at 5.028 GB)Use 4B if other apps or longer context consume the remaining memory
Supported NVIDIA GPU with 8 GB VRAMQwen3 8B Q4_K_M with short contextDisplay use and runtime overhead can cause spill into system RAM
32 GB–64 GB system or unified memoryA supported 14B–32B 4-bit text model after a smaller one worksCPU speed, memory bandwidth, context, and quantization remain separate constraints

For the 8 GiB qwen3:1.7b Ollama example, 2,048 tokens leaves the most room, and 4,096 also fits. Use 4,096 for the other listed examples only when their full allocation fits. See the worked budgets for the 16 GB Mac, Windows laptop without a discrete GPU, and 8 GB NVIDIA GPU. The memory calculator lets you change the assumptions.

Larger memory: 64 GB, 96 GB, and 128 GB

70 billion parameters at an idealized four bits each require 35 billion bytes, about 32.6 GiB, for weights alone. Quantization metadata, tensors stored at other precisions, runtime buffers, context, and normal applications all add to that figure.

On a 64 GB unified-memory machine, compare a 14B–32B model with the larger candidate on your real task before making the larger one your default. On a 96 GB or 128 GB machine, a supported 70B 4-bit model has more room for context and applications, but CPU-only system RAM and fast unified or GPU memory can produce very different speeds. A multi-GPU setup is not one memory pool; it depends on the runtime's split strategy.

For a mixture-of-experts model, “3B active” does not mean its entire download or memory requirement is 3B. Plan from the full selected artifact and the runtime's loading behavior. A 120B-class model is not a beginner choice even if a compact format fits on paper.

Multimodal and document workflows need extra headroom

Image-capable models may load projectors, vision encoders, or other components in addition to the text model. Document chat adds extraction, embeddings, indexes, retrieved passages, and larger prompts. Image generation can have very different memory behavior from text generation.

The text-only memory table does not cover these workflows. Start with one small representative input.

What success looks like

Use the settings behind the tiers for the runner, file, reserve and margin.

Sources

Qwen GGUF downloads, Qwen3 4B files, Ollama 1.7B package, 1.7B attention dimensions, Ollama context settings.

Next step

Use What local LLM can my computer run? For a direct hardware-first path, enter the exact file and context in the RAM and VRAM calculator.