Hardware

Best CPU for AI and Local LLMs: What Matters

The best CPU for AI depends on your setup: GPU builds, CPU-only LLMs or AI servers. Memory channels, cores, AVX-512, PCIe lanes and picks by budget.

By OmniAI Editorial · Nov 20, 2026 · 10 min read

The best CPU for AI depends on how you'll run models. If you have a graphics card doing the AI work, almost any modern 8- to 16-core desktop CPU is enough, such as an AMD Ryzen 7 or Ryzen 9, or an Intel Core Ultra 7 or 9, and the GPU matters far more. If you want to run large language models on the CPU itself, the deciding factor isn't cores but memory bandwidth, which is set by the number of memory channels: desktop chips have two, AMD Threadripper four or eight, and server CPUs like AMD EPYC twelve. For a quiet all-in-one box, chips with large unified memory, like AMD's Ryzen AI Max+ 395 or Apple Silicon, are often the better buy.

This guide explains what a CPU does in AI workloads, why memory channels matter so much for local LLMs, the specs to look for, recommended CPUs by use case, and the mistakes that waste money.

What Does the CPU Do in AI?

In a typical AI PC with a graphics card, the CPU:

  • loads models from storage into memory and onto the GPU,
  • prepares data, tokenizes text and runs the application around the model,
  • runs parts of the model that don't fit on the GPU, if you offload layers to system RAM,
  • handles everything else: the operating system, development tools, containers and databases.

For pure GPU inference, a mid-range CPU rarely limits speed. The CPU becomes important when models spill out of VRAM, when you run models entirely on the CPU, when you need many PCIe lanes for several GPUs, or when you also run heavy non-AI work on the same machine. Our guide to GPU vs CPU explains why GPUs are so much faster for AI maths.

Can AI Run on a CPU?

Can AI run on CPU alone? Yes. Tools like llama.cpp, Ollama and LM Studio run quantized language models on CPUs, and small models such as 1B to 8B parameters at 4-bit can be quite usable for chat on a modern desktop. Larger models run, but slowly, because the CPU's memory bandwidth limits how fast it can read the model's weights for each token.

That's why "CPU for LLM" questions are really memory questions.

Why Memory Channels Matter Most for a CPU for LLM

When a language model generates text, it reads essentially all of its weights from memory for every token. A useful rule of thumb for the maximum speed:

Tokens per second ≈ memory bandwidth ÷ model size in memory

Memory bandwidth depends on the number of memory channels and the memory speed. Here's what that means for common platforms, using a 4-bit 8B model (about 5 GB) and a 4-bit 70B model (about 40 GB):

PlatformMemory channelsApprox. bandwidth8B at 4-bit (upper bound)70B at 4-bit (upper bound)
Desktop (AMD AM5, Intel LGA1851), DDR5-60002~96 GB/s~19 tokens/s~2.4 tokens/s
AMD Threadripper (TRX50), DDR5-64004~205 GB/s~41 tokens/s~5 tokens/s
AMD Threadripper PRO (WRX90), DDR5-64008~410 GB/s~82 tokens/s~10 tokens/s
AMD EPYC server, 12 channels of DDR5-600012~576 GB/s~115 tokens/s~14 tokens/s

These are theoretical ceilings; real speeds are typically 50% to 80% of them. The point is the ratio: a server CPU with twelve memory channels can generate text about six times faster than a desktop CPU, no matter how many cores the desktop chip has. For comparison, a high-end graphics card's VRAM runs at well over 1,000 GB/s.

Four ink-outlined rounded pipes of increasing width drawn side by side from left to right, each holding light blocks, the widest pipe holding one orange block.
More memory channels mean more bandwidth, which sets the speed of CPU inference.

What to Look For in a CPU for AI

