[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-686338-105":59,"doc-detail-686338-en":130,"doc-similar-686338":154},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","local-llms-on-raspberry-pi","Local LLMs on Raspberry Pi","","Local LLMs on Raspberry Pi explains how to set up an offline-capable workflow for running small language models on Raspberry Pi 4 and 5 (8 GB RAM). It covers Raspberry Pi OS preparation, installing Ollama as a local inference and model-management tool, and verifying the installation. The guide then walks through running multiple tested models via Ollama commands, including Gemma3 variants, and sets up pathways for model execution and Python-based integration.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/local-llms-on-raspberry-pi/686338/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/local-llms-on-raspberry-pi/686338.png","ImageObject",300,407,{"name":92,"@type":93},"Stanford","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-17","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why run LLMs locally on a Raspberry Pi instead of using cloud or high-end GPUs?","Question",{"text":112,"@type":113},"Running locally lowers the barrier to experimenting with LLMs, enables use in remote environments without always-on internet, and helps ease privacy concerns tied to connected services.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What is Ollama and what does it provide for local LLM projects?",{"text":117,"@type":113},"Ollama is an inference engine for managing and running local LLMs, and it also includes a Python library to integrate local models into other projects.",{"name":119,"@type":110,"acceptedAnswer":120},"How do you start a Gemma3 model on Raspberry Pi using Ollama?",{"text":121,"@type":113},"Use the Ollama run command with the specific model tag, such as `ollama run gemma3:270m` or `ollama run gemma3:1b`.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},686338,1794037345,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":14,"preview_urls":145},2336477552062,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","Local LLMs on Raspberry Pi  \nCreated by Tim C  \n[https://learn.adafruit.com/local-llms-on-raspberry-pi](https://learn.adafruit.com/local-llms-on-raspberry-pi)  \nLast updated on 2025-09-18 05:46:20 PM EDT  \n©Adafruit Industries Page 1 of 18  \nTable of Contents  \nOverview 3  \n\n| • Parts\u003Cbr>Ollama | 5 |\n| --- | --- |\n| • Raspberry Pi OS Setup\u003Cbr>• Install Ollama\u003Cbr>Gemma3 | 7 |\n| • Run The Model\u003Cbr>Qwen3 | 9 |\n| • Run The Model\u003Cbr>SmolLM3 | 11 |\n| • Run The Model\u003Cbr>Python Integration | 12 |\n| • Installing ollama-python\u003Cbr>• Using ollama Python Binding\u003Cbr>BitNet | 14 |\n\n• Raspberry Pi OS Setup  \n• Build Process  \n• Run the BitNet-b1 . 58-2B-4T Model  \n• Optional Arguments  \n©Adafruit Industries Page 2 of 18  \nOverview  \nSince the release of ChatGPT in late 2022, the number of companies and groups creating and releasing large language models (LLM) and other generative artificial intelligence (AI) tools has grown rapidly. Many of these tools are made to run on high end GPUs or expensive specialized and power hungry equipment packed into server rooms across the world. However, there is also push to make smaller and more efficient models that can run on lower end hardware like smartphones and other small consumer devices.  \nThe Raspberry Pi 4 & 5 have specs comparable to mid-range consumer smartphones and run on ARM, the same processor family that many phones use. This means they get to tag along and make use of many of the models that were built for phones and other consumer devices. Being able to run on a Pi lowers the barrier to entry for experimenting with LLMs and incorporating them into projects. It also makes it possible to use their functionality disconnected from the internet in remote environments with more tight power constraints. Being able to run locally and disconnected (sometimes called \"The Edge\") helps ease some of the privacy concerns associated with always connected services.  \nThis guide will document the setup and usage of a handful of models that have been successfully tested on Raspberry Pi 4 and 5 with 8 GB RAM.  \n©Adafruit Industries Page 3 of 18  \nParts  \nRaspberry Pi 5-8 GB RAM  \nThe Raspberry Pi 5 is the newest Raspberry Pi computer, and the Pi Foundation knows you can always make a good thing better! And what could make the Pi 5 better than    \n[https://www.adafruit.com/product/5813](https://www.adafruit.com/product/5813)  \n[Raspberry Pi 4 Model B-8 GB RAM](Raspberry Pi 4 Model B-8 GB RAM)  \nThe Raspberry Pi 4 Model B is the newest Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing better! And what could make the Pi 4 better   \n[https://www.adafruit.com/product/4564](https://www.adafruit.com/product/4564)  \nOfficial Raspberry Pi 5 Active Cooler  \nThe Raspberry Pi 5 Active Cooler is compatible with the Raspberry Pi 5 and the  \n[https://www.adafruit.com/product/5815](https://www.adafruit.com/product/5815)  \n©Adafruit Industries Page 4 of 18  \nOfficial Raspberry Pi 45W USB-C Power Supply  \nIf you want a general-purpose USB Power Delivery supply, the official Raspberry Pi 45W USB-C power supply makes for a good quality PD supply that provides high current at a large...  \n[https://www.adafruit.com/product/6320](https://www.adafruit.com/product/6320)  \nOllama  \nOllama ([https://adafru.it/1arh](https://adafru.it/1arh)) is an inference engine, which is a tool for managing and running local LLMs. It also provides a Python library for interacting with local LLMs, allowing them to be integrated into projects. Ollama runs on different hardware and operating systems (OS) including Mac, Windows, and Linux.  \nOllama supports many different models ([https://adafru.it/1ari](https://adafru.it/1ari)), but the majority of them are made for running on fancy GPUs and higher powered computers than the Raspberry Pi. However, there are some that are small enough to work on the Raspberry Pi 4 and 5. This guide will document a few we've tested successfully on the Pi 4 & 5 with 8 GB of RAM.  \nRa","cbCail3t5Glxyqb0","https://ap.wps.com/l/cbCail3t5Glxyqb0","pdf",1478988,18,"English","# Overview\n# Parts\n## Raspberry Pi OS Setup\n## Install Ollama\n## Gemma3\n## Run The Model\n## Qwen3\n## SmolLM3\n## Python Integration\n## BitNet","[{\"question\":\"Why run LLMs locally on a Raspberry Pi instead of using cloud or high-end GPUs?\",\"answer\":\"Running locally lowers the barrier to experimenting with LLMs, enables use in remote environments without always-on internet, and helps ease privacy concerns tied to connected services.\"},{\"question\":\"What is Ollama and what does it provide for local LLM projects?\",\"answer\":\"Ollama is an inference engine for managing and running local LLMs, and it also includes a Python library to integrate local models into other projects.\"},{\"question\":\"How do you start a Gemma3 model on Raspberry Pi using Ollama?\",\"answer\":\"Use the Ollama run command with the specific model tag, such as `ollama run gemma3:270m` or `ollama run gemma3:1b`.\"}]","Local LLMs on Raspberry Pi | PDF",45,[146,150],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/a360d1eb8fa88fc453f598ac39979f32.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/74896872b664938cf605e32369b2a140.webp",982,1388,{"list":155,"token":66},[156,162,169,174,180,187,193,199,205,211],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":24,"category_name":30,"create_tm":161},686335,"PolyULib DS Guide - Ollama Local LLM","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000731483/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=ugm73e2eZ%2F%2BbmBWeFhZ1BO%2FvjYQ%3D","polyulib-ds-guide-ollama-local-llm",1794037342,{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":167,"category_name":30,"create_tm":168},23029,"Raspberry Pi Official Magazine Issue 163 March 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229716042395/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=9zEljwXuuyullKi%2BzGdym4uYkyU%3D","raspberry-pi-official-magazine-issue-163-march-2026",62,1777634668,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":19,"category_name":30,"create_tm":129},686337,"LAEW Quick Start Guide - Local AI Engaging Workbench","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000731520/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=BrhTesd2lWqpM7wszd9TiLop8KM%3D","laew-quick-start-guide-local-ai-engaging-workbench",{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":19,"category_name":30,"create_tm":179},720296,"Raspberry Pi Compute Module 5 - Overview - Product specification and pricing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023671548/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=fe1DCsCuW3UBrMMKCJUIscAryY4%3D","raspberry-pi-compute-module-5-overview-product-specification-and-pricing",1795036332,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":30,"create_tm":186},686336,"The Ollama Assistant Handbook - Build a Personal AI Assistant Locally - From Installation to Production Deployment","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999818282/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=C0feDnlRH68FcA8piZbTOFCtLas%3D","the-ollama-assistant-handbook-build-a-personal-ai-assistant-locally-from-installation-to-production-deployment",17,1794037344,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":34,"category_name":30,"create_tm":192},641854,"Customer Service ADVISOR Installation Instructions - Download and Installation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970695108/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=8De2nbE4l%2F3VJCNMLXYVWtJohSE%3D","customer-service-advisor-installation-instructions-download-and-installation",1792718213,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":81,"category_name":30,"create_tm":198},691566,"Raspberry Pi Compute Module 5 - System on Module Hardware Overview - Specifications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002679503/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=ri2LACKO%2F4Fvp8rq1zeqQu0MF%2Fs%3D","raspberry-pi-compute-module-5-system-on-module-hardware-overview-specifications",1794175100,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":34,"category_name":30,"create_tm":204},692443,"OpenClaw on Raspberry Pi","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003321860/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=NwZOIcIZfv1xmOKXJFd01Zz24wk%3D","openclaw-on-raspberry-pi",1794208487,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":19,"category_name":30,"create_tm":210},687540,"Windows Python Environment Install and Setup - download and install Python, then configure PyCharm","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262119/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=ZCkC3%2F27Ttda6o8vSZEJ0Qn4T4w%3D","windows-python-environment-install-and-setup-download-and-install-python-then-configure-pycharm",1794084032,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":30,"create_tm":217},19463,"Why Python?","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229709445489/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=52K4ZVNz2L4CtpqatCsj18o0U8g%3D","why-python",55,1777160583]