October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

Running LLMs Locally on Linux: What Actually Works on a Raspberry Pi 5

Local LLM inference works on a Raspberry Pi 5 for constrained tasks, especially with compact quantized models. Here’s what reported benchmarks show and how to choose a runtime.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Yes—a Raspberry Pi 5 can run a large language model locally on Linux, but the practical experience depends on the model, quantization, memory, context length, and cooling. Compact models are the sensible starting point; an 8GB Pi 5 has also been reported running a quantized 8B model, though at roughly 2.3–2.45 generated tokens per second in one CPU benchmark. That is useful for experimentation and constrained tasks, not a substitute for a desktop GPU.

What a Raspberry Pi 5 can—and cannot—do

The Pi 5’s official specifications include a 2.4GHz quad-core 64-bit Arm Cortex-A76 CPU, LPDDR4X memory configurations from 1GB to 16GB, and a PCIe 2.0 x1 interface. Raspberry Pi OS Bookworm and Trixie support the Pi 5; older releases do not. See the Raspberry Pi 5 product page for its specifications and software notes.

As an Amazon Associate I earn from qualifying purchases.

In the reported Pi 5 examples, inference ran on the Arm CPU. A model loading successfully does not mean it will answer quickly, handle long prompts comfortably, or perform well at your intended task. Expect trade-offs: local privacy and experimentation in exchange for limited throughput and a narrower choice of practical model sizes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How much RAM do you need?

RAM is the first practical filter. Model weights are only part of the memory budget: Linux, the inference runtime, the context and its key-value cache, and any multimodal projector also take memory. A model file that appears to fit can still leave too little working room for a usable context.

#1 Best Overall
CanaKit Raspberry Pi 5 16GB Starter Kit PRO - Turbine Black (128GB Edition) (16GB RAM)
  • Includes Raspberry Pi 5 16GB with 2.4Ghz 64-bit quad-core CPU (16GB RAM)
  • Includes 128GB Micro SD Card pre-loaded with 64-bit Raspberry Pi OS, USB MicroSD Card Reader
  • CanaKit Turbine Black Case for the Raspberry Pi 5
  • CanaKit Low Noise Bearing System Fan
  • Mega Heat Sink - Black Anodized
  • Choose the Pi’s memory configuration for the whole workload. More RAM gives you room for larger weights, longer context, and system overhead; it does not make the CPU compute faster.
  • Use quantization to reduce the weight footprint. Quantized formats such as Q4_K_M can make models practical on memory-limited boards, with potential trade-offs in output quality.
  • Leave headroom. In one author-reported 8GB Pi 5 setup, Qwen3-8B Q4_K_M occupied 4.68 GiB; reported total use while serving was about 5.2GB of 7.87GB. That result is specific to the named setup, not a universal RAM requirement.

A 2025 study of 25 quantized open-source models across Raspberry Pi 4, Raspberry Pi 5, and Orange Pi 5 Pro characterized the Pi 5 as suited to small-to-mid-scale models up to 1.5B parameters under its test setup. That is a study recommendation, not a hard device limit: a separate 8GB Pi 5 report ran a quantized 8B model. The results use different models and methods, so they do not establish a single maximum. Read the 2025 single-board-computer evaluation with its test conditions in mind.

What reported speed looks like

Prompt processing and text generation are different workloads and should be reported separately. Prompt tokens per second measures how quickly the runtime processes input; generated tokens per second is a better indicator of how quickly a response appears as it is written.

Reported setup Prompt processing Generation Conditions and caveats
Qwen3-8B Q4_K_M, Pi 5 8GB, CPU llama.cpp 11.45 ± 0.12 to 11.50 ± 0.17 tokens/s 2.30 ± 0.01 to 2.45 ± 0.00 tokens/s Niko Eller’s 2026 repository report; 3.0GHz profile; llama-bench pp128/tg128 runs. Author-reported, not an independent replication. Benchmark report
Qwen3-8B Q4_K_M, Pi 5 8GB, web UI Not stated 2.15 tokens/s Same report, 2.8GHz profile; about 55°C and no observed throttling in that run. The guide suggests a 4096-token context as a sensible target for its tested 8GB system. Benchmark report

Those figures describe specific runs, not expected performance for every Pi 5. Model, quantization, context, runtime build, board memory, clock, and thermal conditions all affect results. For your own comparison, benchmark the board you will use and record prompt and generation rates separately.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
iRasptek Starter Kit for Raspberry Pi 5 16GB RAM - Pre-Loaded with 128GB Edition Pi OS (Aluminum Case)
  • iRasptek Performance Kit: Featuring a cutting-edge 16GB LPDDR4X RAM, this iRasptek Pi 5 kit offers multitasking capabilities. Ideal for projects such as AI applications, virtualization, software development, and 4K media playback. The Cortex-A76 quad-core processor with 2.4GHz clock speed ensures smooth and efficient operation.
  • Pre-installed with 64-bit the latest version OS: Just Plug & Play! The latest release OS( Bookworm) is optimized for the Pi5, offering exceptional desktop performance for work, leisure, enterprise, and beyond.
  • High power transmission: iRasptek 27W USB-C Power Supply is an ideal power supply for Pi 5, especially for users who wish to drive high-power peripherals such as hard drives and SSDs from Pi5's four Type A USB ports. Additional built-in power profiles mean iRasptek 27W USB-C Power Supply is also an excellent option for powering third-party PD-compatible products. The available profiles are 9V, 3A; 12V, 2.25A; and 15V, 1.8A, all limited to a maximum of 27W.
  • High-Quality Metal Case: metal case made of high-quality aluminum alloy, with good durability and strength, the upper cover is fixed by the screws, the base of the motherboard by four screws articulation, can effectively absorb external shocks and vibrations, provides double insurance, the case is equipped with a transparent power button, you can easily observe the status of the Pi5 power indicator.
  • iRasptek Active Cooler: The active cooler is composed of anodized heat-conducting aluminum with a PWM fan, which has excellent thermal conductivity and is able to quickly conduct heat away from the Pi5 motherboard, effectively lowering the temperature and maintaining a stable operating temperature.

