Share:𝕏LinkedInRedditFacebookCopy link

Running LLMs on Older Hardware

Running large language models (LLMs) locally is often associated with expensive workstations, powerful graphics cards, and tens of gigabytes of dedicated VRAM. However, if you have an older laptop, a traditional office PC without a discrete GPU, or an older Intel-based Mac, you don't necessarily have to sit on the sidelines. With the right settings, a realistic model size, and targeted optimizations, it is entirely possible to squeeze usable performance out of existing hardware.

This guide is written as a practical handbook for optimizing your current system. We don't focus on buying new components, but on smartly configuring the resources you already have. For a general overview of system requirements for new systems, please consult our guide on hardware for local LLMs.

1. Realistically determining what your machine can handle

Before you start downloading model files, it's essential to understand which components of your computer determine performance when running a local language model.

System memory (RAM) as a hard upper limit

When running an LLM on a computer without a dedicated graphics card, the model is loaded entirely into regular system memory (RAM). Available RAM simply determines which model will or won't fit on your system. If a model file is larger than the available memory, the operating system will try to write data to the hard drive or SSD (swapping), resulting in an impractically slow interface.

As a rule of thumb, you should keep at least 2 to 3 gigabytes of RAM free for the operating system and background tasks. On a system with 8 GB of RAM, you effectively have about 5 GB of space for the AI software and the model.

CPU versus GPU and the role of memory bandwidth

Many people assume that the clock speed or the number of processor (CPU) cores is the main limiting factor. However, when an LLM generates text, the real bottleneck is almost always memory bandwidth. For each individual word (token) generated, a language model must stream the entire dataset of all weights from memory to the processor.

The memory bottleneck in practice: Older DDR3 or DDR4 memory in traditional PCs moves data at typically 20 to 40 gigabytes per second. By comparison, modern GPUs or Apple Silicon chips achieve bandwidths of 150 to over 800 GB/s. On older hardware, processing speed is therefore primarily a matter of the physical speed at which the RAM chips can send data to the CPU.

2. Choosing a smaller model instead of forcing a large one

The most effective way to get usable performance on limited hardware is to radically reduce the model size. A common mistake is trying to run a model with 7 or 13 billion parameters on a machine with 8 GB of RAM.

Instead, choose compact models specifically designed to perform efficiently at a lower parameter count. In the 0.5B, 1.5B, and 3B parameter categories, enormous quality improvements have been made in recent years. For more information on selecting suitable categories, see our guide on choosing a local model.

Available RAM Recommended parameter count Indicative memory footprint for model
4 GB RAM 0.5B – 1.5B parameters 1.5 to 2.5 GB
8 GB RAM 1.5B – 3B parameters 2.5 to 5.0 GB
16 GB RAM (older CPU) 3B – 7B parameters (heavily quantized) 5.0 to 9.0 GB

3. Quantization as the main lever

Quantization is the technique of reducing the numerical precision of the weights in the AI model (for example, from 16-bit floating point to 4-bit or 2-bit integers). This drastically reduces the model file size and decreases the amount of data that must be sent over the memory bus per generated token.

For older hardware, quantization is not an option but a requirement. For a detailed explanation of the technical background and loss values, see our guide on quantization explained.

What you sacrifice at low precision

4. Reducing context length to save memory

When you start a model, not only the weight matrix occupies memory, but also the so-called Key-Value (KV) cache. This cache stores the information from the ongoing conversation and the entered text.

By default, many modern models support a context window of 8,192 to 32,768 tokens. However, on a system with limited RAM, a large context window causes a dangerous increase in memory usage. As the conversation grows longer, the KV cache can demand several gigabytes of additional memory, causing the computer to unexpectedly freeze.

Practical context setting

Explicitly limit the context length in your software (such as Ollama or LM Studio) to 2048 tokens or even 1024 tokens on very old machines. If you see that the software is set to 4096 via a configuration parameter such as num_ctx, halve this value. This immediately gives the CPU breathing room and prevents memory spikes during long prompts.

5. Recognizing and preventing swap and thermal throttling

Older laptop hardware faces two physical obstacles during prolonged AI tasks: virtual memory (swapping) and overheating (thermal throttling).

Recognizing swapping

When the computer has too little physical RAM, the operating system uses the hard drive or SSD as temporary storage. You can recognize swapping by the following symptoms:

Solution: Close the application and choose a smaller or more heavily quantized model. Always stay well below the machine's physical RAM limit.

Thermal throttling

Processors in older laptops are not designed to run at 100% load on all cores for minutes at a time. When the temperature rises too high, the processor will automatically reduce its clock speed to prevent damage. As a result, the model's response time becomes noticeably slower over time.

Ensure good ventilation by placing the laptop on a hard, flat surface and removing dust from the ventilation grilles. If necessary, limit the number of allocated CPU threads in the AI runner's settings to $N-1$ or $N-2$ (where $N$ is the total number of processor cores) so the system doesn't constantly run at maximum capacity.

6. Freeing up system resources and stopping background processes

On a powerful modern PC, an open web browser with thirty tabs makes little difference. On an old machine with 8 GB of RAM, however, a web browser can already consume 2 to 3 GB of memory.

Apple laptops with an older operating system require a specific approach; for this, see our guide on installing Ollama on macOS.

7. Adjusting expectations: what is and isn't realistic?

It's important to have clear expectations about what is achievable when running a local model on an older machine. Performance should always be weighed against the desire to process data fully privately.

Realistic and suitable tasks

Unrealistic tasks for older hardware

To check how your specific hardware's performance compares to other configurations, you can consult the benchmark results in our external test environment at LLMnet Benchmark.

8. When running locally is no longer worthwhile

Although optimization can go a long way, every hardware generation has its limits. It's wise to switch to alternatives when:

In those cases, it may be wiser to consider privacy-friendly API services or to run the AI tasks on another, more powerful device on your local network.

Optimization checklist for older hardware

Use these steps as a quick reference card when setting up your local model:

  1. Check available RAM: Open Task Manager or Activity Monitor and determine how much memory is actually free.
  2. Choose a suitable model: Select a 1.5B or 3B model (for example, Qwen2.5-1.5B or Llama-3.2-3B).
  3. Select strong quantization: Download a Q4_K_M or Q3_K_M variant of the model.
  4. Limit the context: Manually set the context length to 1024 or 2048 tokens in the settings.
  5. Close other software: Close all browser windows and heavy background programs.
  6. Measure performance yourself: Test the model with a short prompt and check the generation speed and temperature trend of your machine.