Saved in:
Bibliographic Details
Main Authors: Li, Yilong, Liu, Jingyu, Zhang, Hao, Narayanan, M Badri, Sharma, Utkarsh, Zhang, Shuai, Hu, Pan, Zeng, Yijing, Raghuram, Jayaram, Banerjee, Suman
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.05315
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915095396745216
author Li, Yilong
Liu, Jingyu
Zhang, Hao
Narayanan, M Badri
Sharma, Utkarsh
Zhang, Shuai
Hu, Pan
Zeng, Yijing
Raghuram, Jayaram
Banerjee, Suman
author_facet Li, Yilong
Liu, Jingyu
Zhang, Hao
Narayanan, M Badri
Sharma, Utkarsh
Zhang, Shuai
Hu, Pan
Zeng, Yijing
Raghuram, Jayaram
Banerjee, Suman
contents Deploying large language models (LLMs) locally on mobile devices is advantageous in scenarios where transmitting data to remote cloud servers is either undesirable due to privacy concerns or impractical due to network connection. Recent advancements (MLC, 2023a; Gerganov, 2023) have facilitated the local deployment of LLMs. However, local deployment also presents challenges, particularly in balancing quality (generative performance), latency, and throughput within the hardware constraints of mobile devices. In this paper, we introduce our lightweight, all-in-one automated benchmarking framework that allows users to evaluate LLMs on mobile devices. We provide a comprehensive benchmark of various popular LLMs with different quantization configurations (both weights and activations) across multiple mobile platforms with varying hardware capabilities. Unlike traditional benchmarks that assess full-scale models on high-end GPU clusters, we focus on evaluating resource efficiency (memory and power consumption) and harmful output for compressed models on mobile devices. Our key observations include i) differences in energy efficiency and throughput across mobile platforms; ii) the impact of quantization on memory usage, GPU execution time, and power consumption; and iii) accuracy and performance degradation of quantized models compared to their non-quantized counterparts; and iv) the frequency of hallucinations and toxic content generated by compressed LLMs on mobile devices.
format Preprint
id arxiv_https___arxiv_org_abs_2410_05315
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PalmBench: A Comprehensive Benchmark of Compressed Large Language Models on Mobile Platforms
Li, Yilong
Liu, Jingyu
Zhang, Hao
Narayanan, M Badri
Sharma, Utkarsh
Zhang, Shuai
Hu, Pan
Zeng, Yijing
Raghuram, Jayaram
Banerjee, Suman
Machine Learning
Artificial Intelligence
Deploying large language models (LLMs) locally on mobile devices is advantageous in scenarios where transmitting data to remote cloud servers is either undesirable due to privacy concerns or impractical due to network connection. Recent advancements (MLC, 2023a; Gerganov, 2023) have facilitated the local deployment of LLMs. However, local deployment also presents challenges, particularly in balancing quality (generative performance), latency, and throughput within the hardware constraints of mobile devices. In this paper, we introduce our lightweight, all-in-one automated benchmarking framework that allows users to evaluate LLMs on mobile devices. We provide a comprehensive benchmark of various popular LLMs with different quantization configurations (both weights and activations) across multiple mobile platforms with varying hardware capabilities. Unlike traditional benchmarks that assess full-scale models on high-end GPU clusters, we focus on evaluating resource efficiency (memory and power consumption) and harmful output for compressed models on mobile devices. Our key observations include i) differences in energy efficiency and throughput across mobile platforms; ii) the impact of quantization on memory usage, GPU execution time, and power consumption; and iii) accuracy and performance degradation of quantized models compared to their non-quantized counterparts; and iv) the frequency of hallucinations and toxic content generated by compressed LLMs on mobile devices.
title PalmBench: A Comprehensive Benchmark of Compressed Large Language Models on Mobile Platforms
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2410.05315