Skip to main content

Guides

Run Local AI Without a GPU

On a CPU-only machine, a model can fit comfortably and still take too long to answer. Time a small model on a prompt you would actually use.

By Updated 4 min read

You can run a local language model on a CPU. Start with a small quantized model. Extra RAM lets a larger model load, but an ordinary CPU generates answers slower than a suitable GPU.

This suits learning, short offline writing, simple extraction from supplied text, and occasional chat on an existing computer. Long documents, large models, and coding agents make the wait impractical. This guide does not count shared memory as dedicated VRAM.

Choose the app that matches the computer

  • Ollama: useful if you can use a terminal and want local model commands or an API.
  • LM Studio: useful if you want menus and a desktop chat. Its x64 Windows app requires AVX2 CPU instructions; an old processor is not supported merely because it runs Windows.
  • llama.cpp: useful if you need direct CPU control and can manage the build or appropriate binaries. Its build guide documents CPU builds; this is a more technical path.

Choose one for the first test. Installing several apps can duplicate model downloads without making the CPU faster.

Start with a model that leaves room for everything else

LFM3 1.7B (lfm3:1.7b-q4_K_M, about 1.1 GB) is another compact text candidate if your runner supports it. Start at 2,048 tokens and compare on a short extraction task. Its license differs from Qwen's. For 16 GB or more, Qwen3.5 4B is another candidate at 4,096 tokens; time the final answer rather than model loading. The older text model below remains a baseline.

For an 8 GB RAM computer, investigate a 1B–2B-class 4-bit model first. For 16 GB or more, compare a 3B–4B candidate once the small model works.

In Ollama, an example small download is:

ollama run qwen3:1.7b

That tag names a particular packaged model. The first run downloads it; later local runs can reuse it.

Enter system RAM, the model, and the intended context in the memory calculator. Leave room for your operating system, editor, browser, and temporary model calculations.

Test one realistic short task

Close unnecessary memory-heavy apps. Start a fresh conversation and supply a short paragraph you understand. For example:

List the two actions requested in this note without adding any: “Send the draft on Tuesday. Call the client after the draft is sent.” /no_think

For the original Qwen3 model, /no_think can request a response without extended thinking when the app's model configuration permits it. Other models use different controls.

Judge both the answer and the wait. A useful result names the two actions, preserves their order, finishes in a time you can tolerate, and leaves the desktop usable. Repeat with your own harmless material; a greeting is a weak test of a real writing or coding workload.

In Ollama, run ollama ps while it is loaded. CPU-only processing is expected on this path and needs no driver installation.

Make the workload smaller without changing its purpose

Keep prompts focused and use the context you actually need. Work with a section at a time when that still answers the question. If a task requires comparing provisions across an entire document, splitting it hides the relationship; use a document-search workflow.

Avoid loading several models at once. Give a longer prompt time to finish processing before deciding that output has frozen. For a laptop, compare performance while plugged in and pay attention to heat and fan behaviour; power limits can affect sustained work.

When to stop tuning

If the desktop starts swapping during generation, unload the model, shorten context and rerun the same prompt. If it stays responsive but loses the source facts, inspect the model's answer against the input, then check model and prompt quality. If it is correct but too slow, time a second prompt after loading before changing anything else.

For direct llama.cpp use, consult your binary's --help for thread and GPU-layer controls. Test CPU settings with your own task; maximum thread count is not always the best setting.

If a small model remains too slow or inaccurate for your job, use a more capable computer or a remote service. The cloud vs local cost calculator compares costs.

Sources