Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

chia-governor-triage-7b

by Venky emailvenky/chia-governor-triage-7b

chia-governor-triage-7b is an open-weight model for text generation from Venky, released under BSD 3-Clause License. Its published files total 177.4 MB.

A LoRA adapter for Qwen2.5-Coder-7B-Instruct that predicts, from the code alone, whether a Verilog design change will fail its test bench before any simulator is run.

Parameters—
Context—
Weights161.5 MB
Licensebsd-3-clause
AccessOpen weights
Monthly Downloads—

Model Card

By Venky, published under bsd-3-clause, revision 4dc2dac8da07.

A LoRA adapter for Qwen2.5-Coder-7B-Instruct that predicts, from the code alone, whether a Verilog design change will fail its test bench before any simulator is run. It exists to sit in front of the expensive evaluation stage of an agentic hardware design loop. Simulation is slow and costly, and many agent proposals are simply wrong. This model triages them. Every frontier model tested carries the same wrong prior: that any edit to working code is probably a bug. That produces near-perfect recall and poor precision, so the gate throws away a large share of perfectly good designs. This adapter was trained on data containing verified-harmless edits alongside real faults, which attacks that…

Read Venky's full model card

A LoRA adapter for Qwen2.5-Coder-7B-Instruct that predicts, from the code alone, whether a Verilog design change will fail its test bench before any simulator is run.

It exists to sit in front of the expensive evaluation stage of an agentic hardware design loop. Simulation is slow and costly, and many agent proposals are simply wrong. This model triages them.

Why it beats larger models at this task

Every frontier model tested carries the same wrong prior: that any edit to working code is probably a bug. That produces near-perfect recall and poor precision, so the gate throws away a large share of perfectly good designs.

This adapter was trained on data containing verified-harmless edits alongside real faults, which attacks that bias directly.

Accuracy by edit family Untrained Tuned
benign (behaviour preserved) 55.6% 94.8%
faulty (behaviour changed) 65.6% 79.4%

Near chance to near ninety-five on harmless edits. That 39-point gain is the whole result.

Results

630 held-out examples, from VerilogEval problems absent from training entirely. Positive class is FAIL.

Model Accuracy Precision (FAIL) Recall (FAIL) Cost / 1k Latency
Qwen2.5-Coder-7B, untrained 61.4% 56.1% 73.4% $0.049 0.25s
This adapter 85.2% 83.3% 84.8% $0.063 0.32s
Gemini 2.5 Flash 86.2% 77.9% 97.6% $0.163 6.47s
Gemini 2.5 Pro 81.5% 71.5% 99.7% $0.676 14.4s
Gemini 2.5 Flash-Lite 68.1% 59.3% 96.9% $0.054 0.42s

Majority-class baseline is 54.1%.

Precision is the measure that matters here. A false FAIL silently discards a working design, which hurts a design loop more than paying for one extra simulation. This adapter has the highest precision of any model tested, at roughly a quarter of Flash's cost and a twentieth of its latency. Flash retains clearly better recall.

Tunable operating point

Threshold Accuracy Precision Recall Sims skipped Good designs lost
0.50 85.2% 83.3% 84.8% 294 49 of 341
0.70 83.7% 86.9% 75.8% 252 33 of 341
0.90 80.2% 92.7% 61.6% 192 14 of 341
0.95 77.0% 95.0% 52.6% 160 8 of 341

Usage

from chia_governor import TriageGate, LocalScorer

gate = TriageGate(
    LocalScorer("Qwen/Qwen2.5-Coder-7B-Instruct",
                adapter="emailvenky/chia-governor-triage-7b",
                load_4bit=True),
    threshold=0.9,
)

if gate.allow(spec, candidate_code):
    result = run_simulation(candidate_code)

Or directly. Score by comparing the PASS and FAIL logits rather than generating text, which is deterministic and cannot return an unparseable answer:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

tok = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Coder-7B-Instruct")
model = AutoModelForCausalLM.from_pretrained(
    "Qwen/Qwen2.5-Coder-7B-Instruct", dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, "emailvenky/chia-governor-triage-7b")

The prompt format is fixed and must match training: a system message describing the task, then the specification and the candidate code, asking for one word. See chia_governor/triage_gate.py for the exact strings.

Training

Base Qwen/Qwen2.5-Coder-7B-Instruct
Method LoRA, rank 16, alpha 32, dropout 0.05
Trainable 40.4M parameters (0.53%)
Quantisation 4-bit NF4
Data 1,941 examples, labels from real Icarus Verilog runs
Epochs 2 (244 optimizer steps)
Hardware One NVIDIA L4, 72 minutes

Loss fell from 0.23 and plateaued near 0.10 rather than collapsing toward zero, which is the shape of a learned decision rule rather than memorisation.

Data

