Distributed Inference and Fine-tuning of Large Language Models Over The Internet
Not on the map. Why?
Abstract (arXiv)
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 - a decentralized system that runs Llama 2 (70B) and BLOOM (176B) over the Internet up to 10x faster than offloading for interactive generation. We evaluate the performance of our system in simulated conditions and a real-world setup spanning two continents.
Key facts. Cited by 42 papers in the map (data through 7 Oct 2026). Builds on 41 of its 61 references that are in the map. First posted on arXiv 13 Dec 2023.
Builds on
41 of 61 references.
References · 41
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
29 more
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 890
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2022Galactica: A Large Language Model for Sciencecited by 736
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
- 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
- 20218-bit Optimizers via Block-wise Quantizationcited by 395
- 2020Parameter-Efficient Transfer Learning with Diff Pruningcited by 351
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 339
- 2021Symbolic Knowledge Distillation: from General Language Models to Commonsense Modelscited by 270
- 2014One weird trick for parallelizing convolutional neural networkscited by 264
- 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 253
- 2021Training Neural Networks with Fixed Sparse Maskscited by 212
- 2021Generating Datasets with Pretrained Language Modelscited by 192
- 2018Beyond Data and Model Parallelism for Deep Neural Networkscited by 177
- 2018Mesh-TensorFlow: Deep Learning for Supercomputerscited by 168
- 2018Demystifying Parallel and Distributed Deep Learning: An In-Depth Concurrency Analysiscited by 154
- 2021PanGu-α: Large-scale Autoregressive Pretrained Chinese Language Models with Auto-parallel Computationcited by 134
- 2022Decentralized Training of Foundation Models in Heterogeneous Environmentscited by 87
- 2021What Changes Can Large-scale Language Models Bring? Intensive Study on HyperCLOVA: Billions-scale Korean Generative Pretrained Transformerscited by 75
- 2023SWARM Parallelism: Training Large Models Can Be Surprisingly Communication-Efficientcited by 58
- 2019PipeMare: Asynchronous Pipeline Parallel DNN Trainingcited by 54
- 2020Training Large Neural Networks with Constant Memory using a New Execution Algorithmcited by 34
- 2022Fine-tuning Language Models over Slow Networks using Activation Compression with Guaranteescited by 29
- 2022Adapting BigScience Multilingual Model to Unseen Languagescited by 6
- 2022Bamboo Trimming Revisited: Simple Algorithms Can Do Well Toocited by 1
Built on by
Citing papers per year: 2023: 1; 2024: 14; 2025: 17; 2026: 10.
42 papers.
Sort:
By area:
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Surveycited by 125
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
- 2024Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flowcited by 54
- 2024VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Bankscited by 52
- 2024The Future of Large Language Model Pre-training is Federatedcited by 30
- 2024textttMiniMol: A Parameter-Efficient Foundation Model for Molecular Learningcited by 19
- 2025Taming the Titans: A Survey of Efficient LLM Inference Servingcited by 16
- 2025SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMscited by 10
- 2025EdgeLoRA: An Efficient Multi-Tenant LLM Serving System on Edge Devicescited by 10
- 2024TPI-LLM: Serving 70B-scale LLMs Efficiently on Low-resource Edge Devicescited by 9
- 2024HLAT: High-quality Large Language Model Pre-trained on AWS Trainiumcited by 7
- 2024LocalValueBench: A Collaboratively Built and Extensible Benchmark for Evaluating Localized Value Alignment and Ethical Safety in Large Language Modelscited by 7
30 more
- 2025HydraOpt: Navigating the Efficiency-Performance Trade-off of Adapter Mergingcited by 6
- 2024AnyMatch -- Efficient Zero-Shot Entity Matching with a Small Language Modelcited by 5
- 2024Is Your AI Truly Yours? Leveraging Blockchain for Copyrights, Provenance, and Lineagecited by 4
- 2024Deploying Foundation Model Powered Agent Services: A Surveycited by 4
- 2025gLLM: Global Balanced Pipeline Parallelism System for Distributed LLM Serving with Token Throttlingcited by 4
- 2025Efficient Compositional Multi-tasking for On-device Large Language Modelscited by 4
- 2026Decoupled DiLoCo for Resilient Distributed Pre-trainingcited by 4
- 2024Recognizing Emotion Regulation Strategies from Human Behavior with Large Language Modelscited by 3
- 2025K-Merge: Online Continual Merging of Adapters for On-device Large Language Modelscited by 3
- 2024Meta-Learning for Speeding Up Large Model Inference in Decentralized Environmentscited by 2
- 2025TAH-QUANT: Effective Activation Quantization in Pipeline Parallelism over Slow Networkcited by 2
- 2025DICE: Data Influence Cascade in Decentralized Learningcited by 2
- 2025On-device System of Compositional Multi-tasking in Large Language Modelscited by 2
- 2025CG-TTRL: Context-Guided Test-Time Reinforcement Learning for On-Device Large Language Modelscited by 1
- 2025Easy Adaptation: An Efficient Task-Specific Knowledge Injection Method for Large Models in Resource-Constrained Environmentscited by 1
- 2026Inference-Time Scaling for Visual AutoRegressive modeling by Searching Representative Samplescited by 1
- 2026DebiasRAG: A Tuning-Free Path to Fair Generation in Large Language Models through Retrieval-Augmented Generationcited by 1
- 2026Beyond Scaling: Agents Are Heading to the Edgecited by 1
- 2024Photon: Federated LLM Pre-Trainingcited by 0
- 2025Can Generative AI be Egalitarian?cited by 0
- 2025Zero-Shot Learning for Obsolescence Risk Forecastingcited by 0
- 2025MoLink: Distributed and Efficient Serving Framework for Large Modelscited by 0
- 2025Meta-Learning for Speeding Up Large Model Inference in Decentralized Environmentscited by 0
- 2025Optimizing Resource Allocation for Geographically-Distributed Inference by Large Language Modelscited by 0
- 2026Clustering-driven Memory Compression for On-device Large Language Modelscited by 0
- 2026Integrity of peer-to-peer distributed LLM inference under malicious nodescited by 0
- 2026ExaServe: Large-Scale LLM Serving on Exascale HPC Systemscited by 0
- 2026OpWeave: Flexible Operator Disaggregation for Heterogeneous LLM Servingcited by 0
- 2026Co-occurrence Patterns of LoRA Adapters in Production Diffusion Model Inference Servicescited by 0
- 2026GenomeOcean Anywhere: Private WebGPU Inference for Genome MoEscited by 0
- 2026GenomeOcean Anywhere: Private WebGPU Inference for Genome MoEs27 Sep 2026
- 2026Co-occurrence Patterns of LoRA Adapters in Production Diffusion Model Inference Services20 Sep 2026
- 2026OpWeave: Flexible Operator Disaggregation for Heterogeneous LLM Serving13 Sep 2026
- 2026ExaServe: Large-Scale LLM Serving on Exascale HPC Systems9 Sep 2026
- 2026Integrity of peer-to-peer distributed LLM inference under malicious nodes21 Jul 2026
- 2026Beyond Scaling: Agents Are Heading to the Edge18 May 2026
- 2026DebiasRAG: A Tuning-Free Path to Fair Generation in Large Language Models through Retrieval-Augmented Generation15 May 2026
- 2026Decoupled DiLoCo for Resilient Distributed Pre-training23 Apr 2026
- 2026Clustering-driven Memory Compression for On-device Large Language Models24 Jan 2026
- 2026Inference-Time Scaling for Visual AutoRegressive modeling by Searching Representative Samples12 Jan 2026
- 2025Optimizing Resource Allocation for Geographically-Distributed Inference by Large Language Models26 Dec 2025
- 2025Easy Adaptation: An Efficient Task-Specific Knowledge Injection Method for Large Models in Resource-Constrained Environments19 Dec 2025
30 more
- 2025CG-TTRL: Context-Guided Test-Time Reinforcement Learning for On-Device Large Language Models9 Nov 2025
- 2025K-Merge: Online Continual Merging of Adapters for On-device Large Language Models15 Oct 2025
- 2025On-device System of Compositional Multi-tasking in Large Language Models11 Oct 2025
- 2025Meta-Learning for Speeding Up Large Model Inference in Decentralized Environments8 Aug 2025
- 2025HydraOpt: Navigating the Efficiency-Performance Trade-off of Adapter Merging23 Jul 2025
- 2025Efficient Compositional Multi-tasking for On-device Large Language Models21 Jul 2025
- 2025DICE: Data Influence Cascade in Decentralized Learning9 Jul 2025
- 2025MoLink: Distributed and Efficient Serving Framework for Large Models7 Jul 2025
- 2025EdgeLoRA: An Efficient Multi-Tenant LLM Serving System on Edge Devices2 Jul 2025
- 2025Zero-Shot Learning for Obsolescence Risk Forecasting26 Jun 2025
- 2025TAH-QUANT: Effective Activation Quantization in Pipeline Parallelism over Slow Network2 Jun 2025
- 2025SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMs16 May 2025
- 2025Taming the Titans: A Survey of Efficient LLM Inference Serving28 Apr 2025
- 2025gLLM: Global Balanced Pipeline Parallelism System for Distributed LLM Serving with Token Throttling21 Apr 2025
- 2025Can Generative AI be Egalitarian?20 Jan 2025
- 2024Deploying Foundation Model Powered Agent Services: A Survey18 Dec 2024
- 2024Photon: Federated LLM Pre-Training5 Nov 2024
- 2024Meta-Learning for Speeding Up Large Model Inference in Decentralized Environments28 Oct 2024
- 2024TPI-LLM: Serving 70B-scale LLMs Efficiently on Low-resource Edge Devices1 Oct 2024
- 2024AnyMatch -- Efficient Zero-Shot Entity Matching with a Small Language Model6 Sep 2024
- 2024Recognizing Emotion Regulation Strategies from Human Behavior with Large Language Models8 Aug 2024
- 2024LocalValueBench: A Collaboratively Built and Extensible Benchmark for Evaluating Localized Value Alignment and Ethical Safety in Large Language Models27 Jul 2024
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Survey9 Jul 2024
- 2024Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flow3 Jun 2024
- 2024VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Banks24 May 2024
- 2024The Future of Large Language Model Pre-training is Federated17 May 2024
- 2024textttMiniMol: A Parameter-Efficient Foundation Model for Molecular Learning23 Apr 2024
- 2024HLAT: High-quality Large Language Model Pre-trained on AWS Trainium16 Apr 2024
- 2024Is Your AI Truly Yours? Leveraging Blockchain for Copyrights, Provenance, and Lineage9 Apr 2024
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems23 Dec 2023
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
- 2025Taming the Titans: A Survey of Efficient LLM Inference Servingcited by 16
- 2025SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMscited by 10
- 2025EdgeLoRA: An Efficient Multi-Tenant LLM Serving System on Edge Devicescited by 10
- 2025gLLM: Global Balanced Pipeline Parallelism System for Distributed LLM Serving with Token Throttlingcited by 4
- 2024Meta-Learning for Speeding Up Large Model Inference in Decentralized Environmentscited by 2
- 2025MoLink: Distributed and Efficient Serving Framework for Large Modelscited by 0
- 2025Meta-Learning for Speeding Up Large Model Inference in Decentralized Environmentscited by 0
- 2026ExaServe: Large-Scale LLM Serving on Exascale HPC Systemscited by 0
- 2026ExaServe: Large-Scale LLM Serving on Exascale HPC Systems9 Sep 2026
- 2025Meta-Learning for Speeding Up Large Model Inference in Decentralized Environments8 Aug 2025
- 2025MoLink: Distributed and Efficient Serving Framework for Large Models7 Jul 2025
- 2025EdgeLoRA: An Efficient Multi-Tenant LLM Serving System on Edge Devices2 Jul 2025
- 2025SpecEdge: Scalable Edge-Assisted Serving Framework for Interactive LLMs16 May 2025
- 2025Taming the Titans: A Survey of Efficient LLM Inference Serving28 Apr 2025
- 2025gLLM: Global Balanced Pipeline Parallelism System for Distributed LLM Serving with Token Throttling21 Apr 2025
- 2024Meta-Learning for Speeding Up Large Model Inference in Decentralized Environments28 Oct 2024
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems23 Dec 2023
- 2024Deploying Foundation Model Powered Agent Services: A Surveycited by 4
- 2026Beyond Scaling: Agents Are Heading to the Edgecited by 1
- 2026Beyond Scaling: Agents Are Heading to the Edge18 May 2026
- 2024Deploying Foundation Model Powered Agent Services: A Survey18 Dec 2024
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Surveycited by 125
- 2024Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flowcited by 54
- 2024VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Bankscited by 52
- 2024The Future of Large Language Model Pre-training is Federatedcited by 30
- 2024textttMiniMol: A Parameter-Efficient Foundation Model for Molecular Learningcited by 19
- 2024TPI-LLM: Serving 70B-scale LLMs Efficiently on Low-resource Edge Devicescited by 9
- 2024HLAT: High-quality Large Language Model Pre-trained on AWS Trainiumcited by 7
- 2024LocalValueBench: A Collaboratively Built and Extensible Benchmark for Evaluating Localized Value Alignment and Ethical Safety in Large Language Modelscited by 7
- 2025HydraOpt: Navigating the Efficiency-Performance Trade-off of Adapter Mergingcited by 6
- 2024AnyMatch -- Efficient Zero-Shot Entity Matching with a Small Language Modelcited by 5
- 2024Is Your AI Truly Yours? Leveraging Blockchain for Copyrights, Provenance, and Lineagecited by 4
- 2025Efficient Compositional Multi-tasking for On-device Large Language Modelscited by 4
12 most cited of 26 All 26 (JSON)
- 2026Integrity of peer-to-peer distributed LLM inference under malicious nodes21 Jul 2026
- 2026Decoupled DiLoCo for Resilient Distributed Pre-training23 Apr 2026
- 2026Clustering-driven Memory Compression for On-device Large Language Models24 Jan 2026
- 2025Optimizing Resource Allocation for Geographically-Distributed Inference by Large Language Models26 Dec 2025
- 2025Easy Adaptation: An Efficient Task-Specific Knowledge Injection Method for Large Models in Resource-Constrained Environments19 Dec 2025
- 2025CG-TTRL: Context-Guided Test-Time Reinforcement Learning for On-Device Large Language Models9 Nov 2025
- 2025K-Merge: Online Continual Merging of Adapters for On-device Large Language Models15 Oct 2025
- 2025On-device System of Compositional Multi-tasking in Large Language Models11 Oct 2025
- 2025HydraOpt: Navigating the Efficiency-Performance Trade-off of Adapter Merging23 Jul 2025
- 2025Efficient Compositional Multi-tasking for On-device Large Language Models21 Jul 2025
- 2025DICE: Data Influence Cascade in Decentralized Learning9 Jul 2025
- 2025Zero-Shot Learning for Obsolescence Risk Forecasting26 Jun 2025
12 newest of 26 All 26 (JSON)