FreeSet
收藏资源简介:
FreeSet 是一个开源的 Verilog 数据集,包含超过 22 万个文件,总文本数据超过 16GB。该数据集的创建是为了解决在硬件设计中使用大型语言模型(LLM)时可能出现的版权侵犯问题。数据集的创建过程包括从 GitHub 提取开源 Verilog 文件,并使用自动化框架对每个文件进行许可证和版权关键词的检查,以确保数据集不包含受版权保护的代码。FreeSet 旨在用于对 LLM 进行微调,以生成功能性的 Verilog 代码,同时最小化版权侵犯的风险。该数据集已被用于训练 FreeV 模型,该模型在 Verilog 代码生成方面表现出色,并且版权侵犯率仅为 3%。FreeSet 的创建和应用有助于推动 LLM 在硬件设计领域的应用,同时确保版权合规。
FreeSet is an open-source Verilog dataset containing over 220,000 files with a total text data volume exceeding 16 GB. This dataset was developed to address potential copyright infringement issues when using Large Language Models (LLMs) in hardware design. The construction process of the dataset involves extracting open-source Verilog files from GitHub, and using an automated framework to inspect the license and copyright keywords of each file, so as to ensure that the dataset does not contain copyrighted code. FreeSet is intended for fine-tuning LLMs to generate functional Verilog code while minimizing the risk of copyright infringement. This dataset has been used to train the FreeV model, which exhibits excellent performance in Verilog code generation with a copyright infringement rate of only 3%. The development and application of FreeSet help promote the application of LLMs in the field of hardware design while ensuring copyright compliance.
数据集概述
基本信息
- 标题: Free and Fair Hardware: A Pathway to Copyright Infringement-Free Verilog Generation using LLMs
- 作者: Sam Bush, Matthew DeLorenzo, Phat Tieu, Jeyavijayan Rajendran
- 提交日期: 2025年5月9日
- arXiv标识符: arXiv:2505.06096v1
- DOI: 10.48550/arXiv.2505.06096
- 分类: Computer Science > Artificial Intelligence (cs.AI)
摘要
- 研究背景: 大型语言模型(LLM)在硬件设计任务(如生成功能性Verilog代码)中的能力有限,促使利用开源仓库中的硬件数据集进行微调优化。然而,这些数据集规模有限,且对重用许可的检查不足,可能导致微调后的LLM侵犯版权。
- 研究内容:
- 提出一个评估基准,用于估计Verilog训练的LLM生成受版权保护代码的风险。
- 发布开源Verilog数据集FreeSet,包含超过220k个文件,并提供自动化数据集管理框架以确保公平使用的Verilog数据。
- 执行LLM微调框架,包括持续预训练,生成针对Verilog的微调Llama模型FreeV。
- 研究成果:
- FreeV在先前工作中表现出最小的版权侵权风险,违规率仅为3%。
- 实验结果表明,FreeV在Verilog生成功能上优于基线模型,VerilogEval pass@10率提高了10%以上。
其他信息
- 会议信息: 已被DAC 2025接受。
- 全文链接:

- 1Free and Fair Hardware: A Pathway to Copyright Infringement-Free Verilog Generation using LLMs德克萨斯A&M大学,美国 · 2025年



