# Run Llama 3 on a Raspberry Pi 5 using ExecuTorch

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/rpi-llama3/)
- [Set up the development environment](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/rpi-llama3/dev-env/)
- [Set up ExecuTorch](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/rpi-llama3/executorch/)
- [Set up Llama 3](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/rpi-llama3/llama3/)
- [Run the model on a Raspberry Pi 5](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/rpi-llama3/run/)
- [Next Steps](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/rpi-llama3/_next-steps/)

## About this Learning Path

|  |  |
| --- | --- |
| Skill level: | Introductory |
| Reading time: | 1 hr |
| Last updated: | 12 Nov 2026 |

|  |  |
| --- | --- |
| Author: | Annie Tallund , Arm<br>[GitHub](https://github.com/annietllnd)<br>[LinkedIn](https://linkedin.com/in/annietallund) |
| Arm IP: | [Cortex-A](https://support.arm.com/?tab=compute-ip&Product%20Type=Application%20Processors) |
| Tags: | [AI/ML](https://learn.arm.com/tag/ai-ml/) [Linux](https://learn.arm.com/tag/linux) [LLM](https://learn.arm.com/tag/llm) [Generative AI](https://learn.arm.com/tag/generative-ai) [Raspberry Pi](https://learn.arm.com/tag/raspberry-pi) [Hugging Face](https://learn.arm.com/tag/hugging-face) [ExecuTorch](https://learn.arm.com/tag/executorch) |

### Who is this for?
This is an introductory topic for anyone interested in running the Llama 3 model on a Raspberry Pi 5, and learning about techniques for running large language models (LLMs) in an embedded environment.

### What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Use Docker to run Raspberry Pi OS on an Arm Linux server.
- Compile a Large Language Model (LLM) using ExecuTorch.
- Deploy the Llama 3 model on an edge device.
- Describe how to run Llama 3 on a Raspberry Pi 5 using ExecuTorch.
- Describe techniques for running large language models in an embedded environment.

### Prerequisites
Before starting, you'll need the following prerequisites:
- An Arm Linux machine or an [Arm cloud instance](https://learn.arm.com/learning-paths/servers-and-cloud-computing/csp/).
- A Raspberry Pi 5.

### Summary
You’ll build and deploy Llama 3 on a Raspberry Pi 5 with ExecuTorch. First, you’ll use a Docker container running Raspberry Pi OS to create a Python environment, install dependencies, and compile a quantized model for edge execution. Then, you’ll prepare 64-bit Raspberry Pi OS, transfer the artifacts, and run prompts to verify on-device responses.
