Downloads · 30 days
0
Kodjaoglanian/athenas-primal-8b
athenas-primal-8b is a text generation model from Kodjaoglanian. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Athenas-Primal-8B is a LoRA fine-tune of Qwen3-8B (4-bit quantized) trained on synthetic agentic software engineering traces. The model is designed to investigate, diagnose, and fix production-grade bugs across multip…
Downloads · 30 days
0
Access
Public
Updated Jun 27, 2026
Parameters
8.2B
16.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
Athenas-Primal-8B is a LoRA fine-tune of Qwen3-8B (4-bit quantized) trained on synthetic agentic software engineering traces. The model is designed to investigate, diagnose, and fix production-grade bugs across multiple programming languages and technology stacks.
The model was fine-tuned using Supervised Fine-Tuning (SFT) with LoRA adapters via the Unsloth framework and TRL's SFTTrainer.
| Parameter | Value |
|---|---|
| Rank | 16 |
| Alpha | 16 |
| Dropout | 0 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Gradient checkpointing | Unsloth |
| Parameter | Value |
|---|---|
| Epochs | 3 |
| Learning rate | 2e-4 |
| LR scheduler | Linear |
| Effective batch size | 8 (4 × 2 accumulation) |
| Warmup steps | 10 |
| Optimizer | adamw_8bit |
| Weight decay | 0.01 |
| Packing | Enabled |
Training data: kodjaoglanian/fable-traces-mini
A synthetic dataset of multi-turn agentic conversations simulating real-world debugging sessions. Each trace follows an iterative investigation pattern:
The dataset covers 29 scenarios across 8 languages (Python, Node.js, Rust, Go, Java, C++, TypeScript, C) with bug categories including memory leaks, race conditions, goroutine leaks, N+1 queries, thread pool starvation, SQL injection, use-after-free, and more.
| Model | acc | acc_norm |
|---|---|---|
| Qwen3-8B base (4-bit) | 0.5140 | 0.6580 |
| Athenas-Primal-8B | 0.5625 | 0.7460 |
Fine-tuning yielded +8.8 percentage points improvement in acc_norm over the base model.
| Model | acc | acc_norm |
|---|---|---|
| Qwen3-8B base (4-bit) | 0.5375 | 0.5623 |
| Athenas-Primal-8B | 0.5418 | 0.5648 |
| Model | acc_norm | Precision |
|---|---|---|
| GPT-4 | ~95.3% | 16-bit |
| Llama-3-70B | ~88.7% | 16-bit |
| Qwen2.5-7B | ~83.0% | 16-bit |
| Llama-3-8B | ~80.7% | 16-bit |
| Athenas-Primal-8B | 74.6% | 4-bit |
Market figures are from full-precision models. The 4-bit quantization accounts for approximately 5–8pp of the gap.
from unsloth import FastLanguageModel
from transformers import TextStreamer
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="Kodjaoglanian/athenas-primal-8b",
max_seq_length=4096,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
messages = [
{"role": "system", "content": "<your system prompt>"},
{"role": "user", "content": "Describe your bug or engineering problem here."},
]
inputs = tokenizer.apply_chat_template(
messages, tokenize=True, add_generation_prompt=True, return_tensors="pt",
).to("cuda")
_ = model.generate(
input_ids=inputs,
streamer=TextStreamer(tokenizer, skip_prompt=True),
max_new_tokens=2048,
temperature=0.7,
top_p=0.9,
)
@misc{athenas_primal_8b,
author = {kodjaoglanian},
title = {Athenas-Primal-8B: Agentic Software Engineering via LoRA Fine-Tuning of Qwen3-8B},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/Kodjaoglanian/athenas-primal-8b}
}