paper-with-me

Papers

TPI-LLM: Serving 70B-scale LLMs Efficiently on Low-resource Edge Devices

2024-10-01 · Zonghang Li, Wenjiao Feng, Mohsen Guizani, Hongfang Yu

Large model inference is shifting from cloud to edge due to concerns about the privacy of user interaction data. However, edge devices often struggle with limited computing power, memory, and bandwidth, requiring collaboration across multiple devices to run and speed up LLM inference. Pipeline parallelism, the mainstream solution, is inefficient for single-user scenarios, while tensor parallelism struggles with frequent communications. In this paper, we argue that tensor parallelism can be more effective than pipeline on low-resource devices, and present a compute- and memory-efficient tensor parallel inference system, named TPI-LLM, to serve 70B-scale models. TPI-LLM keeps sensitive raw data local in the users' devices and introduces a sliding window memory scheduler to dynamically manage layer weights during inference, with disk I/O latency overlapped with the computation and communication. This allows larger models to run smoothly on memory-limited devices. We analyze the communication bottleneck and find that link latency, not bandwidth, emerges as the main issue, so a star-based allreduce algorithm is implemented. Through extensive experiments on both emulated and real testbeds, TPI-LLM demonstrated over 80% less time-to-first-token and token latency compared to Accelerate, and over 90% compared to Transformers and Galaxy, while cutting the peak memory footprint of Llama 2-70B by 90%, requiring only 3.1 GB of memory for 70B-scale models.

📄 PDF Abstract BibTeX arXiv:2410.00531

Code (1)

lizonghang/tpi-llm 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…
SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

EchoLM: Accelerating LLM Serving with Real-time Knowledge Distillation

2025-01-22 · Yifan Yu, Yu Gan, Lillian Tsai, Nikhil Sarda 외

Large language models (LLMs) have excelled in various applications, yet serving them at scale is challenging due to their substantial resource demands and high latency. Our real-world studies reveal that over 60% of user…

Knowledge DistillationResponse GenerationTransfer Learning

EdgeLoRA: An Efficient Multi-Tenant LLM Serving System on Edge Devices

2025-07-02 · Zheyu Shen, Yexiao He, Ziyao Wang, Yuning Zhang 외 arxiv

Large Language Models (LLMs) have gained significant attention due to their versatility across a wide array of applications. Fine-tuning LLMs with parameter-efficient adapters, such as Low-Rank Adaptation (LoRA), enables…

BayLing 2: A Multilingual Large Language Model with Efficient Language Alignment

2024-11-25 · Shaolei Zhang, Kehao Zhang, Qingkai Fang, Shoutao Guo 외

Large language models (LLMs), with their powerful generative capabilities and vast knowledge, empower various tasks in everyday life. However, these abilities are primarily concentrated in high-resource languages, leavin…

Language ModelingLanguage ModellingLarge Language ModelTransfer Learning

SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMs

2025-05-16 · Jinwoo Park, Seunggeun Cho, Dongsu Han

Large language models (LLMs) power many modern applications, but serving them at scale remains costly and resource-intensive. Current server-centric systems overlook consumer-grade GPUs at the edge. We introduce SpecEdge…

Scheduling

Efficiently Democratizing Medical LLMs for 50 Languages via a Mixture of Language Family Experts

2024-10-14 · Guorui Zheng, Xidong Wang, Juhao Liang, Nuo Chen 외

Adapting medical Large Language Models to local languages can reduce barriers to accessing healthcare services, but data scarcity remains a significant challenge, particularly for low-resource languages. To address this,…

Mixture-of-Experts