Running a 32B LLM Locally: Memory Requirements for Apple M-Series Chips
This article explains why running a 32B parameter model locally is primarily a memory capacity question rather than a chip generation issue. It covers the difference between inference and training workloads, a practical formula for estimating memory needs across 8GB to 48GB configurations, why a model that loads is not necessarily usable, and the trade-offs of quantization and context length. It also compares local deployment with cloud-based alternatives.
1. The Bottom Line: It Is About Memory Capacity, Not Chip Generation
When deploying large models locally on a desktop machine, a common mistake is to focus entirely on the processor generation and assume that only the newest chips are capable of running them. In practice, from the first generation of in-house desktop chips to the latest one, the same memory tier can load and run models in the 30-billion-parameter range. The reason is not mysterious: inference for this class of models relies mainly on matrix multiply-add operations and a large amount of memory movement, and its peak compute requirements are far lower than those of the training stage. The compute gains of each chip generation are not the bottleneck in most scenarios.
The real gatekeeper is unified memory capacity. On desktop platforms, the processor, integrated graphics, and memory share the same physical memory pool, and the model weights must reside in it either entirely or mostly. As a result, “is there enough memory” translates directly into “will it start.” Within the range of up to 70 billion parameters, the discussion almost always converges on capacity.
2. Inference and Training Are Two Different Workloads
Training requires storing gradients, optimizer states, and activations during forward and backward propagation, which multiplies memory and compute consumption several times over. Inference performs only the forward pass, and after the weights are loaded it consumes only a small amount of additional context cache. This explains an apparently contradictory situation: the barrier to training is very high, while the barrier to getting answers is much lower.
A low barrier, however, does not mean you can completely do without a graphics acceleration unit. Pure processor inference is theoretically feasible, but the actual experience is poor because insufficient memory bandwidth and parallelism make data movement the dominant cost.
3. How to Estimate Memory Requirements
A reusable rule of thumb is: runnable size ≈ available memory × 0.7, with the remaining headroom reserved for the operating system, context cache, and runtime. This yields a few reference points:
- 8GB of memory: suitable for small models of 3B to 7B parameters, for functional validation;
- 16GB of memory: 14B-class models run easily, while 32B-class models require swap space and are too slow to use;
- 24GB to 32GB of memory: 32B-class models run smoothly, a reasonable starting point for local development;
- 48GB and above: 70B-class models can be attempted, but this is already close to the practical limit of consumer devices.
Keep in mind that the size listed on a model page is a reference value and will be slightly smaller once materialized. Meanwhile, a 32B model needs roughly around 20GB of graphics memory, which is exactly why 16GB devices must borrow from swap space.
4. Why “Can Run” and “Can Be Used” Are Two Different Things
When physical memory is insufficient, the system swaps part of the weights out to the SSD, and the processor repeatedly moves data back and forth between memory and storage. During this time the graphics acceleration unit is idle most of the time, and output speed can drop to one token every few minutes. This only proves feasibility; it has no practical value. The right criteria are first-token latency and token generation speed, not whether the model loads successfully.
5. Quantization, Context, and Practical Testing
Lowering precision is the most direct way to increase the runnable size. After quantization, the model size and memory footprint drop together, at the cost of a slight loss in accuracy and instruction-following ability. Context length is equally important, as long texts continuously push up cache usage. The recommended validation order is: first estimate the memory headroom, then use a small model to get the toolchain working end to end, and finally increase the parameter size step by step while watching memory pressure and output speed.
6. Local vs. Cloud: Making the Trade-off
The value of local deployment lies in keeping data on the device, working offline, and having zero marginal cost, which makes it suitable for personal experimentation and sensitive data processing. If you need stable throughput, concurrent access from multiple users, or larger models, a cloud approach works: a container platform hosts the inference service, object storage holds the model files, and logging and monitoring with alerting provide capacity and latency visibility, with auto scaling to handle peaks. In these scenarios, Baidu AI Cloud typically provides a combination of general-purpose capabilities rather than a single proprietary interface.
7. Summary
When choosing a device, first determine the parameter size you want to run, then work backward to the memory capacity, and only then compare chip generations. Memory larger than the model size is the basic prerequisite for smooth operation, swap space is only for validation rather than daily use, and generational differences in compute usually rank behind capacity and bandwidth in inference scenarios.