SpecWhy it mattersWhat to aim for
Memory channels and speedSets CPU inference speed2 channels for GPU builds; 4–12 for CPU-only inference of large models
Maximum RAMDecides the largest model you can load in system memory64–128 GB for desktops; far more on workstation and server platforms
PCIe lanesDecides how many GPUs and fast SSDs you can connect at full speedOne GPU: any desktop; two or more GPUs: workstation platforms help
Core countHelps prompt processing on CPU, data preparation and multitasking8–16 cores for most; more for servers and heavy parallel work
AVX-512 and matrix extensionsSpeed up CPU maths for AI librariesUseful bonus, especially for CPU-only inference
Integrated NPURuns small on-device AI features efficientlyNice to have on laptops; not a substitute for a GPU
Power and coolingLong AI jobs run at full loadPlan a good cooler; check platform power draw

Best CPU for AI by Use Case

GPU-based AI PC: a solid desktop CPU

If a graphics card does the AI work, choose a current 8- to 16-core desktop CPU on a platform with a full-speed PCIe slot for the GPU and support for 64 to 128 GB of RAM. AMD's Ryzen 9 9950X (16 cores, AVX-512 support) and Ryzen 9 9900X, and Intel's Core Ultra 9 285K and Core Ultra 7 265K, are typical high-end choices; a Ryzen 7 or Core Ultra 7 is plenty for most single-GPU builds. Spend the difference on GPU memory instead. Our guide to building an AI PC covers the full parts list.

Best CPU for AI and gaming

For a machine that games and runs local AI, AMD's X3D chips with extra cache, such as the Ryzen 7 9800X3D, are popular for gaming, while 16-core chips like the Ryzen 9 9950X3D or 9950X balance gaming with heavier AI and development work. AI speed will come almost entirely from the GPU, so pick the CPU for gaming and general work.

CPU-only LLMs on a budget

On a normal desktop with two memory channels, expect good speed with small models (up to about 8B parameters at 4-bit) and slow but usable speed with mid-size ones. Fast DDR5 and enough RAM matter more than the CPU model.

Large models without a big GPU: workstation and server CPUs

To run very large models on the CPU at reasonable speed, you need many memory channels: AMD Threadripper (four channels on TRX50) or Threadripper PRO (eight channels on WRX90), or a server CPU such as AMD EPYC (twelve channels) or Intel Xeon. These platforms also support hundreds of gigabytes or more of RAM and many PCIe lanes for multiple GPUs. They're expensive, power-hungry and loud compared with a desktop, but they can run models far too large for any single consumer GPU.

Quiet all-in-one AI boxes: unified memory

Chips with large unified memory pools give the GPU access to much more memory than a graphics card, with bandwidth between desktop and server levels:

  • AMD Ryzen AI Max+ 395 systems with up to 128 GB of shared LPDDR5X at about 256 GB/s; our Ryzen AI Max+ 395 guide covers them.
  • Apple Silicon Macs, with large unified memory and mature local AI tools.

For many people who want to run 30B to 120B-class models quietly at home, these are a better buy than a high-end desktop CPU paired with a small GPU.

Laptops

For AI laptops, the GPU or unified memory size matters most. Integrated NPUs in recent Intel, AMD and Qualcomm chips run small on-device features efficiently but can't replace a GPU for running large language models.

How Much RAM to Pair With Your CPU

For a GPU-based AI PC, 32 GB of system RAM is a sensible minimum and 64 GB is comfortable, because models are often loaded through system memory, and tools such as image generation pipelines keep parts in RAM. For CPU-only inference, system RAM is where the model lives, so you need the model's size plus room for context and the operating system: 32 GB for small models, 64 GB for mid-size ones, and 128 GB or more for 70B-class models.

Fill every memory channel your platform has, with matching modules. A desktop board running a single stick of memory has half the bandwidth of one with two, which halves CPU generation speed.

Do NPUs Matter?

Many recent laptop and desktop chips include an NPU (neural processing unit), such as those in AMD Ryzen AI, Intel Core Ultra and Qualcomm Snapdragon X chips. NPUs run small AI features efficiently, like background blur, live captions and on-device assistants, and Microsoft requires an NPU of at least 40 TOPS for Copilot+ PC features.

