Bringing Llama-3 to the Edge: End-to-End Quantized Conversational AI on Raspberry Pi 5
Authors:
- 12 October 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-5
Abstract
Deploying conversational AI systems on resource-constrained edge computing devices requires sophisticated optimization techniques to ensure computational efficiency without compromising performance quality. This paper presents a comprehensive study on the optimization and deployment of an end-to-end conversational AI pipeline - comprising Whisper automatic speech recognition (ASR), a 3-billion parameter Llama-3 large language model (LLM) and lightweight text-to-speech (TTS) - running entirely on a Raspberry Pi module. Multiple quantization levels are benchmarked across two inference stacks, Ollama and the lower-overhead llama.cpp. The evaluation is conducted in two phases: first, by analyzing the metrics for individual components and second, by assessing the overall pipeline. The results show that implementing a lower bit quantized version of llama.cpp within the pipeline yields significant improvements in latency and energy consumption compared to the higher bit baseline, with only a marginal reduction in coherence. Similar results are observed for the Ollama deployment. These findings demonstrate that strategic quantization and runtime optimizations facilitate the practical deployment of conversational AI systems on edge devices, maintaining high conversational quality while paving the way for locally executed, privacy-preserving AI applications.Keywords
This publication has 3 references indexed in Scilit:
- Using Ollama2025
- LLM Adoption Trends and Associated Risks2024
- A survey on large language model (LLM) security and privacy: The Good, The Bad, and The UglyHigh-Confidence Computing, 2024