bitfilter

Article 1.09
November 11, 2026

CPUs for AI training and inference
CPU architectures and optimizations for model training and inference since 2024: matrix units, server CPUs, the memory wall, CXL and coherent memory, quantization, lookup tables and ternary weights, sparsity, hybrid CPU and GPU systems, software stacks, the CPU as host, training and the edge, with our own measurements

A processor die seen from above: a grid of cores, a large matrix unit, and memory channels along the edges.

In this article

    A note before we start

    The accelerator took the headlines, but every AI system still runs on CPUs. They host the GPUs, tokenize the text, launch the kernels, load the data, run the agents' tools, and, on billions of laptops and phones, run the models themselves. Since 2024 the CPU has also changed more than at any time in a decade: matrix units on every major architecture, 512-bit vectors restored to x86, memory systems rebuilt around bandwidth, and coherent links that make a CPU's memory an extension of a GPU's.

    Software has changed as fast. llama.cpp and its quantization formats made local inference ordinary; lookup-table kernels and ternary models argued that CPUs can beat NPUs at low bit-widths; hybrid systems learned to keep a mixture-of-experts model's experts in CPU memory and compute them there. Research has measured where CPUs win, where they lose, and where they quietly starve the GPUs they serve.

    This article surveys that work as of November 2026: hardware, memory, kernels, hybrid systems and the CPU's role inside AI clusters. We also measured a laptop: its memory bandwidth, hand-written matrix-vector kernels at four precisions, its matrix unit, and a 9.7-billion-parameter model on its CPU and GPU.

    Part 1

    Bandwidth, matrices and the host.

    Since 2024

    Jul 2024
    T-MAC shows lookup tables beating multiplication for low-bit models on CPUs. AWS ships Graviton4.
    Sep 2024
    Intel launches Xeon 6 with AMX and MRDIMM. A paper measures over 2 TFLOPS from the Apple M4's matrix unit.
    Oct 2024
    AMD launches EPYC Turin with full 512-bit AVX-512. llama.cpp gains AMX support.
    Mar 2025
    Intel's AVX10 revision drops the 256-bit-only option.
    Oct 2025
    KTransformers at SOSP: DeepSeek-class experts computed on the CPU with AMX.
    Mar 2026
    Intel archives its PyTorch extension; the CPU path is now stock PyTorch.
    Apr 2026
    AMD and Intel publish ACE, a shared x86 matrix extension, without silicon.
    May 2026
    NVIDIA unveils Vera, a CPU pitched at agents' tools and sandboxes.
    Sep 2026
    Intel's MLPerf CPU results rise 2.4 times on the same hardware, from software alone.

    The board

    QuestionState in November 2026
    Do CPUs have matrix units?Intel AMX and Apple SME ship; ACE and RISC-V are specified or pending
    What limits CPU inference?Memory bandwidth for generation; compute for prompts
    Best memory per socketAbout 0.6–0.8 TB/s shipping; 1.2–1.6 TB/s announced
    Fewer bits, faster tokens?Yes, until unpacking becomes the bottleneck
    Can CPUs beat NPUs?At 1–2 bits with lookup tables, on some devices
    Hybrid CPU–GPU?Experts on the CPU: large prompt gains, modest generation gains
    Training on CPUs?Rare; mostly optimizer steps and expert fine-tuning
    CPU as bottleneck?Up to 7.11 times slower first tokens when under-provisioned

    Sources in Parts 2 to 13.

    Why CPUs again

    Three things brought the CPU back into AI research. The first is memory. Generating a token reads every active weight once, so its speed is set by memory bandwidth, not arithmetic; CPUs attached to large, cheap memory can hold models that do not fit on a GPU, and their bandwidth has started to grow.

    The second is the mixture of experts. A model such as DeepSeek-V3 has 671 billion parameters but uses only 37 billion per token. Most of its weights sit idle most of the time, which makes cheap CPU memory, and CPU compute on the few experts each token needs, attractive.

    The third is the system around the model. Tokenization, scheduling, data loading and, for agents, the tools and sandboxes they call all run on CPUs. As GPUs got faster, these became the bottleneck. The CPU's job in AI is less often to be a slow accelerator and more often to keep the fast ones busy.

    Part 2

    Every architecture grows a multiplier.

    Tiles on x86

    Intel's Advanced Matrix Extensions, AMX, add eight tile registers of up to 1 KB each and a unit that multiplies them. They arrived with Sapphire Rapids in 2023; Intel's product brief for Xeon 6 claims up to 2,048 operations per cycle per core in INT8 and 1,024 in BF16 or FP16, which on a two-socket system adds up to hundreds of teraflops of theoretical peak.

    Measured throughput is lower but large. The ISCA 2025 LIA paper reports AMX matrix multiplication at about 20 TFLOPS on Sapphire Rapids and 40 TFLOPS on Granite Rapids, “comparable to some recent GPUs”. The SGLang integration of KTransformers reports 21.3 TFLOPS sustained on one Xeon socket, 3.9 times PyTorch's native path.

    The roadmap keeps moving. Intel's instruction-set reference of June 2026 lists FP16 tiles on Granite Rapids and FP8 on Diamond Rapids, and records two planned AMX features removed before shipping. Matrix units have become a standard part of the x86 core, but their details are still in flux.

    Outer products on Arm

    Arm's answer is the Scalable Matrix Extension, SME, which computes outer products into a large array register. Apple's M4, in 2024, was the first shipping chip with it, and a September 2024 paper, “Hello SME!”, measured it: about 2,009 GFLOPS in FP32 on the performance cluster's unit, over 2.3 TFLOPS with the efficiency cluster's added, against 656 GFLOPS from NEON vector code on all ten cores.

    The unit is shared by a cluster of cores, not one per core, and it is FP32-centric: INT8 runs only twice as fast as FP32. Entering and leaving its streaming mode is costly, so short bursts of matrix work lose most of the gain. A December 2025 study of the M4 Pro reached up to 94% of the measured peak with its own kernels, 1.23 times Apple's Accelerate library on average for LLM shapes.

    Arm's own cores followed. Its Lumex platform of September 2025 brought SME2 to Arm-designed CPU clusters for phones, with claims of up to five times the AI performance. On Apple silicon, local LLMs still mostly run on the GPU: the CPU's matrix unit is fast at small dense work, not at streaming gigabytes of weights.

    One x86, one standard

    x86 spent the decade divided over vector width. Intel's AVX10 originally allowed processors to support only 256-bit vectors; its March 2025 revision removed “references to 256-bit maximum vector register size”, restoring 512 bits as the common target. AMD's Zen 5 had already brought full-width 512-bit datapaths, with little frequency penalty in measurement.

    In April 2026 the two companies, through the x86 Ecosystem Advisory Group, published ACE, the AI Compute Extensions: an outer-product matrix extension under the AMX framework, with native FP8 and OCP microscaling formats, claiming “a 16× compute density win over an equivalent AVX10 multiply-accumulate operation”.

    No chip implements it yet. Chips and Cheese's analysis estimates how many multiply-accumulates per cycle each design's caches could feed, but notes that “No ACE hardware implementations exist to date”. The direction is clear: one matrix interface for x86, aimed at the low-precision formats GPUs already use.

    Matrix throughput on CPUs

    SystemThroughputBasis
    2 × Xeon Max 9468, AMX BF16206.4 TFLOPStheoretical
    2 × Xeon Max 9468, AVX-512 BF1625.6 TFLOPStheoretical
    Sapphire Rapids, AMXabout 20 TFLOPSmeasured (LIA)
    Granite Rapids, AMXabout 40 TFLOPSmeasured (LIA)
    Apple M4, SME FP32, both clustersabout 2.37 TFLOPSmeasured
    Apple M4, SME INT8, performance clusterabout 4.0 TOPSmeasured
    Apple M4, NEON FP32, all 10 cores0.66 TFLOPSmeasured

    Sources: Na et al. (IISWC 2024); LIA (ISCA 2025); “Hello SME!” (2024). Theoretical peaks assume every core issues matrix instructions every cycle.

    The open ISA

    RISC-V has a ratified vector extension but no ratified matrix extension. Its standards body has task groups for an attached matrix extension aimed at AI, separate matrix registers, and an integrated one that reuses vector registers, primarily for HPC; a third, vector-matrix charter was on the agenda in February 2026.

    Server-class evidence is thin. The V-Seek project ran reasoning models on a 64-core Sophon SG2042, reaching 4.32 tokens per second on an 8B distilled model, up to 2.9 times its baseline. The gap to x86 and Arm servers is large, and most of it is in memory systems and software, not instructions.

    The fragmentation is the real story. AMX tiles, SME's array, ACE's palette and RISC-V's proposals each need their own kernels. No portable programming model covers them, and that, more than peak throughput, decides how much of the hardware software actually uses.

    Part 3

    More cores, more channels, more claims.

    Server CPUs since 2024

    CPUCoresMemory per socketAI features
    Intel Xeon 6900P (Sep 2024)up to 12812 × DDR5-6400 or MRDIMM-8800AMX BF16/INT8/FP16, AVX-512
    AMD EPYC 9005 Turin (Oct 2024)128 Zen 5 / 192 Zen 5c12 × DDR5-6000 to 6400full 512-bit AVX-512
    NVIDIA Grace (GH200, GB200)72LPDDR5X, up to 512 GB/sSVE2; 900 GB/s link to GPU
    AWS Graviton4 (Jul 2024)9612 × DDR5-5600SVE2
    AWS Graviton5 (Dec 2025)192DDR5 up to 7200Neoverse V3
    NVIDIA Vera (announced May 2026)88LPDDR5X, up to 1.2 TB/s1.8 TB/s link to GPU
    AMD EPYC Venice (announced Jul 2026)up to 25616 × MRDIMM-12800, 1.6 TB/s (claim)Zen 6

    Sources: Intel, AMD, NVIDIA and AWS announcements and documentation; StorageReview for Venice. Announced parts are claims.

    What the vendors say

    Every launch since 2024 has led with AI. Intel's Xeon 6 announcement claimed twice the AI performance of its predecessor and that 73% of GPU-accelerated servers use Xeon as their host CPU. AMD's Turin launch claimed 1.9 times the throughput on Llama 3.1 8B against the competition and offered a high-frequency part designed specifically to host GPUs.

    Arm-based CPUs entered the same contest. AWS's Graviton4 instances claim 75% more memory bandwidth than the previous generation; Graviton5 has 192 cores. NVIDIA's Vera, unveiled in May 2026, claims “1.8x faster task completion than x86 CPUs” for agentic AI, reinforcement learning and data processing, and NVIDIA explicitly targets “agent tool use and sandbox execution”.

    None of these claims comes with comparable test conditions. The marketing tells us what the vendors think matters: memory bandwidth, coupling to GPUs, and the agentic workloads that keep CPUs busy while accelerators wait.

    The only CPU in MLPerf

    Independent benchmarks barely cover CPUs. Intel says that in MLPerf Inference v6.1 “Intel Xeon remains the only standalone server CPU represented” among submissions, and its results are instructive: on Llama 3.1 8B in the server scenario, a Xeon 6980P went from 471.54 to 1,139.51 tokens per second between rounds, 2.4 times, on the same hardware.

    That jump is the general lesson of CPU inference since 2024. Most of the gains came from software: kernels that use AMX, quantized formats, better threading and memory placement. The hardware changed slowly; the code that runs on it changed fast.

    The absence of AMD, Arm and Grace submissions means vendor claims cannot be compared independently. For CPU inference, the field relies on academic characterizations and on its own measurements.

    Part 4

    Arithmetic is cheap; bytes are not.

    Bound by bandwidth

    Generating one token with a dense model performs about two arithmetic operations per weight, and in BF16 each weight is two bytes: about one operation per byte read. A two-socket Xeon Max can do 206.4 trillion BF16 operations per second against 588 GB/s of HBM bandwidth, a ratio of about 350 operations per byte. Generation therefore uses well under 1% of the matrix units, a point the roofline survey of LLM inference makes for all hardware.

    Prompt processing is different: each weight read is reused across hundreds or thousands of prompt tokens, so it is compute-bound, and matrix units pay off there. Every CPU study since 2024 shows the same asymmetry. Prefill gains of 6 to 20 times are common; decode gains rarely exceed 2 to 4.

    So the decisive specification of a CPU for generation is its memory bandwidth, and the most effective software technique is reading fewer bytes per token: quantization, sparsity, mixture-of-experts routing. The matrix unit matters for prompts, batches and training.

    Peak memory bandwidth per CPU socket in GB/s (vertical, 0 to 1,600). Filled bars, shipping: AMD EPYC 9005 at DDR5-6000 (576), Apple M4 Max (546), Graviton4 (537.6, derived), Grace (512), Xeon 6900P with MRDIMM-8800 (844.8, derived), Xeon Max HBM (588, measured table value). Outlined bars, announced: NVIDIA Vera (1,200) and AMD EPYC Venice (1,600).

    Peak memory bandwidth per CPU socket in GB/s (vertical, 0 to 1,600). Filled bars, shipping: AMD EPYC 9005 at DDR5-6000 (576), Apple M4 Max (546), Graviton4 (537.6, derived), Grace (512), Xeon 6900P with MRDIMM-8800 (844.8, derived), Xeon Max HBM (588, measured table value). Outlined bars, announced: NVIDIA Vera (1,200) and AMD EPYC Venice (1,600).

    HBM on a CPU

    The cleanest experiment came from Intel's Xeon Max, which put 64 GB of HBM on each CPU package. Na and colleagues' IISWC 2024 study measured LLM inference on two of them against Ice Lake servers: 3.2 to 6.3 times the token throughput, with prefill gains coming from AMX and decode gains, in their words, made possible “by the higher memory bandwidth provided by HBM.”

    Against GPUs the result split cleanly by model size. For models that fit in GPU memory, the GPU won: on OPT-13B an H100 delivered 3.7 times the CPU's throughput. For models that did not fit, OPT-66B and Llama 2 70B, “the CPU outperforms GPUs in both latency and throughput”, because the GPUs had to stream weights over PCIe.

    Memory configuration mattered too: splitting each socket into four NUMA domains made inference slower. HBM on CPUs was not continued in the roadmaps that followed; the industry chose wider DDR channels and multiplexed DIMMs instead.

    Wider channels

    Multiplexed-rank DIMMs, MRDIMMs, put a buffer on the module that interleaves two ranks, doubling the transfer rate of a standard channel. Xeon 6 supports MRDIMM-8800 on twelve channels, about 845 GB/s per socket by arithmetic, and Intel claims more than 25% more bandwidth than ordinary DIMMs. AMD's Venice is announced with sixteen channels of MRDIMM-12800 and a claimed 1.6 TB/s per socket.

    Arm designs took the other route, soldered LPDDR5X. NVIDIA's Grace reaches up to 512 GB/s per CPU and Vera a claimed 1.2 TB/s. Apple's laptops sit in the same range: the M4 Max has up to 546 GB/s of unified memory, and Apple says the M3 Ultra, with over 800 GB/s and up to 512 GB, can run models with over 600 billion parameters.

    A simple bound follows. A 70-billion-parameter model at four bits is about 35 GB, so a socket with 600 GB/s cannot generate more than about 17 tokens per second for one user, whatever its cores. Batching more users raises total throughput, but not that ceiling.

    Part 5

    Memory that is neither local nor remote.

    Memory over CXL

    Compute Express Link lets a server attach memory over PCIe-class links, with coherence. For AI it offers capacity: room for KV caches, embedding tables and offloaded weights. A NeurIPS 2024 workshop paper found that CXL-attached memory “performs comparably to CPU-GPU interconnect” for moving KV cache, allowing 30% larger batches than recomputing it.

    Bandwidth is the catch. A 2024 guide to coherent heterogeneous systems measured pinned copies to a GPU at 51.7 GiB/s from ordinary DIMMs and 18.4 GiB/s from a CXL expander, and vLLM serving a 70B model with weights offloaded at 66.72 tokens per second from DIMMs, 25.0 from CXL, and 795.03 on a GH200 with its coherent link.

    Research responds by moving compute to the memory. TRACE compresses weights and KV cache losslessly inside the CXL device; CENT, at ASPLOS 2025, built a GPU-free system of CXL memory with processing-in-memory and reports 2.3 times the throughput and 5.2 times the tokens per dollar of GPUs at similar power.

    Coherent superchips

    NVIDIA's Grace–Hopper and Grace–Blackwell superchips join a CPU and GPU with NVLink-C2C, “a 900 GB/s, memory-coherent interconnect that delivers 7x the bandwidth of PCIe Gen 5”, as NVIDIA's engineering blog describes it. A Llama 3 70B model in FP16 does not fit in a GH200's 96 GB of GPU memory, but runs when it spills into the CPU's 480 GB.

    Software designed for PCIe wastes this. SuperOffload re-examined training offload for superchips and reports up to 2.5 times the throughput of existing offloading systems, 25-billion-parameter training on one superchip, and an Adam optimizer written for Grace's vector units running over three times faster than PyTorch's CPU version.

    Researchers at ETH Zürich and CSCS characterized data movement on GH200 nodes of the Alps supercomputer and found placement across CPU memory, GPU memory and neighboring superchips matters a great deal. Coherence makes CPU memory addressable; it does not make it equal.

    Part 6

    The fastest byte is the one not read.

    A format a month

    Local inference on CPUs in 2024–2026 mostly meant llama.cpp and its ggml library, directly or through tools built on them such as Ollama. Its development history, written in pull requests, is the most detailed public record of what makes CPUs fast for language models. The 2023 k-quants offered 2- to 6-bit formats; in January 2024 “SOTA 2-bit quants” added a true 2-bit format at 2.0625 bits per weight.

    The result was a plain demonstration of the bandwidth law: on a Ryzen 5975WX, a 7B model generated 24.3 tokens per second at 2 bits against 15.4 at 4 bits. The IQ4_XS format gave smaller gains, 15.8 against 14.5 tokens per second on a Ryzen 7950X, and its author noted that CPU performance for a 3-bit variant was “pretty bad”: codebook formats save bytes but cost instructions to decode.

    That trade-off, bytes against instructions, runs through all CPU quantization. Below about four bits, unpacking the weights can cost more time than reading them, and a format that wins on a bandwidth-starved laptop can lose on a server with bandwidth to spare.

    Fewer bytes, faster tokens

    CPUFormat (bits per weight)Tokens/sQ4_0 tokens/s
    Ryzen 5975WXIQ2_XXS (2.06)24.315.4
    Ryzen 7950X, AVX2IQ4_XS (4.25)15.814.5
    M2 Max CPU, NEONIQ4_XS (4.25)28.828.2

    Generation speed for a 7B LLaMA model in llama.cpp, from the pull requests that introduced each format (2024).

    Layout is speed

    How weights are arranged in memory matters as much as how many bits they use. Arm engineers' 2024 kernels interleaved 4-bit blocks so that dot-product and matrix-multiply instructions could consume them directly; on AWS Graviton3 they reported 2.5 times faster prompt processing and twice the generation speed.

    At first these layouts needed special file types. In late 2024 llama.cpp began repacking weights at load time: the same file, rearranged in memory for the CPU it runs on. On Graviton3 with a 3B model, prompt processing went from 38.03 to 110.84 tokens per second and generation from 16.95 to 39.42. A later refactoring removed the special file types entirely.

    llama.cpp now builds variants of its CPU backend for different instruction sets and picks the best at runtime. AMX support arrived in October 2024 and Arm's KleidiAI kernels, with SME paths, in February 2025. The format on disk has become independent of the format in the core.

    What bits cost

    Quantization is not free. An Intel and Hugging Face guide reports word perplexity for Llama 3.1 8B of 7.3366 in FP32, 7.3463 at 8 bits and 7.8288 at 4 bits: eight bits are nearly lossless, four are measurably worse.

    Whether a bigger model at fewer bits beats a smaller one at more is an empirical question, and a 2025 evaluation of on-device models found a threshold: “Heavily quantized large models consistently outperform smaller, high-precision models”, down to about 3.5 effective bits per weight.

    Energy does not follow bytes simply. A 2026 study on phones found that importance-aware quantization yields “negligible energy savings” over standard methods. The cheapest model in bytes is not always the cheapest in joules, because unpacking and re-reading also cost energy.

    Part 7

    Replacing multiplication with memory.

    Tables instead of multipliers

    When weights have only one to four bits, there are few possible weight patterns, and their products with the activations can be precomputed. Microsoft Research's T-MAC (EuroSys 2025) does exactly this: it builds small tables of activation partial sums and indexes them with weight bits, so a matrix-vector product becomes a series of lookups with no dequantization, and the cost falls linearly with the bit-width.

    It reports “up to 4x increase in throughput and 70% reduction in energy consumption compared to llama.cpp”, and a 3B ternary model at 30 tokens per second on one core of an M2 Ultra and 11 on a Raspberry Pi 5.

    Lookup tables work best one token at a time. Its successor, Vec-LUT, found that scalar lookups “underutilize memory bandwidth” when many tokens are processed together, and reorganized them across tokens, reporting up to 4.2 times over the best baselines and that with lookup-table inference “CPUs run these ultra-low-bit LLMs even faster than NPUs”.

    CPU against NPU and GPU, Llama 2 7B

    DeviceBitsT-MAC on CPUllama.cpp CPUNPUGPU
    Surface Laptop 7 (Snapdragon X Elite)231.839.39––
    Surface Laptop 7421.6310.6410.40–
    OnePlus 12216.626.95–1.72
    Jetson AGX Orin215.627.08–20.03
    Jetson Orin NX211.413.20–7.94

    Tokens per second, from the T-MAC paper (EuroSys 2025). On AGX Orin, energy per token was 2.12 J with llama.cpp on the CPU, 0.66 J with T-MAC and 1.54 J on the GPU.

    One and a half bits

    Microsoft's BitNet line goes further: models trained from the start with ternary weights, −1, 0 or 1, about 1.58 bits each. The 2024 paper that introduced BitNet b1.58 argued such models could match full precision; BitNet b1.58 2B4T, released in April 2025, is billed as the first open-source native 1-bit model at the 2-billion-parameter scale, trained on 4 trillion tokens.

    Its CPU runtime, bitnet.cpp, claims speedups of 2.37 to 6.17 times on x86 and 1.37 to 5.07 times on Arm over full-precision llama.cpp, and its repository claims it can run a 100-billion-parameter BitNet model on a single CPU at 5–7 tokens per second. No such model has been released; the figure is a kernel projection, and a claim.

    The bottleneck is the supply of models, not kernels. Ternary networks must be trained as such, and the largest released is small. Intel Labs' 2026 work on denser ternary layouts gains up to 1.18 times in decode on CPUs simply by storing fewer bits per weight: even at 1.58 bits, bytes still decide.

    Part 8

    Skip the neurons that do nothing.

    Hot and cold neurons

    In many networks most neurons in a layer produce near-zero outputs for any given token, and which ones fire is predictable. PowerInfer (SOSP 2024) exploits this by keeping frequently active “hot” neurons on a GPU and computing the cold ones on the CPU, reporting up to 11.69 times llama.cpp's speed on a consumer GPU. PowerInfer-2 brought the idea to phones, serving a 47B model at 11.68 tokens per second.

    Modern activation functions are less naturally sparse. Turbo Sparse retrained models with a new activation so that only 2.5 to 4.3 billion parameters are active per token, while the training-free TEAL (ICLR 2025) reaches 40–50% sparsity by thresholding activations by magnitude.

    Apple's LLM in a flash used the same predictability to run models twice the size of DRAM by loading only the needed rows from flash storage, reporting 4–5 times faster inference on CPU than naive loading.

    Models built for CPUs

    The newest step is to design the model for the processor rather than the reverse. SmallThinker (2025) is a family of models trained for local deployment: fine-grained experts and sparse feed-forward layers to read fewer weights, a router placed before attention so experts can be fetched from storage in advance, and a hybrid positional scheme to shrink the KV cache. Its authors report both models above 20 tokens per second on ordinary consumer CPUs, with 1 GB and 8 GB of memory.

    Intel Labs' SparAMX shows the same thinking on servers: unstructured weight sparsity combined with AMX kernels cut end-to-end latency by 1.42 times against stock PyTorch on Sapphire Rapids.

    The pattern across this section is that CPUs reward models that read few bytes per token, and the cheapest way to read few bytes is to train for it. Mixture-of-experts models, which activate a small fraction of their weights by design, are the most widely deployed example.

    Part 9

    Experts in DRAM, attention on the GPU.

    Experts on the CPU

    A mixture-of-experts model has a natural split. Attention and shared layers run for every token and are compute-heavy: put them on the GPU. The routed experts are huge in total but each token uses a few: keep them in cheap CPU memory and compute them there, instead of copying them across PCIe. Fiddler (ICLR 2025) showed the idea; llama.cpp added an option in April 2025 whose canonical use is “to force the experts in MoE models to stay on the CPU”.

    The KTransformers project of Tsinghua University's KVCache.AI team and Approaching AI (SOSP 2025) built a full system around it, with AMX kernels for the experts and asynchronous scheduling between CPU and GPU, and reports 4.62 to 19.74 times faster prefill and 1.25 to 4.09 times faster decode than existing systems. Its SGLang integration ran DeepSeek-R1 on eight L20 GPUs plus Xeon CPUs, and found NUMA-aware parallelism worth up to 63% more decode throughput.

    The asymmetry is the familiar one: prompts benefit enormously from the CPU's matrix units, generation only modestly, because it is bound by memory bandwidth. HybriMoE, MoE-Lightning and TriMoE, which adds near-memory processing for the coldest experts, refine where each expert should live.

    Hybrid systems, as reported

    SystemPrompt speed-upGeneration speed-up
    KTransformers (SOSP 2025)4.62–19.74×1.25–4.09×
    SGLang CPU backend vs llama.cpp6–14× (first token)2–4× (per token)
    HybriMoE (DAC 2025), average1.33×1.70×
    Fiddler (ICLR 2025)1.30× (long prompts)1.26× (one request)

    Each against its own baselines and hardware; not directly comparable.

    Attention on the CPU

    Long contexts move the problem to the KV cache. NEO offloads part of attention and its cache to the host CPU, reporting up to 7.5 times higher throughput on a T4 GPU but only 14% on an H100: the weaker the GPU, the more the CPU helps. FastDecode runs KV-cache attention on CPUs across nodes.

    Others approximate. MagicPIG samples which cached tokens to attend to using locality-sensitive hashing on the CPU, and RetroInfer treats the cache as a vector index in CPU memory, reporting 12.2 times over sparse-attention baselines at a million tokens.

    The ISCA 2025 LIA system combines both directions with an H100, AMX on Sapphire or Granite Rapids, and CXL memory, reporting up to 19 times lower latency than single-GPU offloading on Granite Rapids. The common lesson is that CPU memory is a tier of the GPU's memory hierarchy now, and CPU cores are the cheapest compute next to it.

    Part 10

    Kernels, compilers and a retirement.

    A server CPU serving DeepSeek

    In July 2025 Intel's PyTorch team described a CPU backend for SGLang on two Xeon 6980P sockets with MRDIMMs. Serving DeepSeek-R1, all 671 billion parameters in INT8, at one request with 1,024 tokens in and out, time to first token fell from 24.5 seconds with llama.cpp to 1.9 seconds, and time per output token from 172 ms to 68 ms, about 15 tokens per second.

    The INT8 mixture-of-experts kernel reached “85% memory bandwidth efficiency”, about 1.45 TB/s effective across both sockets. That is the ceiling: once kernels use 85% of the memory bandwidth, generation can only get faster by reading fewer bytes.

    PyTorch itself now does much of this work. PyTorch 2.8 compiles quantized LLM layers on Xeon into template GEMM kernels using AMX and AVX-512, and claims performance that “can reach the same level or even better in some cases” than vLLM on a single node.

    SGLang against llama.cpp on two Xeon 6980P

    ModelFirst token, llama.cppFirst token, SGLangPer token, llama.cppPer token, SGLang
    DeepSeek-R1 671B, INT824,547 ms1,885 ms172 ms68 ms
    Qwen3-235B-A22B, INT816,806 ms1,164 ms215 ms52 ms
    DeepSeek-R1-Distill-Llama-70B, INT820,307 ms2,638 ms195 ms77 ms
    Llama 3.2 3B, BF16, one socket1,660 ms268 ms55 ms17 ms

    One request, 1,024 input and 1,024 output tokens. Intel PyTorch team, LMSYS blog, July 2025; vendor measurements.

    Consolidation

    The CPU software stack consolidated in 2025–26. Intel ended active development of its separate PyTorch extension after release 2.8 and archived the repository on March 30, 2026, with most features upstreamed: the Intel CPU path is now stock PyTorch, its compiler and its quantization library. A 2026 paper describes INT8 inference for small models built entirely on that native stack.

    On Arm, KleidiAI is a library of micro-kernels that Arm integrates into other frameworks rather than a framework itself: llama.cpp, XNNPACK, ONNX Runtime and ExecuTorch, where it became the default in 2025. On a Galaxy S24+, the PyTorch team reported quantized Llama 3.2 1B at over 350 tokens per second for prompts and over 40 for generation.

    Two philosophies of tuning coexist. PyTorch's compiler searches candidate kernels at compile time; llama.cpp chooses its backend by CPU feature at load time and repacks weights to match. Both aim at the same targets, AMX tiles, SME arrays, vector dot products, and the same hardware is now reached by half a dozen independent kernel libraries.

    Part 11

    When the slow part is not the accelerator.

    Starving the accelerator

    A 2026 study of multi-GPU LLM serving puts the problem plainly: “multi-GPU performance often degrades not because GPUs are saturated, but because CPUs fail to keep them busy.” Delayed kernel launches, stalled communication and slow tokenization all come from too few CPU cores, and adequate provisioning cut time to first token by 1.47 to 7.11 times.

    Training pipelines show the same. The Lotus characterization of data preprocessing (IISWC 2024) found the main training process waiting more than 500 ms for 30.84–100% of batches in MLPerf pipelines, longer than the GPU's own time per batch. Meta's SPDL replaced PyTorch's data loader with a thread pool and reports 74% faster iteration with 38% less CPU.

    Even NVIDIA's coupled superchips are affected: an ISPASS 2025 study found that GH200 “remains CPU-bound up to 4x larger batch sizes” than PCIe systems because of how its CPU launches kernels. As accelerators speed up, the host's share of every step grows.

    Tools, sandboxes and rewards

    Agents and reinforcement learning added a new CPU workload: running the code, browsers and tools the model calls. A CPU-centric analysis of agentic workloads found tool processing on the CPU taking “up to 88% of the end-to-end latency”. DeepSeek describes a sandbox platform serving about three million sandboxes a day, with over 380,000 running at once.

    Training agents makes sandboxes part of the training loop. An AMD and LMSYS report on training coding agents found the inference engines using at most 23% of their KV cache: “the limit was sandbox concurrency, not GPUs”, and 3.1% of trajectories failed for infrastructure reasons and scored zero. Nebius cut batch collection time by 66.9% with changes that included giving sandboxes and model servers separate CPU cores.

    This is the workload NVIDIA's Vera and Microsoft's Cobalt 200 are marketed for, and the one for which the right number of CPU cores per GPU is least understood. An infrastructure error in a sandbox is not just lost time: it is a wrong reward.

    Part 12

    Rare, slow, and occasionally sensible.

    An honest finding

    There is little serious 2024–26 work on training language models on CPUs. llama.cpp removed its old training examples in July 2024 as no longer working and restored training in May 2025, noting that “CPU training seems to work”: one epoch over a small benchmark took about a minute for a tiny model and about 20 hours and 100 GB of memory for Llama 3 8B.

    The serious uses are partial. ZeRO-Offload and its successors run the optimizer on the CPU while the GPU computes gradients; SuperOffload's Grace-optimized Adam is the 2025 version. KTransformers added fine-tuning that keeps a mixture-of-experts model's experts on the CPU and claims six to twelve times the speed of ZeRO-Offload on its benchmarks, without peer-reviewed numbers yet.

    The sparse-training line of research that promised CPU-native training around 2020 has gone quiet. Training is compute-bound and batched, the regime where GPUs' advantage is largest; CPUs earn their place in training by holding state and running the parts that do not fit.

    Part 13

    Small devices, contested measurements.

    In your pocket

    A 2024 study of LLMs on commercial phones and tablets measured the CPU's place on small devices. Apple's M1 CPU generated about 10 tokens per second, while phones with older Arm cores managed only 2 to 4. On a Xiaomi tablet, Llama 2 7B decoded at 4.51 tokens per second on the CPU and 7.33 on the GPU, which also used half the energy per token.

    Contention is severe on phones. With eight threads and an object-detection app running in the background, decode speed “collapses by more than 90%”, and the small efficiency cores often hurt rather than help. Our own laptop measurements in Part 14 show a similar collapse when every core is used.

    On phones the trend is to hand prompts to NPUs and GPUs, as in HeteroInfer, while lookup-table work argues the CPU wins for ultra-low-bit generation. Both may be right: they optimize different phases.

    Joules per token

    Rigorous CPU-against-GPU energy comparisons are rare. The T-MAC paper's measurements on a Jetson board, 0.66 J per token for its CPU kernels against 1.54 J for the GPU, are among the few with matched models. A profiling study across deployment frameworks finds “substantial disparities” in energy for the same model.

    Many headline claims rest on weak methods: assumed system power, nominal GPU power, mismatched batch sizes. A GPU at batch one wastes most of its power; a GPU serving hundreds of users is far more efficient per token than any CPU. Comparisons that do not state batch size, power boundary and software stack are not comparisons.

    What is clear is that energy follows bytes moved more than operations performed. The most energy-efficient CPU inference reads few bytes per token, uses few cores well, and avoids repeated unpacking, which is also what makes it fast.

    Part 14

    One laptop, four precisions, one model.

    What we measured

    We measured an Apple M4 laptop chip: four performance cores, six efficiency cores, 24 GB of unified memory with a nominal 120 GB/s, and an SME matrix unit. First, memory bandwidth: summing a 1 GiB array with 1 to 10 threads. Second, the core operation of generating a token: multiplying a 16,384 × 8,192 weight matrix, 134 million parameters, by a vector, with kernels we wrote in C with NEON instructions, at four precisions: FP32, FP16, and 8- and 4-bit integers with per-block scales, the last two using the CPU's integer dot-product instruction as llama.cpp does.

    Third, the matrix unit: multiplying an 8,192 × 8,192 FP32 matrix by batches of 1 to 2,048 vectors through Apple's Accelerate library, which uses the SME unit. Fourth, a real model: a 9.7-billion-parameter model quantized to about 4.5 bits (Q4_K_M), run through Ollama with a 440-token prompt and up to 96 generated tokens, on the GPU and on the CPU with 1 to 10 threads, two runs each.

    These are measurements of one machine, not of CPUs in general, but they show each of the effects this article describes in a few minutes of compute.

    Time for one matrix-vector product with 134 million weights (vertical, 0 to 9 ms) against threads (horizontal, 1 to 10). Squares: FP32 (537 MB of weights). Rings: FP16 (268 MB). Dots: 8-bit (151 MB). Dashed with dots: 4-bit (84 MB). With enough threads every format runs at about 100–110 GB/s, so its time is set by its size.

    Time for one matrix-vector product with 134 million weights (vertical, 0 to 9 ms) against threads (horizontal, 1 to 10). Squares: FP32 (537 MB of weights). Rings: FP16 (268 MB). Dots: 8-bit (151 MB). Dashed with dots: 4-bit (84 MB). With enough threads every format runs at about 100–110 GB/s, so its time is set by its size.

    Bytes decide

    One thread read memory at 67 GB/s and ten at 110 GB/s, close to the chip's nominal 120. The matrix-vector kernels converge on that roof: with ten threads, FP32 took 5.04 ms at 106 GB/s, FP16 2.58 ms, 8-bit 1.49 ms and 4-bit 0.85 ms at 99 GB/s. Time fell almost exactly with bytes: the 4-bit kernel was 5.9 times faster than FP32 for 6.4 times fewer bytes.

    With one thread the story changes. The 4-bit kernel took 3.60 ms, slower than the 8-bit kernel's 3.46 ms, and read memory at only 23 GB/s: one core cannot unpack half-bytes fast enough to keep up with memory. This is the bytes-against-instructions trade-off of Part 6 in miniature. Low-bit formats pay off only when there is enough compute to unpack them.

    Accuracy fell as bytes did. Against an exact reference, the relative error of the output was 2.2e-04 for FP16, 5.3e-03 for 8-bit and 6.9e-02 for 4-bit with our simple per-block rounding. Formats such as llama.cpp's k-quants and i-quants exist to lower that last number without adding bytes.

    One matrix-vector product

    FormatWeights1 thread10 threadsGB/s at 10Relative error
    FP32537 MB8.34 ms5.04 ms1064.0e-07
    FP16268 MB7.85 ms2.58 ms1042.2e-04
    INT8151 MB3.46 ms1.49 ms1025.3e-03
    INT484 MB3.60 ms0.85 ms996.9e-02

    16,384 × 8,192 weights, Apple M4. INT8 and INT4 include their per-block scales and use 8-bit activations.

    Throughput of an 8,192 × 8,192 FP32 matrix multiplied by a batch of vectors through Accelerate (vertical, logarithmic, 20 to 2,000 GFLOP/s) against batch size (horizontal, logarithmic, 1 to 2,048). Dots: measured. Dashed line: perfect scaling from batch 1, the memory-bound regime. The curve bends where the computation stops being limited by reading the matrix.

    Throughput of an 8,192 × 8,192 FP32 matrix multiplied by a batch of vectors through Accelerate (vertical, logarithmic, 20 to 2,000 GFLOP/s) against batch size (horizontal, logarithmic, 1 to 2,048). Dots: measured. Dashed line: perfect scaling from batch 1, the memory-bound regime. The curve bends where the computation stops being limited by reading the matrix.

    The matrix unit needs a batch

    At batch size one, the multiplication ran at 35 GFLOP/s, bound by reading the 256 MB matrix. Doubling the batch nearly doubled throughput, up to 561 GFLOP/s at 32 vectors; it reached 1,627 GFLOP/s at 1,024, 47 times the single-vector rate, about 81% of the 2,009 GFLOPS the “Hello SME!” paper measured for the M4's matrix unit.

    Put differently, the cost per vector fell from 3.88 ms to 0.082 ms. That is the whole economics of serving: one user's token costs as much as dozens of users' tokens, because the weights are read once for all of them. A CPU serving a single user wastes its matrix unit; a CPU processing a long prompt or a large batch uses it.

    It also explains the asymmetry in every hybrid system of Part 9: prompts are batches of tokens and gain from matrix units; generation for one user is a batch of one and gains only from bandwidth.

    Generation speed of a 9.7-billion-parameter model at about 4.5 bits (vertical, 0 to 16 tokens per second) against CPU threads (horizontal: 1, 2, 4, 6 and 10). Dots: CPU. Dashed line: the same model on the chip's GPU, 15.4 tokens per second. With all ten cores the CPU collapses to 0.3 tokens per second.

    Generation speed of a 9.7-billion-parameter model at about 4.5 bits (vertical, 0 to 16 tokens per second) against CPU threads (horizontal: 1, 2, 4, 6 and 10). Dots: CPU. Dashed line: the same model on the chip's GPU, 15.4 tokens per second. With all ten cores the CPU collapses to 0.3 tokens per second.

    A real model

    On the GPU the model generated 15.4 tokens per second and processed the prompt at 138 tokens per second. Its weights are about 6 GB, so generation read memory at roughly 90 GB/s, near the roof we measured. On the CPU, one thread generated 5.3 tokens per second, two 7.9, four 9.0, and six 7.8; prompt processing rose from 13 to 38 tokens per second.

    With all ten cores, generation collapsed to 0.27 tokens per second, slower than one thread by a factor of about twenty, in two separate runs. Our reading is that synchronized threads that must all finish each step before any continues are only as fast as the slowest, and with every core busy, the six efficiency cores and the system's own work make some thread slow at every step. It is the straggler problem of thousand-GPU training jobs, on one chip.

    The GPU was 1.7 times faster than the best CPU setting for generation and 3.6 times for prompts, on the same memory. Generation, bound by bandwidth, narrows the gap; prompts, bound by compute, widen it. Both are the patterns the literature reports, measured in about twenty minutes on one laptop.

    The same model, CPU and GPU

    SettingPrompt, tokens/sGeneration, tokens/s
    GPU13815.4
    CPU, 1 thread135.3
    CPU, 2 threads227.9
    CPU, 4 threads319.0
    CPU, 6 threads387.8
    CPU, 10 threads220.27

    9.7-billion-parameter model at Q4_K_M through Ollama 0.30 on an Apple M4 (4 performance and 6 efficiency cores). 440-token prompt; averages of two runs.

    Part 15

    Twelve problems for general-purpose processors.

    Hardware

    1. Fragmented matrix units
    AMX, SME, ACE and RISC-V proposals each need their own kernels; no portable model covers them.
    2. Compute outruns bandwidth
    Matrix units sit hundreds of operations per byte above what generation can use.
    3. Bandwidth per socket
    MRDIMM and LPDDR5X reach 1.2–1.6 TB/s in announcements; pins, power and cost limit what follows.
    4. CXL
    Capacity is cheap, bandwidth is not; compression and near-memory compute are still research.
    5. Shared matrix units
    SME units shared by clusters and mode-switch costs complicate mixed workloads.
    6. ACE without silicon
    A 16-fold density claim with no chip to measure.

    Software and systems

    7. Prompts and generation
    Large prompt gains, small generation gains: software is near the bandwidth roof.
    8. Lookup tables under batching
    Kernels that win at one token lose at many; one family for both is unsolved.
    9. Expert placement
    Hot, warm and cold experts shift with traffic; no principled placement policy.
    10. Threads and stragglers
    Efficiency cores, background work and NUMA can collapse throughput; scheduling is manual.
    11. CPUs per GPU
    Agentic serving and RL rollouts need CPU cores nobody has sized.
    12. Fair benchmarks
    Only Intel submits CPU results to MLPerf; energy comparisons rarely state batch and boundary.

    Assessment

    The CPU did not become an AI accelerator in 2024–26, and it did not need to. It became three other things: a memory-rich processor that can hold models GPUs cannot and generate from them at the speed its memory allows; a capable matrix machine for prompts and small batches; and the host whose cores, memory and latency decide how busy the accelerators are.

    The most important technical fact is unchanged by any of the new instructions: generating a token reads the model, so bandwidth sets the speed. Every effective technique of the period, low-bit formats, repacked layouts, lookup tables, sparsity, mixture-of-experts offloading, works by reading fewer bytes or by moving reads to where memory is cheapest. Our own measurements on a laptop reproduced the law closely.

    The open frontier is co-design. Models trained to be sparse or ternary, CPUs with matrix units in the formats GPUs use, memory systems built for bandwidth rather than latency, and schedulers that treat CPU cores as part of the AI system rather than overhead. Whether the general-purpose processor stays general is the question the next generation of chips will answer.

    Closing

    Glossary

    AMX
    Intel's matrix extension: tile registers and a matrix-multiply unit.
    SME / SME2
    Arm's Scalable Matrix Extension: outer products into an array register.
    ACE
    AI Compute Extensions: a shared x86 matrix extension, specified in 2026.
    AVX-512 / AVX10
    x86 vector instructions on 512-bit registers.
    MRDIMM
    A memory module that multiplexes two ranks to double its transfer rate.
    CXL
    Compute Express Link: coherent memory attached over a PCIe-class link.
    Prefill / decode
    Processing the prompt / generating tokens one at a time.
    Roofline
    Performance bounded by either compute or memory bandwidth, whichever binds.
    Quantization
    Storing weights in fewer bits.
    Repacking
    Rearranging weights in memory to suit a processor's instructions.

    Reading list: hardware

    Matrix units
    Hello SME!. SME for GEMM. ACE whitepaper. AVX10
    Memory
    LLM inference on CPUs. Coherent systems guide. CENT. SuperOffload
    The host
    CPU-induced slowdowns. Agentic AI on CPUs. GH200 characterization

    Reading list: software

    Kernels
    T-MAC. Vec-LUT. bitnet.cpp. SparAMX
    Hybrid systems
    KTransformers. Fiddler. NEO. PowerInfer
    Devices
    LLMs in your pocket. On-device quantization. SmallThinker

    Colophon

    Article
    bitfilter 1.09, November 11, 2026.
    Editors
    Aleksandar Bradic
    Research
    Written for this article from the papers, vendor documents, pull requests and engineering posts linked throughout. arXiv identifiers were checked against arXiv and DOIs against Crossref; other pages were fetched directly. Vendor performance figures are reported as claims.
    Data
    Bandwidth, kernel, batching and model measurements on an Apple M4 (cpu25.py and cpu25bench.c, in the article's source).
    Next
    All articles