Generated rather than collected, with labels correct by construction. Working VerilogEval references are edited by script and every variant is simulated against its real test bench. Two families: eight faulty operators (flipped comparisons, swapped operators, off-by-one constants, altered bit ranges, changed reset values, non-blocking to blocking, dropped assignments, swapped signals) and six benign ones (commutative swaps, internal renames, redundant parentheses, reformatted literals, reordered independent assigns, dead wires).

Both families are necessary. A first pass with faulty edits only produced a set that was 79.7% FAIL, scoreable at 80% by always answering FAIL. Adding benign edits brought it to 44.8% and made the task meaningful.

Train and test are split by problem, so no VerilogEval problem appears on both sides.

Limitations

  • Recall is the weak dimension. At 84.8%, roughly one failing candidate in six gets through, where Gemini Flash catches it.
  • Faults are synthetic. They imitate plausible agent errors but are not drawn from real agent output.
  • Small modules only. VerilogEval modules are far smaller than an industrial RTL block; transfer is untested.
  • Contamination is plausible. VerilogEval may appear in pretraining data. The mutated variants do not, but the base problems may.
  • One run, no seeds. No variance reported.

Links

  • Code, dataset and evaluation: https://github.com/venkateshrajag/chia
  • Built for the CHIA framework: https://chialoops.ai

Licence

BSD-3-Clause, matching CHIA.

Identity and Version

Repository
emailvenky/chia-governor-triage-7b
Publisher
Venky
Task
Text generation
Modality
Text
Library
peft
Parameters
Not stated by the source
Languages
rtl, eda
Revision
4dc2dac8da07c1a886e027bb59f6dd42b9b7fe19
First published
2026-09-23
Last updated
2026-09-23

Files and Weights

11 files, 177.4 MB in total. The weights are 1 file totalling 161.5 MB in safetensors.

Weights1 file · 161.5 MB
Configuration3 files · 2.4 KB
Tokenizer4 files · 15.9 MB
Documentation1 file · 5.7 KB
Other1 file · 2.5 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
adapter_model.safetensorsWeights161.5 MB f6ef276fa578
adapter_config.jsonConfiguration1.2 KB —
added_tokens.jsonConfiguration605 B —
special_tokens_map.jsonConfiguration613 B —
README.mdDocumentation5.7 KB —
chat_template.jinjaOther2.5 KB —
.gitattributesRepository1.6 KB —
merges.txtTokenizer1.7 MB —
tokenizer.jsonTokenizer11.4 MB 9c5ae00e602b
tokenizer_config.jsonTokenizer4.7 KB —
vocab.jsonTokenizer2.8 MB —

License and Download

License
bsd-3-clause
Access
Open weights, no gate
Download size
161.5 MB
Download from Venky

Released by Venky through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published161.5 MB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About chia-governor-triage-7b

Can I use chia-governor-triage-7b commercially?

Yes. chia-governor-triage-7b is released under BSD 3-Clause License. The BSD 3-Clause License is permissive. It permits commercial use and redistribution with the copyright notice, and forbids using the authors' names to endorse derived products without permission.

Similar Models

Model · Text generation

opt-125m

AI at Meta

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI. Disclaimer: The team releasing OPT wrote an official model card, which is available in Appendix D of the paper. Content from this model card has been written by the Hugging Face team. To quote the first two paragraphs of the official paper OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like GPT-3. As such, it was…

Open weights other 2,048 tokens transformers

Model · Text generation

Ornith-1.5-9B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ternary-Bonsai-2-27B-gguf

Prism ML

Full 27B-class reasoning in ternary transformer weights, for llama.cpp (CUDA, Metal, CPU) - \~5.9 GB language model (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU - 98.2% of FP16 intelligence retained: 84.78 average across 14 thinking-mode benchmarks — far above the conventional IQ2XXS build (72.59) at about 82% of its footprint, and within 0.4 points of UD-Q4KXL at three times the footprint - Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse: math within half a point of full precision (96.57), coding level with the baseline (89.42), agentic tool calling at 74.92…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.5-35B-A3B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Uncensored Qwen3.8-27B, published as GGUF quantizations with the multi token prediction (MTP) head retained and verified. Refusal behaviour has been substantially reduced, not eliminated. See Measured behaviour for the numbers. Capabilities, training data, and architecture are otherwise unchanged. - Refusal directions removed with Heretic, which co minimizes refusal count against KL divergence from the base model. No handwritten refusal removal code, no finetuning, no additional training data. - Abliteration runs at bf16 (no 4 bit quantization). the resulting LoRA is merged into the bf16 base, so the published weights are not a quantized round trip. - mtp. tensors are copied verbatim from…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.0-9B-GGUF

Ornith

Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-9B, the most lightweight member of the Ornith family, designed for efficient single-GPU deployment. Ornith-1.0-9B is a dense ~9B model (≈19 GB in bf16), so it serves comfortably on a single 80GB GPU. The recipes below stand up an OpenAI-compatible server; add --tensor-parallel-size / --tp if you want to shard across more GPUs. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-9B requires…

Open weights mit transformers