Many NLP tasks benefit from using large language models (LLMs) that often have more than 100 billion parameters. With the release of BLOOM-176B and OPT-175B, everyone can download pretrained models of this scale. Still, using these models requires high-end hardware unavailable to many researchers. In some cases, LLMs can be used more affordably via RAM offloading or hosted APIs. However, these techniques have innate limitations: offloading is too slow for interactive inference, while APIs are not flexible enough for research. In this work, we propose Petals $-$ a system for inference and fine-tuning of large models collaboratively by joining the resources of multiple parties trusted to process client's data. We demonstrate that this strategy significantly outperforms offloading for very large models, running inference of BLOOM-176B on consumer GPUs with $\approx$ 1 step per second. Unlike most inference APIs, Petals also natively exposes the hidden states of served models, allowing its users to train and share custom model extensions based on efficient fine-tuning methods.
翻译:使用大型语言模型(LLMS)往往有1,000亿以上的参数。随着BLOOM-176B和OTP-175B的发布,每个人都可以下载这一规模的预选模型。但是,使用这些模型需要许多研究人员无法获得的高端硬件。在某些情况下,LLMS可以通过内存卸载或托管的API来更廉价地使用。然而,这些技术具有内在的局限性:卸载速度太慢,无法进行互动推断,而API也不够灵活进行研究。在这项工作中,我们建议Petals-$的系统,通过合作使用信任处理客户数据的多个当事方的资源,对大型模型进行推断和微调。我们证明,这一战略大大超过大型模型的卸载,无法用$\approx每秒1美元推断消费的GPUPUs的BLOM-176B。与大多数推断性APIs不同, Petals还以本地方式暴露了服务模型的隐藏状态,允许用户根据高效微调方法培训和分享定制的定制模型扩展。