Lune

NeurIPS2023Top-tier venue

Distributed Inference and Fine-tuning of Large Language Models Over The Internet

Alexander Borzunov, Max Ryabinin, Artem Chumachenko, Dmitry Baranchuk, Tim Dettmers, Younes Belkada, Pavel Samygin, Colin A. Raffel

Abstract

Large language models (LLMs) are useful in many NLP tasks and become more capable with size, with the best open-source models having over 50 billion parameters. However, using these 50B+ models requires high-end hardware, making them inaccessible to most researchers. In this work, we investigate methods for cost-efficient inference and fine-tuning of LLMs, comparing local and distributed strategies. We observe that a large enough model (50B+) can run efficiently even on geodistributed devices in a consumer-grade network. This could allow running LLM efficiently by pooling together idle compute resources of multiple research groups and volunteers. We address two open problems: (1) how to perform inference and fine-tuning reliably if any device can disconnect abruptly and (2) how to partition LLMs between devices with uneven hardware, joining and leaving at will. In order to do that, we develop special fault-tolerant inference algorithms and load-balancing protocols that automatically assign devices to maximize the total system throughput. We showcase these algorithms in PETALS 1 -a decentralized system that runs Llama 2 (70B) and BLOOM (176B) over the Internet up to 10× faster than offloading for interactive generation. We evaluate the performance of our system in simulated conditions and a real-world setup spanning two continents.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

15 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Banks cites Language Models are Few-Shot Learners
  • VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Banks cites Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning
  • Training Neural Networks with Fixed Sparse Masks cites Language Models are Few-Shot Learners
  • Thinking Forward: Memory-Efficient Federated Finetuning of Language Models cites Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning
  • 8-bit Optimizers via Block-wise Quantization cites Language Models are Few-Shot Learners
  • Language Models are Few-Shot Learners cites The Curious Case of Neural Text Degeneration
  • Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flow cites Language Models are Few-Shot Learners
  • Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning cites Training Neural Networks with Fixed Sparse Masks
  • Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning cites Language Models are Few-Shot Learners
  • SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMs cites Language Models are Few-Shot Learners
  • SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMs cites Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flow
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers15

  1. Federated Full-Parameter Tuning of Billion-Sized Language Models with Communication Cost under 18 KilobytesZhen Qin, Daoyuan Chen, Bingchen Qian, Bolin Ding et al.ICML 2024 · 73 citations
  2. VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector BanksYang Li, Shaobo Han, Shihao JiNeurIPS 2024 · 61 citations
  3. Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-FlowYixuan Mei, Yonghao Zhuang, Xupeng Miao, Juncheng Yang et al.ASPLOS 2025 · 33 citations
  4. SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMsJinwoo Park, Seunggeun Cho, Dongsu HanNeurIPS 2025 · 20 citations
  5. Thinking Forward: Memory-Efficient Federated Finetuning of Language ModelsKunjal Panchal, Nisarg Parikh, Sunav Choudhary, Lijun Zhang et al.NeurIPS 2024 · 11 citations

Builds on14

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
  3. Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context LearningHaokun Liu, Derek Tam, Mohammed Muqeeth, Jay Mohta et al.NeurIPS 2022 · 1,483 citations
  4. 8-bit Optimizers via Block-wise QuantizationTim Dettmers, Mike Lewis, Sam Shleifer, Luke ZettlemoyerICLR 2022 · 457 citations
  5. Training Neural Networks with Fixed Sparse MasksYi-Lin Sung, Varun Nair, Colin RaffelNeurIPS 2021 · 295 citations

Related papers

  1. HexGen-2: Disaggregated Generative Inference of LLMs in Heterogeneous EnvironmentYouhe Jiang, Ran Yan, Binhang YuanICLR 2025
  2. MAPLE: Multilingual Evaluation of Parameter Efficient Finetuning of Large Language ModelsDivyanshu Aggarwal, Ashutosh Sathe, Ishaan Watts, Sunayana SitaramACL Findings 2024 · 6 citations
  3. SpecExec: Massively Parallel Speculative Decoding For Interactive LLM Inference on Consumer DevicesRuslan Svirschevski, Avner May, Zhuoming Chen, Beidi Chen et al.NeurIPS 2024 · 70 citations
  4. Confidant: Customizing Transformer-based LLMs via Collaborative Training on Mobile DevicesYuhao Chen, Yuxuan Yan, Shuowei Ge, Yuyang Qin et al.MobiCom 2025 · 4 citations
  5. DLoRA: Distributed Parameter-Efficient Fine-Tuning Solution for Large Language ModelChao Gao, Sai Qian ZhangEMNLP Findings 2024 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines