Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

MNN-LLM: A Generic Inference Engine for Fast Large Language Model Deployment on Mobile Devices (2506.10443v1)

Published 12 Jun 2025 in cs.LG

Abstract: LLMs have demonstrated exceptional performance across a variety of tasks. However, their substantial scale leads to significant computational resource consumption during inference, resulting in high costs. Consequently, edge device inference presents a promising solution. The primary challenges of edge inference include memory usage and inference speed. This paper introduces MNN-LLM, a framework specifically designed to accelerate the deployment of LLMs on mobile devices. MNN-LLM addresses the runtime characteristics of LLMs through model quantization and DRAM-Flash hybrid storage, effectively reducing memory usage. It rearranges weights and inputs based on mobile CPU instruction sets and GPU characteristics while employing strategies such as multicore load balancing, mixed-precision floating-point operations, and geometric computations to enhance performance. Notably, MNN-LLM achieves up to a 8.6x speed increase compared to current mainstream LLM-specific frameworks.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Zhaode Wang (4 papers)
  2. Jingbang Yang (3 papers)
  3. Xinyu Qian (1 paper)
  4. Shiwen Xing (1 paper)
  5. Xiaotang Jiang (5 papers)
  6. Chengfei Lv (22 papers)
  7. Shengyu Zhang (160 papers)