EXAONE 3.5 7.8B VeriReason Luna 16K NR-SFT LoRA
a Verilog code generation adapter
2 min readupdated
This release introduces a LoRA (a small fine-tuning add-on for the base model) built for the LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct model and optimized for hardware logic design tasks in Verilog. The training uses an answer-only SFT (supervised fine-tuning without reasoning blocks) approach: all chain-of-thought steps were removed from the training data, leaving only direct, correct answers. The model is designed for developers and engineers who need fast, precise HDL code generation without unnecessary fluff or reasoning steps in the output.
Key features
- Base model: Built on top of EXAONE-3.5-7.8B-Instruct using LoRA (rank 64, alpha 128).
- No reasoning: The dataset was stripped of intermediate thought blocks to output results directly.
- Training results: The adapter was selected based on the lowest validation loss at epoch 2.96 (step 2380).
- General skill retention: Shows a high retention rate of base capabilities (nearly 99% across five key benchmarks).
What you can do
- Verilog code generation: Write specifications and digital logic modules inside engineering bots or development environments.
- Pipeline integration: Connect the adapter to the base EXAONE model to automate chip design workflows.
- HDL testing: Use alongside code verification tools to automatically generate testbenches.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_id = "LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct"
base_revision = "553ea250b9a5317231459279d5847d6cf955b9aa"
adapter_id = "sbcho0325/exaone-verireason-luna16k-noreasoning-lora-sft-r100-e5-lr2e-5-seed42-20261128"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base = AutoModelForCausalLM.from_pretrained(
base_id,
revision=base_revision,
trust_remote_code=True,
torch_dtype=torch.bfloat16,
attn_implementation="eager",
)
model = PeftModel.from_pretrained(base, adapter_id)Read more
DetailsBenchmarks: Adaptation (VeriReason) — 0.566, Weighted Transfer — 0.363, Retention — 98.87%.
Training: 5 epochs, batch size 16, adamw_torch_fused optimizer with a learning rate of 2e-5.
Hardware: Trained on two A6000 GPUs.
Requirements: BF16 format support and the peft library are required.










Comments