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.
Fair Distributed Cooperative Bandit Learning on Networks for Intelligent Internet of Things Systems (Technical Report)
School of Electronics and Communication Engineering, Sun Yat-sen University(中山大学电子与通信工程学院);China Academy of Electronics and Information Technology(中国电子科技集团公司电子科学研究院)
Evaluation and Optimization of Distributed Machine Learning Techniques for Internet of Things
Data61, CSIRO(Data61 联邦科学与工业研究组织);Sungkyunkwan University(成均馆大学);Cyber Security Cooperative Research Centre(网络安全合作研究中心)
联邦学习(FL)和分裂学习(SL)是最先进的分布式机器学习技术,用于在不访问客户端或终端设备上的原始数据的情况下实现机器学习训练。然而,它们的\emph{comparative training performance}在现实世界资源受限的物联网(IoT)设备设置下,例如,Raspberry Pi几乎没有被研究过,据我们所知,它还没有被评估和比较,这给从业者带来了不便。这项工作首先提供了FL和SL在现实世界物联网环境中的经验比较,涉及(i)异构数据分布的学习性能和(ii)设备上的执行开销。我们在这项工作中的分析表明,SL的学习性能优于FL下的不平衡的数据分布,但比FL下的极端非IID数据分布差。最近,FL和SL被组合以形成分裂式学习(SFL),以利用它们的每个优点(例如,FL的并行训练和SL的轻量级设备上计算要求)。然后,这项工作考虑FL,SL和SFL,并将它们安装在Raspberry Pi设备上以评估它们的性能,包括训练时间,通信开销,功耗和内存使用。除了评估之外,我们还应用了两个优化。首先,我们通过仔细检查服务器端混合类型模型训练的可能性来推广SFL。广义SFL合并了模型训练的顺序(依赖)和并行(独立)过程,因此对于具有大规模物联网设备的系统是有益的,特别是在服务器端操作。其次,我们提出了务实的技术,大大减少了高达四倍的SL和(广义)SFL的通信开销。