Downloads · 30 days
0
hayulalab/Circuit-Aware-Averroes-7B
Circuit-Aware-Averroes-7B is a machine learning model from hayulalab. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx.
A Circuit-Aware LoRA adapter trained to reduce hallucinations in security-focused LLMs. Based on Anthropic's Global Workspace Theory and J-lens analysis.
Downloads · 30 days
0
Access
Public
Updated Jul 7, 2026
Repo size
80.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors80.8 MB · 100%
From the Hugging Face model README
A Circuit-Aware LoRA adapter trained to reduce hallucinations in security-focused LLMs. Based on Anthropic's Global Workspace Theory and J-lens analysis.
Standard Qwen2.5-7B models form security concepts (SSRF, SQLi, XSS) in only layers 21-26 (reasoning zone). This leaves layers 11-20 (semantics) with minimal concept support, causing hallucinations.
This LoRA strengthens concept formation across ALL layers, ensuring ≥3 layers of workspace support for genuine security knowledge.
| Metric | Before | After |
|---|---|---|
| Command Injection concept depth | 12 layers | 17 layers (+42%) |
| CORS misconfig detection | 24 layers | 27 layers (+12%) |
| Subdomain Takeover | 20 layers | 23 layers (+15%) |
| Hallucination support (false claims) | 21 layers | 17 layers (-19%) |
from mlx_lm import load, generate
model, tokenizer = load(
"hayulalab/Averroes-Q-Instruct",
adapter_path="hayulalab/Circuit-Aware-Averroes-7B"
)
response = generate(
model, tokenizer,
prompt="Analyze: The server has SSRF at /proxy?url=",
max_tokens=200
)
https://research.hayula.xyz/papers/circuit-aware-lora.html
@techreport{saqban2026circuitaware,
title={Circuit-Aware LoRA: Reducing Hallucinations in Security LLMs},
author={Yahya Saqban and Hayula AI Lab},
year={2026},
url={https://research.hayula.xyz/papers/circuit-aware-lora.html}
}