Porting Large Language Models to Mobile Devices for Question Answering

Hannes Fassold
4/24/2024
cs.CV

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Deploying Large Language Models (LLMs) on mobile devices makes all the capabilities of natural language processing available on the device. An important use case of LLMs is question answering, which can provide accurate and contextually relevant answers to a wide array of user queries. We describe how we managed to port state of the art LLMs to mobile devices, enabling them to operate natively on the device. We employ the llama.cpp framework, a flexible and self-contained C++ framework for LLM inference. We selected a 6-bit quantized version of the Orca-Mini-3B model with 3 billion parameters and present the correct prompt format for this model. Experimental results show that LLM inference runs in interactive speed on a Galaxy S21 smartphone and that the model delivers high-quality answers to user queries related to questions from different subjects like politics, geography or history.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fassold2024porting,
  title  = {Porting Large Language Models to Mobile Devices for Question Answering},
  author = {Hannes Fassold},
  year   = {2024},
  eprint = {2404.15851},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.15851v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.15851.svg)](https://codeofpaper.com/paper/2404.15851)

Discussion