RTL-Repo:用于评估大型RTL设计项目中大语言模型的基准
RTL-Repo: A Benchmark for Evaluating LLMs on Large-Scale RTL Design Projects
AI总结:
本文提出RTL-Repo基准,含4000余个来自GitHub的Verilog样本,评估GPT-4等模型在大型RTL项目中的代码生成能力,为硬件设计社区提供开源资源。
摘要:
大语言模型(LLMs)在协助寄存器传输级(RTL)设计任务方面已展现出潜力。然而,在准确反映真实世界RTL项目复杂性的基准方面仍存在显著差距。为解决这一问题,本文提出了RTL-Repo,一个专门用于评估大语言模型在大型RTL设计项目中表现的基准。RTL-Repo包含一个从公开GitHub仓库中提取的超过4000个Verilog代码样本的综合数据集,每个样本都提供了相应仓库的完整上下文。我们在RTL-Repo基准上评估了多种最先进的模型,包括GPT-4、GPT-3.5、Starcoder2,以及Verilog专用模型如VeriGen和RTLCoder,并比较了它们在生成复杂项目Verilog代码方面的性能。RTL-Repo基准为硬件设计社区提供了一个宝贵资源,用于评估和比较大语言模型在真实世界RTL设计场景中的表现,并训练专门针对复杂多文件RTL项目中Verilog代码生成的大语言模型。RTL-Repo是开源的,并在Github上公开可用。
英文摘要:
Large Language Models (LLMs) have demonstrated potential in assisting with Register Transfer Level (RTL) design tasks. Nevertheless, there remains to be a significant gap in benchmarks that accurately reflect the complexity of real-world RTL projects. To address this, this paper presents RTL-Repo, a benchmark specifically designed to evaluate LLMs on large-scale RTL design projects. RTL-Repo includes a comprehensive dataset of more than 4000 Verilog code samples extracted from public GitHub repositories, with each sample providing the full context of the corresponding repository. We evaluate several state-of-the-art models on the RTL-Repo benchmark, including GPT-4, GPT-3.5, Starcoder2, alongside Verilog-specific models like VeriGen and RTLCoder, and compare their performance in generating Verilog code for complex projects. The RTL-Repo benchmark provides a valuable resource for the hardware design community to assess and compare LLMs' performance in real-world RTL design scenarios and train LLMs specifically for Verilog code generation in complex, multi-file RTL projects. RTL-Repo is open-source and publicly available on Github.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。