Downloads · 30 days
23
23% of all-time downloads
moinonin/defiqwen25coder
defiqwen25coder is a text generation model from moinonin. Use it when you need the model to write or continue text. It is set up for unsloth. The card lists the license as apache-2.0.
Fine-tuned Qwen2.5-Coder-7B-Instruct using LoRA adapters on the Spec-Forge training corpus.
Downloads · 30 days
23
23% of all-time downloads
All-time downloads
99
Public
Parameters
3.1B
6.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.5 GB · 100%
From the Hugging Face model README
Fine-tuned Qwen2.5-Coder-7B-Instruct using LoRA adapters on the Spec-Forge training corpus.
The model converts natural-language feature requests into validated YAML specifications that conform to the COMMAND_RUNWAY methodology. Each spec contains:
task_id, summary, depends_on, local_goals, global_goals_refs, contextlocal_goal has an Inspect → Create/Modify → Verify verification flow| Parameter | Value |
|---|---|
| Base model | unsloth/Qwen2.5-Coder-7B-Instruct |
| LoRA rank | 16 |
| LoRA alpha | 32 |
| LoRA dropout | 0.1 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Epochs | 3 |
| Learning rate | 2e-4 |
| Batch size | 1 (effective: 4 via gradient accumulation) |
| Max sequence length | 2048 |
| Quantization | 4-bit NF4 |
| Optimizer | adamw_8bit |
| LR scheduler | cosine |
| Warmup ratio | 0.1 |
system + user + assistant turns)See data/eval_results.json after running make eval-model.
Metrics:
# Download GGUF from this repo's models/ directory
ollama create specforge -f models/qwen2.5-coder-7b-specforge-gguf/Modelfile
ollama run specforge
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B-Instruct", torch_dtype="auto")
model = PeftModel.from_pretrained(base, "githeri/qwen2.5-coder-7b-specforge")
tokenizer = AutoTokenizer.from_pretrained("githeri/qwen2.5-coder-7b-specforge")
messages = [
{"role": "system", "content": "You are a precise specification generator. Output ONLY a YAML document."},
{"role": "user", "content": "Add a POST /health endpoint that returns 200 OK"},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.2)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
@misc{githeri-specforge,
title={Spec-Forge: From Natural Language to Runbook-Ready YAML Specifications},
author={Githeri},
year={2026},
url={https://github.com/nickrotich/githeri}
}
Apache 2.0 — same as the base Qwen2.5-Coder-7B-Instruct model.