For running local language models, though, the NPU is rarely what matters today. Support in popular local LLM tools is still limited compared with GPUs and CPUs, and memory bandwidth limits generation speed whichever chip does the maths. Treat the NPU as a bonus, not a reason to choose a CPU.

Best CPU for AI: AMD vs Intel

  • AMD desktop and workstation chips support AVX-512, and AMD's Threadripper and EPYC lines offer the most memory channels and PCIe lanes in their classes. AMD also sells the Ryzen AI Max series with large unified memory.
  • Intel Core Ultra desktop chips include an NPU and strong single-thread performance but don't support AVX-512 on consumer desktops; Intel Xeon server CPUs include AMX matrix extensions that accelerate AI maths on the CPU.

For GPU-based AI, either brand works. For CPU-heavy inference, the platform's memory channels matter more than the brand.

A grey diamond drawn in ink at the top with three ink arrows down to three light boxes holding a grey chip, a grey graphics card shape and a wide grey memory block, with an orange dot on the corner of the memory box.
Pick the platform by how you run models: GPU, CPU-only or unified memory.

ECC Memory and Platform Choice

For a machine that trains models for days or serves a team, ECC memory, which detects and corrects memory errors, is worth considering. It's standard on workstation and server platforms. On consumer desktops, support depends on both the CPU and the motherboard, so check the board's specification page before buying ECC modules.

Common Mistakes

  • Buying the most cores for LLMs, when memory channels and bandwidth decide speed.
  • Overspending on the CPU and underspending on the GPU in a GPU-based build.
  • Too little RAM: with large models, running out of memory hurts far more than a slower CPU.
  • Ignoring PCIe lanes when planning two or more GPUs.
  • Expecting an NPU to run big models. NPUs are for small, efficient on-device tasks.
  • Mismatched memory: filling all slots or mixing kits can lower memory speed on desktop platforms; check your motherboard's supported configurations.

FAQ

What is the best CPU for AI?

For a GPU-based AI PC, a modern 8- to 16-core desktop CPU such as a Ryzen 9 9950X or Core Ultra 9 285K is more than enough. For running large models on the CPU, a platform with many memory channels, such as AMD Threadripper PRO or EPYC, is best. For quiet all-in-one systems, unified memory chips like the Ryzen AI Max+ 395 or Apple Silicon are strong choices.

Can AI run on a CPU without a GPU?

Yes. Tools such as llama.cpp and Ollama run quantized language models on CPUs. Small models are usable on a desktop; large models run slowly because the CPU's memory bandwidth limits generation speed.

How many cores do I need for local LLMs?

For GPU-based inference, 8 cores is plenty. For CPU-only inference, more cores help prompt processing, but generation speed is limited mainly by memory bandwidth, so memory channels matter more than extra cores.

Is AMD or Intel better for AI?

Both work well with a GPU. AMD offers AVX-512 on consumer chips and the most memory channels on workstation and server platforms, which helps CPU inference. Intel's Xeon server chips include AMX matrix acceleration, and its Core Ultra chips include NPUs for small on-device AI tasks.

Does the CPU matter for Stable Diffusion?

Very little. Image generation runs almost entirely on the GPU. A mid-range modern CPU is enough; spend more on GPU memory.

All articles

Read next

Language

EnglishEnglish · en TürkçeTurkish · tr DeutschGerman · de العربيةArabic · ar

Account

Enter your email. We’ll send you a sign-in link and a 6-digit code. No password needed.

Sign in

Theme

Language

Show our email address

To keep spam out of our inbox, please confirm your own email first. We will send you a 6-digit code.

We send codes only to these providers: gmail.com, googlemail.com, outlook.com, hotmail.com, live.com, msn.com, proton.me, protonmail.com, pm.me, icloud.com, me.com, mac.com, yahoo.com, aol.com, gmx.de, gmx.net, web.de, t-online.de, yandex.com, omniai.blog