Downloads · 30 days
27
3% of all-time downloads
chipcraftx-io/chipcraftx-rtlgen-7b
chipcraftx-rtlgen-7b is a text generation model from chipcraftx-io. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
The local RTL generation engine powering ChipCraftX -- an AI platform that converts natural language specifications into synthesizable Verilog.
Downloads · 30 days
27
3% of all-time downloads
All-time downloads
789
Public
Parameters
7.6B
15.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
The local RTL generation engine powering ChipCraftX -- an AI platform that converts natural language specifications into synthesizable Verilog.
chipcraftx-rtlgen-7b handles first-pass Verilog generation at zero API cost. Within the full ChipCraftX hybrid pipeline, the system achieves 98.7% functional pass rate on VerilogEval-Human (154/156).
| Model | Parameters | Pass Rate |
|---|---|---|
| VeriGen | 16B | 26.0% |
| chipcraftx-rtlgen-7b (standalone) | 7B | 36.5% |
| RTLCoder | 7B | 37.0% |
| CodeV | 7B | 53.2% |
| ChipCraftX hybrid system | 7B + Claude | 98.7% |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "ChipCraftX/chipcraftx-rtlgen-7b"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
system_prompt = """You are ChipCraft-RTL, an expert Verilog design engineer.
Generate synthesizable, lint-clean RTL that exactly matches the specification.
Rules:
- Output ONLY Verilog code (no prose, no markdown fences).
- Use reg and wire types ONLY -- NEVER use logic.
- Use always @(posedge clk) and always @(*) -- NEVER use always_ff or always_comb.
- Module name MUST be TopModule."""
spec = """Implement a module named TopModule with the following interface.
- input clk
- input reset
- output [3:0] count
The module should implement a 4-bit up counter with synchronous reset."""
messages = [
{"role": "system", "content": system_prompt},
{"role": "user", "content": spec},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=4096, temperature=0.2, do_sample=True)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
See chipcraftx-rtlgen-7b-GGUF for quantized GGUF versions compatible with Ollama and llama.cpp.
The model was fine-tuned on a proprietary dataset of 76,811 Verilog samples.
This model is designed for:
ChipCraftX is an AI-powered platform that converts natural language specifications into verified, synthesizable hardware descriptions. The platform combines local and cloud models with automated EDA validation to achieve near-perfect scores on standard RTL benchmarks.
@misc{chipcraftx-rtlgen-7b,
title={chipcraftx-rtlgen-7b: Local RTL Generation Engine for ChipCraftX},
author={Eryilmaz, Cagri},
year={2026},
publisher={HuggingFace},
url={https://huggingface.co/ChipCraftX/chipcraftx-rtlgen-7b}
}