RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solution. Liu, S., Fang, W., Lu, Y., Zhang, Q., Zhang, H., & Xie, Z. February, 2024. arXiv:2312.08617 [cs]
Paper abstract bibtex The automatic generation of RTL code (e.g., Verilog) using natural language instructions and large language models (LLMs) has attracted significant research interest recently. However, most existing approaches heavily rely on commercial LLMs such as ChatGPT, while open-source LLMs tailored for this specific design generation task exhibit notably inferior performance. The absence of high-quality open-source solutions restricts the flexibility and data privacy of this emerging technique. In this study, we present a new customized LLM solution with a modest parameter count of only 7B, achieving better performance than GPT-3.5 on all representative benchmarks for RTL code generation. Especially, it outperforms GPT-4 in VerilogEval Machine benchmark. This remarkable balance between accuracy and efficiency is made possible by leveraging our new RTL code dataset and a customized LLM algorithm, both of which will be made fully open-source. Furthermore, we have successfully quantized our LLM to 4-bit with a total size of 4GB, enabling it to function on a single laptop with only slight performance degradation. This efficiency allows the RTL generator to serve as a local assistant for engineers, ensuring all design privacy concerns are addressed.
@misc{liu_rtlcoder_2024,
title = {{RTLCoder}: {Outperforming} {GPT}-3.5 in {Design} {RTL} {Generation} with {Our} {Open}-{Source} {Dataset} and {Lightweight} {Solution}},
shorttitle = {{RTLCoder}},
url = {http://arxiv.org/abs/2312.08617},
abstract = {The automatic generation of RTL code (e.g., Verilog) using natural language instructions and large language models (LLMs) has attracted significant research interest recently. However, most existing approaches heavily rely on commercial LLMs such as ChatGPT, while open-source LLMs tailored for this specific design generation task exhibit notably inferior performance. The absence of high-quality open-source solutions restricts the flexibility and data privacy of this emerging technique. In this study, we present a new customized LLM solution with a modest parameter count of only 7B, achieving better performance than GPT-3.5 on all representative benchmarks for RTL code generation. Especially, it outperforms GPT-4 in VerilogEval Machine benchmark. This remarkable balance between accuracy and efficiency is made possible by leveraging our new RTL code dataset and a customized LLM algorithm, both of which will be made fully open-source. Furthermore, we have successfully quantized our LLM to 4-bit with a total size of 4GB, enabling it to function on a single laptop with only slight performance degradation. This efficiency allows the RTL generator to serve as a local assistant for engineers, ensuring all design privacy concerns are addressed.},
language = {en},
urldate = {2024-05-23},
publisher = {arXiv},
author = {Liu, Shang and Fang, Wenji and Lu, Yao and Zhang, Qijun and Zhang, Hongce and Xie, Zhiyao},
month = feb,
year = {2024},
note = {arXiv:2312.08617 [cs]},
keywords = {Computer Science - Hardware Architecture, Computer Science - Programming Languages, Jab/\#Pre},
}
Downloads: 0
{"_id":"C8HXPFirBNTp76a5L","bibbaseid":"liu-fang-lu-zhang-zhang-xie-rtlcoderoutperforminggpt35indesignrtlgenerationwithouropensourcedatasetandlightweightsolution-2024","author_short":["Liu, S.","Fang, W.","Lu, Y.","Zhang, Q.","Zhang, H.","Xie, Z."],"bibdata":{"bibtype":"misc","type":"misc","title":"RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solution","shorttitle":"RTLCoder","url":"http://arxiv.org/abs/2312.08617","abstract":"The automatic generation of RTL code (e.g., Verilog) using natural language instructions and large language models (LLMs) has attracted significant research interest recently. However, most existing approaches heavily rely on commercial LLMs such as ChatGPT, while open-source LLMs tailored for this specific design generation task exhibit notably inferior performance. The absence of high-quality open-source solutions restricts the flexibility and data privacy of this emerging technique. In this study, we present a new customized LLM solution with a modest parameter count of only 7B, achieving better performance than GPT-3.5 on all representative benchmarks for RTL code generation. Especially, it outperforms GPT-4 in VerilogEval Machine benchmark. This remarkable balance between accuracy and efficiency is made possible by leveraging our new RTL code dataset and a customized LLM algorithm, both of which will be made fully open-source. Furthermore, we have successfully quantized our LLM to 4-bit with a total size of 4GB, enabling it to function on a single laptop with only slight performance degradation. This efficiency allows the RTL generator to serve as a local assistant for engineers, ensuring all design privacy concerns are addressed.","language":"en","urldate":"2024-05-23","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Liu"],"firstnames":["Shang"],"suffixes":[]},{"propositions":[],"lastnames":["Fang"],"firstnames":["Wenji"],"suffixes":[]},{"propositions":[],"lastnames":["Lu"],"firstnames":["Yao"],"suffixes":[]},{"propositions":[],"lastnames":["Zhang"],"firstnames":["Qijun"],"suffixes":[]},{"propositions":[],"lastnames":["Zhang"],"firstnames":["Hongce"],"suffixes":[]},{"propositions":[],"lastnames":["Xie"],"firstnames":["Zhiyao"],"suffixes":[]}],"month":"February","year":"2024","note":"arXiv:2312.08617 [cs]","keywords":"Computer Science - Hardware Architecture, Computer Science - Programming Languages, Jab/#Pre","bibtex":"@misc{liu_rtlcoder_2024,\n\ttitle = {{RTLCoder}: {Outperforming} {GPT}-3.5 in {Design} {RTL} {Generation} with {Our} {Open}-{Source} {Dataset} and {Lightweight} {Solution}},\n\tshorttitle = {{RTLCoder}},\n\turl = {http://arxiv.org/abs/2312.08617},\n\tabstract = {The automatic generation of RTL code (e.g., Verilog) using natural language instructions and large language models (LLMs) has attracted significant research interest recently. However, most existing approaches heavily rely on commercial LLMs such as ChatGPT, while open-source LLMs tailored for this specific design generation task exhibit notably inferior performance. The absence of high-quality open-source solutions restricts the flexibility and data privacy of this emerging technique. In this study, we present a new customized LLM solution with a modest parameter count of only 7B, achieving better performance than GPT-3.5 on all representative benchmarks for RTL code generation. Especially, it outperforms GPT-4 in VerilogEval Machine benchmark. This remarkable balance between accuracy and efficiency is made possible by leveraging our new RTL code dataset and a customized LLM algorithm, both of which will be made fully open-source. Furthermore, we have successfully quantized our LLM to 4-bit with a total size of 4GB, enabling it to function on a single laptop with only slight performance degradation. This efficiency allows the RTL generator to serve as a local assistant for engineers, ensuring all design privacy concerns are addressed.},\n\tlanguage = {en},\n\turldate = {2024-05-23},\n\tpublisher = {arXiv},\n\tauthor = {Liu, Shang and Fang, Wenji and Lu, Yao and Zhang, Qijun and Zhang, Hongce and Xie, Zhiyao},\n\tmonth = feb,\n\tyear = {2024},\n\tnote = {arXiv:2312.08617 [cs]},\n\tkeywords = {Computer Science - Hardware Architecture, Computer Science - Programming Languages, Jab/\\#Pre},\n}\n\n\n\n\n\n\n\n","author_short":["Liu, S.","Fang, W.","Lu, Y.","Zhang, Q.","Zhang, H.","Xie, Z."],"key":"liu_rtlcoder_2024","id":"liu_rtlcoder_2024","bibbaseid":"liu-fang-lu-zhang-zhang-xie-rtlcoderoutperforminggpt35indesignrtlgenerationwithouropensourcedatasetandlightweightsolution-2024","role":"author","urls":{"Paper":"http://arxiv.org/abs/2312.08617"},"keyword":["Computer Science - Hardware Architecture","Computer Science - Programming Languages","Jab/#Pre"],"metadata":{"authorlinks":{}},"downloads":0,"html":""},"bibtype":"misc","biburl":"https://bibbase.org/zotero/bxt101","dataSources":["Wsv2bQ4jPuc7qme8R"],"keywords":["computer science - hardware architecture","computer science - programming languages","jab/#pre"],"search_terms":["rtlcoder","outperforming","gpt","design","rtl","generation","open","source","dataset","lightweight","solution","liu","fang","lu","zhang","zhang","xie"],"title":"RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solution","year":2024}