Choose a runtime for your workload

Ollama for a straightforward text-first setup

A practical Pi guide presents Ollama as an approachable way to get started with text models. Begin with a compact model that fits your available memory and context needs, then assess whether its output and speed are sufficient for your actual task. Check current model and package support before following installation instructions, since compatibility changes over time. Read the practical Pi 5 guide.

llama.cpp for explicit builds and benchmarking

Direct llama.cpp is a better fit when you want control over build options, explicit benchmarking with llama-bench, or the multimodal workflows covered by the practical guide. It requires more hands-on setup than a text-first workflow. Verify that the current build and the model format you intend to use support your chosen workflow.

Do not treat one runtime comparison as a universal winner

A 2025 preprint comparing Ollama and Llamafile across several single-board computers reports workload-dependent differences. Its abstract says Llamafile achieved up to 4× higher throughput and 30–40% lower power usage than Ollama in the study. Those are the authors’ reported results across their tests, not a guarantee for a current Pi 5, model, or workload. See the study’s methods and results.

Rank #3
iRasptek Starter Kit for Raspberry Pi 5 16GB RAM - Pre-Loaded with 256GB Edition Pi OS-Bookworm (Aluminum Case)
  • Welcome to the latest generation of Pi 5: the everything computer. Featuring a 64-bit quad-core Arm Cortex-A76 processor running at 2.4GHz, RPi 5 delivers a 2–3× increase in CPU performance relative to Pi 4. Alongside a substantial uplift in graphics performance from an 800MHz VideoCore VII GPU; dual 4Kp60 display output over HD; and state-of-the-art camera support from a rearchitected RPi Image Signal Processor, it provides a smooth desktop experience for consumers, and opens the door to new applications for industrial customers.
  • Pre-installed with 64-bit RPi OS: Just Plug & Play! The latest release of Pi OS is optimized for the Pi 5, offering exceptional desktop performance for work, leisure, enterprise, and beyond.
  • iRasptek 27W USB-C Power Supply for Raspberry Pi 5: The iRasptek 27W USB-C power supply features a multi-protection design that is ideal for stabilizing the power supply and providing long-lasting durability for the Pi 5. Utilizing a high carrying capacity and high transmission UL2725 17AWG pure copper 3-core cable, it provides excellent power to the Pi 5's four Type A USB ports driving high power peripherals such as hard disks and SSDs.
  • High-Quality Metal Case: Pi 5 metal case made of high-quality aluminum alloy, with good durability and strength, the upper cover is fixed by the screws, the base of the motherboard by four screws articulation, can effectively absorb external shocks and vibrations, to the Pi 5 provides double insurance, the case is equipped with a transparent power button, you can easily observe the status of the Pi 5 power indicator.
  • iRasptek Active Cooler: The active cooler is composed of anodized heat-conducting aluminum with a PWM fan, which has excellent thermal conductivity and is able to quickly conduct heat away from the Pi 5 motherboard, effectively lowering the temperature and maintaining a stable operating temperature.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Cooling, power, and storage

Raspberry Pi says the Pi 5 performs best with active cooling and recommends its 27W USB-C power supply. For sustained inference, an Active Cooler or fan-equipped case is a sensible setup choice; the cited model benchmark also used active cooling. No fixed speed gain from adding a fan is established by these sources. See the official Pi 5 page for the manufacturer’s accessories and power guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Model files can consume substantial storage. Pi 5’s PCIe 2.0 x1 interface can be used with a separate M.2 HAT or adapter for an SSD, but extra storage does not overcome CPU throughput or RAM limits. Keep storage capacity separate from the question of whether a model fits in working memory.

A practical way to decide what to run

  1. Define the task. Decide whether you need short text answers, coding help, long-context work, or multimodal input. A model that runs may still be unsuitable for the task.
  2. Check memory fit. Account for quantized weights, the target context and KV cache, Linux and runtime overhead, and a projector if the model is multimodal. Leave room for the system rather than matching model-file size to RAM.
  3. Start with a compact model. Try a small quantized model first, then increase size only if memory and latency remain acceptable.
  4. Choose the runtime. Use Ollama for an approachable text-first route; consider direct llama.cpp when you need build control, explicit benchmarks, or a supported multimodal workflow.
  5. Measure on the actual Pi. Record model and quantization, runtime/build, context, RAM configuration, clock, and cooling. Measure prompt processing and generation separately.
  6. Decide whether the latency is usable. Test with representative prompts and answers. A short benchmark does not guarantee the same speed with longer context or a different workload.

When a Pi 5 is the wrong tool

If you need fast, sustained generation, long-context workloads, or larger models that must respond at interactive desktop speeds, the Pi 5’s CPU and memory constraints may make it a poor fit. An SSD can help store models but cannot solve those compute and RAM limits. For a local Linux experiment, home project, or constrained task where modest generation speed is acceptable, a compact quantized model is a more realistic starting point than chasing the largest model that can be made to load.

Quick Recap

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.