How Much Unified Memory Do You Need to Run a 32B LLM Locally?
This guide explains how memory capacity, quantization, context length, and system overhead determine which local LLMs a unified memory computer can run. It includes a memory tier table for 7B to 70B models and guidance on choosing a configuration.
1. Chip Generation Is Not the First Gate
Many people assume that only the latest chip generation can run large language models. For chips with a unified memory architecture, that assumption does not hold. Whether it is a first-generation chip or a later one, any device with enough memory can load models with tens of billions of parameters. Chip generation mainly affects speed. Whether a model can run depends first on memory capacity.
The reason is that local inference requires the full model weights to reside in memory. If the weights do not fit, the later steps cannot proceed. Once the model fits, speed becomes the factor to compare. The gap between a model that can run and one that cannot is far larger than the speed difference between chips of the same generation.
When memory is insufficient, the system can use disk space as virtual memory. This can let the model start, but data must move repeatedly between memory and disk, and generation becomes so slow that it is nearly unusable. Being able to start a model and being able to use it are two different things.
2. Calculate the Model Weights First, Then Add Runtime Overhead
Three concepts matter when choosing a model.
First, the parameter count and the quantization bit width together determine the size of the weights. Take 4-bit quantization as an example. Each parameter takes about half a byte, so a 14B-parameter model has weights of about 9 GB, a 32B model about 20 GB, and a 70B model about 40 GB. Higher quantization bit widths produce larger files. For example, a 32B model quantized to 8 bits has weights of about 35 GB. These figures cover only the weights. Actual file sizes vary slightly depending on the quantization method.
Second, context length adds memory use. When a model generates text, it caches the key and value information for every token it has already processed. This cache is called the KV cache. The longer the context, the larger the KV cache. Long inputs or many conversation turns can make actual memory use significantly higher than an estimate based on the weights alone.
Third, the operating system, the browser, and the inference framework also use memory. On unified memory devices, the GPU can typically access less than the machine’s total memory. The exact ratio varies by model and system version.
Overall, the required memory is roughly the weights plus the KV cache plus the system and framework overhead. In practice, reserve 20% to 30% headroom so that long conversations and background apps do not push the model out of memory.
3. Memory Tiers and Suitable Model Sizes
The table below lists the approximate suitability of 4-bit quantized models at different memory capacities. It assumes a medium context length and operation on a unified memory device.
| Unified Memory | Suitable Model Size | Notes |
|---|---|---|
| 16GB | 7B to 14B parameters | A 14B model’s weights take about 9 GB and can run. The system uses more memory, so long contexts can be tight. |
| 24GB | 7B to 14B parameters; 32B for short contexts only | 32B weights take about 20 GB, leaving little headroom. Suitable for short conversations, but not recommended for sustained use. |
| 32GB to 36GB | 32B parameters | After the weights and a typical context length, there is still headroom. This is a more reliable starting point for running 32B models. |
| 64GB and above | 70B parameters | A 70B 4-bit model’s weights take about 40 GB. With the KV cache and system overhead, this tier provides comfortable room. |
48GB sits in a borderline range. It can barely fit a 70B 4-bit model, but the headroom is small, and performance can become unstable with long contexts.
This table is a reference only. Higher quantization bit widths, longer contexts, or more concurrent requests all increase memory requirements, so choose a higher tier in those cases.
4. What Determines Speed
Memory capacity determines whether a model can run. Speed depends mainly on memory bandwidth. When generating each token, most of the weights must be read once, so higher bandwidth means more tokens per second. Among devices with the same capacity, models with higher bandwidth are usually noticeably faster. For example, base Apple silicon chips offer memory bandwidth above 100 GB/s, while Max-class chips typically reach around 400 GB/s. Check the official specifications of the specific model for exact figures.
GPU compute is not the most critical factor. As long as compute does not fall significantly behind, bandwidth and capacity determine most of the user experience.
CPU-only inference can run small models, but more slowly. It suits occasional use or batch processing. For smooth interactive use, the GPU should take part in inference.
5. Common Mistakes and Pitfalls
First, looking only at the advertised memory. The total memory listed for a device is not all available to the model. Reserve space for the system in advance.
Second, ignoring the quantization version. Different quantized files of the same model can differ greatly in size. Check the file size before downloading, and compare it with the available memory.
Third, treating the parameter count as the only metric. Model architecture, training data, and whether the model is an instruction-tuned version all affect real-world performance. Parameter count is only one factor.
Fourth, using overly long inputs. Long document summarization and code repository analysis consume a lot of memory. Shorten the input or process it in segments first.
6. How to Choose
For learning, coding assistance, or text summarization, a 16GB device running a quantized 7B to 14B model is enough. To run a 32B model for practical work, 32GB to 36GB is a more reliable starting point. For models close to 70B with long contexts, consider a configuration of 64GB or more.
Local deployment suits lightweight inference, privacy-sensitive data, and offline environments. For larger models, longer contexts, or multiple simultaneous users, consider cloud GPU instances or managed model inference services, which are billed by usage. This avoids buying a full high-end machine for occasional large tasks.
Before buying, test a device from the same series, or a model with the same parameter count. Record the memory usage and generation speed, then decide on a configuration.
