arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.16445cs.SEcs.DCcs.LG
收藏

OMPGPT:用于OpenMP的生成式预训练Transformer模型

OMPGPT: A Generative Pre-trained Transformer Model for OpenMP

ISU(爱荷华州立大学);Intel(英特尔公司);Technion(以色列理工学院)

Le Chen, Arijit Bhattacharjee, Nesreen Ahmed, Niranjan Hasabnis, Gal Oren, Vy Vo, Ali Jannesari

AI总结:

提出领域特定模型OMPGPT,利用语言模型优势生成OpenMP pragma,并引入Chain-of-OMP提示策略提升效能,在保持较小规模的同时优于现有专用大模型,连接语言模型与HPC需求。

摘要:

大型语言模型(LLMs),如ChatGPT,已显著推进了自然语言处理(NLP)领域的发展。这一趋势催生了基于代码的大型语言模型,如StarCoder、WizardCoder和CodeLlama,这些模型在庞大的代码和编程语言库上进行了广泛训练。虽然这些代码LLM的通用能力对许多程序员在代码生成等任务中很有用,但高性能计算(HPC)领域有着更为狭窄的需求,这使得更小、更领域特定的模型成为更明智的选择。本文提出了OMPGPT,一个新颖的领域特定模型,精心设计以利用语言模型在OpenMP pragma生成方面的固有优势。此外,我们利用NLP领域的提示工程技术创建了Chain-of-OMP,这是一种旨在增强OMPGPT效能的创新策略。我们的广泛评估表明,OMPGPT在OpenMP任务上优于现有的专用大型语言模型,同时保持了显著更小的规模,更贴近HPC环境的典型硬件约束。我们认为我们的贡献是一座关键的桥梁,连接了语言模型的优势与HPC任务的具体需求。

英文摘要:

Large language models (LLMs)such as ChatGPT have significantly advanced the field of Natural Language Processing (NLP). This trend led to the development of code-based large language models such as StarCoder, WizardCoder, and CodeLlama, which are trained extensively on vast repositories of code and programming languages. While the generic abilities of these code LLMs are useful for many programmers in tasks like code generation, the area of high-performance computing (HPC) has a narrower set of requirements that make a smaller and more domain-specific model a smarter choice. This paper presents OMPGPT, a novel domain-specific model meticulously designed to harness the inherent strengths of language models for OpenMP pragma generation. Furthermore, we leverage prompt engineering techniques from the NLP domain to create Chain-of-OMP, an innovative strategy designed to enhance OMPGPT's effectiveness. Our extensive evaluations demonstrate that OMPGPT outperforms existing large language models specialized in OpenMP tasks and maintains a notably smaller size, aligning it more closely with the typical hardware constraints of HPC environments. We consider our contribution as a pivotal bridge, connecting the advantage of language models with the specific demands of HPC tasks.

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

↑