Downloads · 30 days
5
9% of all-time downloads
fairchild-repair/qwen2.5-coder-7b-fairchild-v5
qwen2.5-coder-7b-fairchild-v5 is a text generation model from fairchild-repair. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as cc-by-nc-4.0.
A LoRA adapter for Qwen/Qwen2.5-Coder-7B-Instruct specialized for Verilog / SystemVerilog RTL tasks: spec→RTL generation, lint/error repair, and error explanation. Trained as part of the EvalChip/Fairchild project.
Downloads · 30 days
5
9% of all-time downloads
All-time downloads
53
Public
Repo size
173 MB
Likes
0
Public
Click a slice to open those files.
.safetensors162 MB · 93%
From the Hugging Face model README
A LoRA adapter for Qwen/Qwen2.5-Coder-7B-Instruct specialized for Verilog / SystemVerilog RTL tasks: spec→RTL generation, lint/error repair, and error explanation. Trained as part of the EvalChip/Fairchild project.
This is an adapter only — the base model is not redistributed here. PEFT, vLLM, and
transformers load it on top of the base via base_model_name_or_path in
adapter_config.json.
| Metric | Value |
|---|---|
| eval_loss | 0.2486 |
| token accuracy | 0.926 |
(Held-out 300-example validation split. For reference, the project's run-1 adapter scored eval_loss 0.3117 and an earlier v5 attempt 0.277.)
q/k/v/o_proj + gate/up/down_proj.assistant_only_loss, packing=False.attn_implementation="eager" was required to avoid a
bf16 attention-backward NaN on H100.from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = "Qwen/Qwen2.5-Coder-7B-Instruct"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, torch_dtype="bfloat16", device_map="auto")
model = PeftModel.from_pretrained(model, "rishr/qwen2.5-coder-7b-fairchild-v5")
Serve with vLLM as a hot-swappable LoRA module:
vllm serve Qwen/Qwen2.5-Coder-7B-Instruct \
--enable-lora --lora-modules tuned=rishr/qwen2.5-coder-7b-fairchild-v5 \
--max-lora-rank 16 --enforce-eager
Released under CC-BY-NC-4.0 (non-commercial). The base model Qwen2.5-Coder-7B-Instruct is Apache-2.0, but part of the training mixture (RTL-Coder Resyn27k) is GPT-3.5-generated and carries no upstream license — so this adapter is intended for research / non-commercial use only.