arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.03140cs.LGcs.AIcs.CLcs.DC
收藏

FlexModel:一个用于分布式大型语言模型可解释性的框架

FlexModel: A Framework for Interpretability of Distributed Large Language Models

Vector Institute(向量研究所)

Matthew Choi, Muhammad Adil Asif, John Willes, David Emerson

AI总结:

本文提出 FlexModel 框架,通过兼容分布式库、封装 PyTorch 模型并提供可注册 HookFunctions,降低多GPU、多节点大模型内部交互门槛,以支持可解释性研究。

摘要:

随着如今包含数十亿参数的大型语言模型不断增长,其训练和部署所需的硬件前提条件也相应提高。尽管现有工具为模型并行化和分布式训练提供了便利,但对于可解释性和负责任AI技术至关重要的更深入模型交互,仍然要求具备全面的分布式计算知识。这往往阻碍了那些具备机器学习专业知识、但分布式计算背景有限的研究人员作出贡献。为应对这一挑战,我们提出 FlexModel,这是一个软件包,提供简洁接口,用于与分布在多GPU和多节点配置中的模型进行交互。该库兼容现有模型分布式库,并封装 PyTorch 模型。它公开用户可注册的 HookFunctions,以促进与分布式模型内部机制的直接交互,弥合分布式模型范式与单设备模型范式之间的差距。最重要的是,FlexModel 通过使模型交互普及化来提升可访问性,并推动大规模神经网络领域更具包容性的研究。该软件包位于 https://github.com/VectorInstitute/flex_model。

英文摘要:

With the growth of large language models, now incorporating billions of parameters, the hardware prerequisites for their training and deployment have seen a corresponding increase. Although existing tools facilitate model parallelization and distributed training, deeper model interactions, crucial for interpretability and responsible AI techniques, still demand thorough knowledge of distributed computing. This often hinders contributions from researchers with machine learning expertise but limited distributed computing background. Addressing this challenge, we present FlexModel, a software package providing a streamlined interface for engaging with models distributed across multi-GPU and multi-node configurations. The library is compatible with existing model distribution libraries and encapsulates PyTorch models. It exposes user-registerable HookFunctions to facilitate straightforward interaction with distributed model internals, bridging the gap between distributed and single-device model paradigms. Primarily, FlexModel enhances accessibility by democratizing model interactions and promotes more inclusive research in the domain of large-scale neural networks. The package is found at https://github.com/VectorInstitute/flex_model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