arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.18423cs.LGcs.AI
收藏

HDL-GPT:高质量HDL是你所需的一切

HDL-GPT: High-Quality HDL is All You Need

Synopsys Inc.(新思科技公司)

Bhuvnesh Kumar, Saurav Nanda, Ganapathy Parthasarathy, Pawan Patil, Austin Tsai, Parivesh Choudhary

AI总结:

提出HDL-GPT,通过开源HDL代码的精选、过滤与增强训练大型代码模型,在多项HDL任务上比SOTA模型提升50%至200%,开辟了电路设计模型训练新途径。

摘要:

本文提出了硬件描述语言生成式预训练Transformer(HDL-GPT),这是一种利用开源高级定义语言(HDL)代码的庞大资源库来训练卓越质量大型代码模型的新颖方法。本文的核心前提是这样一个假设:高质量HDL是你所需的一切,足以创建具有卓越性能和广泛零样本泛化能力的模型。本文阐述了从开源HDL代码中进行大型语料库的整理与增强所采用的方法,通过精心的提示和上下文维护,将质量高度参差不齐的数据转化为高质量数据。我们证明,对跨HDL的数据进行精心选择、过滤和增强,能够产生超越当前最先进模型的强大模型。我们还探讨了不同微调方法对结果质量的影响。我们描述了在一系列微调的SOTA LLM上的实验结果,证实了我们的主张。在当前基准测试中,在HDL电路解释、代码生成、形式化与仿真测试平台创建、缺陷分类及修复等任务上,我们展示出比SOTA HDL模型提升了50%至200%的改进。HDL-GPT为面向电路设计任务的先进模型训练技术开发开辟了新途径。

英文摘要:

This paper presents Hardware Description Language Generative Pre-trained Transformers (HDL-GPT), a novel approach that leverages the vast repository of open-source High Definition Language (HDL) codes to train superior quality large code models. The core premise of this paper is the hypothesis that high-quality HDL is all you need to create models with exceptional performance and broad zero-shot generalization abilities. The paper elucidates the methods employed for the curation and augmentation of large corpora from open-source HDL code, transforming highly variable quality data into high-quality data through careful prompting and context maintenance. We demonstrate that the careful selection, filtering, and augmentation of data across HDLs can yield powerful models that surpass current state-of-the-art models. We also explore the impact of different fine-tuning methods on the quality of results. We describe experimental results across a range of fine-tuned SOTA LLMs, substantiating our claims. We demonstrate improvements of 50% to 200% over SOTA HDL models on current benchmarks in tasks ranging from HDL circuit explanations, code generation, formal and simulation testbench creation, triaging bugs, and fixing them. HDL-GPT opens new avenues for the development of advanced model training techniques for circuit design tasks.

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

↑